-
I think this belongs in the ‘Github Actions’ category, please fix if not. I’m trying to understand the distinction between issue events as described in two places in the documentation: Link 1 https://docs.github.com/en/actions/reference/events-that-trigger-workflows In the first doc (‘Events that trigger workflows’), the following list of issue events is provided (Link 1):
In the second doc, a much longer list is provided. Some of the events are in both lists. I could understand that specifically to make webhooks call out, only a subset of issue events is supported. However, on the parent page of Link 2 (sorry, new posters can only use 2 URLs) there’s some prominent text: ‘Your integrations can subscribe and react to events on GitHub.’. The nav from that page takes you to the longer list… To me, this implies that the longer list is available for webhooks. I’m probably just missing something, but any explanations would be helpful. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@robertp ,
The following description from the docs “Issue event types” (Link 2) can answer your doubt:
It includes some event types of pull request, for example, add, edit or delete comments. This is consistent with the issue API. On the docs “Events that trigger workflows” ( Link 1):
This is saying that sending event webhooks to the external services.
More details, see “Webhooks”. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. It’s not really what I’m after. Let me ask the question more directly. Can this issues event: be used to trigger a GitHub Action? For example:
I know that for example the labeled issues event (in the list provided here: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#issues) can be used that way. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Easy enough to figure out the answer I suppose - you can only use the events listed here: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#issues to trigger workflow events; for the other set of events, you have to use the issue events API to scrape them out, periodically or triggered by e.g. the edited event triggering a workflow (and the workflow scraping the API). |
Beta Was this translation helpful? Give feedback.
Easy enough to figure out the answer I suppose - you can only use the events listed here: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#issues to trigger workflow events; for the other set of events, you have to use the issue events API to scrape them out, periodically or triggered by e.g. the edited event triggering a workflow (and the workflow scraping the API).