Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get branch name #259

Open
Vanals opened this issue Nov 30, 2023 · 1 comment
Open

Get branch name #259

Vanals opened this issue Nov 30, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Vanals
Copy link

Vanals commented Nov 30, 2023

Description

Did anyone managed to get and to show the branch name of what was just being merged to main?

Expected result:

Notify devs of a failing workflow running on main, and mention the branch related to the commit

@zimeg zimeg added the question Further information is requested label Nov 30, 2023
@zimeg
Copy link
Member

zimeg commented Nov 30, 2023

Hey @Vanals! The branch name can be obtained from github.event.pull_request.head.ref and sent after failures using a workflow like this.

Please note that these jobs only runs on closed pull requests that were merged to main and only sends a message if a previous step failed, so please adjust it however you'd like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants