Is my syntax for ignoring closed issues correct? #27169
-
I use the Issue (no pun intendet) is, that the Action seems to ignore pretty much any case, being it open or closed issues, which obviously is not what I want. Here is the complete workflow:
According to the reference about issues does the JSON object contain the “state” key which contains either Should I update my Workflow to have a negated if for when issues are closed ( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I believe it’s Actions uses webhook payloads when triggered and the Webhook events and payloads - GitHub Docs//docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads |
Beta Was this translation helpful? Give feedback.
-
Didn’t saw it being inside a issues object, so it makes sense now that it didn’t work. |
Beta Was this translation helpful? Give feedback.
I believe it’s
github.event.issue.state
that you need.Actions uses webhook payloads when triggered and the
state
is listed inside theissue
object of those:docs.github.com
Webhook events and payloads - GitHub Docs
//docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads