Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support github.actor in comment-text #15

Open
tiagovrtr opened this issue Feb 1, 2023 · 0 comments
Open

Support github.actor in comment-text #15

tiagovrtr opened this issue Feb 1, 2023 · 0 comments

Comments

@tiagovrtr
Copy link

tiagovrtr commented Feb 1, 2023

Allow the use of ${{ github.actor }} attribute in the comment-text param as {{PR_ACTOR}}, for example, to identify which user has submitted a review:

on:
  pull_request_review:
    types: [submitted]
jobs:
  create-comment-in-asana-task-job:
    runs-on: ubuntu-latest
    name: Alert new PR review in Asana Task
    steps:
      - name: Create a comment
        uses: Asana/comment-on-task-github-action@latest
        id: createComment
        with:
          asana-secret: ${{ secrets.ASANA_SECRET }}
          comment-text: "A review for PR #{{PR_ID}} has been submitted by {{PR_ACTOR}}: {{PR_URL}}"
      - name: Get status
        run: echo "Status is ${{ steps.createComment.outputs.status }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant