github / docs

The open-source repo for docs.github.com
https://docs.github.com
Creative Commons Attribution 4.0 International
15.75k stars 58.57k forks source link

No doc of `on.merge_group.<branches|branches-ignore>` #32879

Open muzimuzhi opened 1 month ago

muzimuzhi commented 1 month ago

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

What part(s) of the article would you like to see updated?

GitHub Actions merge_group trigger supports branches filter since its beta release in Aug 2022, but it's not documented till now.

I guess the symmetric branches-ignore filter is also supported but didn't check it myself.

One option is to extend current section on.<pull_request|pull_request_target>.<branches|branches-ignore> to cover merge_group and taking care of old anchor name redirection. Or a separate on.merge_group.<branches|branches-ignore> section can be added.

Additional information

Relevant GitHub Blogs

Related

nguyenalex836 commented 1 month ago

@muzimuzhi Thank you for opening this issue! I'll get this triaged for review ✨