How to trigger event on first successful merge by authors using github action? #26918
-
I want to append the name of every user on their first successful PR merge. My current understanding is -
Here I want to take output in some variable like isFirst and username and then create a pull request if isFirst is true; |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@theSwapnilSaste Thanks for your feedback.
The result: |
Beta Was this translation helpful? Give feedback.
-
@niconbw Can you tell how to add this username to README.md at the end in append mode ? I am new with actions. |
Beta Was this translation helpful? Give feedback.
-
Hi @theSwapnilSaste
|
Beta Was this translation helpful? Give feedback.
-
Hi @theSwapnilSaste |
Beta Was this translation helpful? Give feedback.
@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:The result: