-
Notifications
You must be signed in to change notification settings - Fork 440
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 on context object. #103
Comments
@jclem Is this already added? Is there another way to get it? |
@Milo123459 Can you please fill out the questions in the issue template? I unfortunately don't understand what exactly it is you're asking, I'm sorry! |
Sorry for the late response,I just want something like context.branch that tells you the branch name from a PR |
More generally, it appears there's various properties available on
As a work-around, I think these are available as |
Yeah that's correct. I don't plan on keeping that object in sync with what Actions calls the "GitHub context". Same word, but I'm using it to refer to something else. You can use YAML substitution in your script value in the config file, or as you say pull values out of the environment. |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I need to get the branch that triggered the event, ie context.branch
Describe the solution you'd like
A clear and concise description of what you want to happen.
For instance, dependabot making a PR, I have a script to git-checkout to it but I need to get the branch.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: