Skip to content

How to trigger event on first successful merge by authors using github action? #26918

Discussion options

You must be logged in to vote

@theSwapnilSaste Thanks for your feedback.
Through the action code, we find that this variable( firstContribution) is checked in the main.js line55. Based on your needs, you could try to append username when you add message. Such as:

jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/first-interaction@v1
        with:
          repo-token: ${{ secrets.TEST_TOKEN }}
          pr-message: 'Adding this ${{ github.event.pull_request.user.login }} to Contributors...'
          issue-message: 'Adding this ${{ github.event.issue.user.login }} to Contributors...'

The result:

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants