-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ci/stats] fix merge base detection #67030
[ci/stats] fix merge base detection #67030
Conversation
Pinging @elastic/kibana-operations (Team:Operations) |
@elasticmachine merge upstream |
Running on my sandbox to double-check how it works outside of a PR |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, passed on my sandbox
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Resubmission of #66840
Original description:
Changes:
getCheckoutInfo()
will always return a branch now, or thrown an error, and that branch name will only contain the actual branch name, never be prefixed withrefs/heads/
ororigin/
.getCheckoutInfo()
accepts abranchOverride
argument that will allow non-standard jobs to pass something likescmVars.GIT_BRANCH
to the method, if that's acceptable based on the job definition.GIT_BRANCH
environment variable has been updated to expect the variable to just include the branch name, not a ref name orremote/branch
pair.