-
Hi, I’m trying to duplicate behaviour of Jenkins ghprb plugin, which allows you to start a Jenkins job by posting a trigger phrase in a pull request comment. I think that the closest event to use in Actions would be
but I didn’t manage to use it so far. Does anyone know how to do that? Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I have the same issue. I’m creating actions these days. tyankatsu0105/convert-mention-action#1 But I can’t find a solution to the trigger for PR comment. I found this page. https://developer.github.com/v3/guides/working-with-comments/#pull-request-comments According to this page, PR comments use issues API. I tried adding But not working… |
Beta Was this translation helpful? Give feedback.
-
OK. I understand. PR message’s eventName is So you can check |
Beta Was this translation helpful? Give feedback.
-
Having the same issue. I’ve created a small workflow that just prints the comment but it never fires when I comment on the pull request containing this workflow. Even tried covering all the bases for the different events but no joy. Do we somehow have to register the workflow to fire on PR comments some other way?
|
Beta Was this translation helpful? Give feedback.
-
Found the issue in another thread: In short, the workflow triggering on issue comments MUST be in master |
Beta Was this translation helpful? Give feedback.
Found the issue in another thread:
https://github.community/t5/GitHub-Actions/on-issue-comment-events-are-not-triggering-workflows/m-p/37177
In short, the workflow triggering on issue comments MUST be in master