Skip to content

Match branches on the head branch for the PR instead of the temporary PR checkout#1

Merged
joshdales merged 7 commits intojoshdales:mainfrom
bentohq:fix-branch-labeler
Sep 16, 2021
Merged

Match branches on the head branch for the PR instead of the temporary PR checkout#1
joshdales merged 7 commits intojoshdales:mainfrom
bentohq:fix-branch-labeler

Conversation

@amiel
Copy link

@amiel amiel commented Sep 15, 2021

github.context.ref was producing something like refs/pull/23/head, which would not match.

Using github.context.payload.pull_request.head.ref resolves this for me and uses the branch name that I actually want to match on.

Safer access of pull_request data.

Co-authored-by: Josh Dales <30500472+joshdales@users.noreply.github.com>
@joshdales joshdales merged commit 7624214 into joshdales:main Sep 16, 2021
@amiel
Copy link
Author

amiel commented Sep 17, 2021

Awesome. Thanks for taking the time to merge this in. Now hopefully someone takes a look at actions#203.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants