Skip to content

Support github.actor in comment-text #15

@tiagovrtr

Description

@tiagovrtr

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 }}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions