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

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

Merged
merged 7 commits into from
Sep 16, 2021

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.

src/labeler.ts Outdated Show resolved Hide resolved
Safer access of pull_request data.

Co-authored-by: Josh Dales <[email protected]>
@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