-
Hello, Is there a way in triggering the workflow only for the Pull Request Comments and not for the issue comment ?. It will be great If anyone can help me out on this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Currently, there is not any easy way to set filter on Issue comment event to let workflow be triggered only when comment on PR or only on issue. However, from the github context for the event, I found some different between issue and PR.
https://github.com/<org>/<repo>/pull/<pr_id>#issuecomment-<comment_id>
https://github.com/<org>/<repo>/issues/<issue_id>#issuecomment-<comment_id> So you can try the below if conditional to skip all the jobs when the workflow is triggered by comment on issue.
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much. It certainly helped. However, Filtering with jobs are failing and I am not able to see the runner logs too. Could you please check this issue ? |
Beta Was this translation helpful? Give feedback.
Currently, there is not any easy way to set filter on Issue comment event to let workflow be triggered only when comment on PR or only on issue.
However, from the github context for the event, I found some different between issue and PR.
https://github.com/<org>/<repo>/pull/<pr_id>#issuecomment-<comment_id>
https://github.com/<org>/<repo>/issues/<issue_id>#issuecomment-<comment_id>
So you can try the below if conditional to skip all the jobs when the workflow is triggered by comment on issue.