-
Notifications
You must be signed in to change notification settings - Fork 0
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
Maybe set base branch #20
base: main
Are you sure you want to change the base?
Conversation
echo "::error::Pull Request base ref must be the development branch: '${{ inputs.development-branch-name }}'. Found base ref: '${{ github.base_ref }}' ." | ||
echo "If you're sure you need to merge this change into '${{ github.base_ref }}' instead. " | ||
echo "::error::Pull Request base ref must be the development branch: '${{ inputs.development-branch-name }}'. Found base ref: '${base_ref}' ." | ||
echo "If you're sure you need to merge this change into '${base_ref}' instead. " |
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.
Should this include instructions for what to do in that case?
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.
the instruction is on the next line 'you can add the label 'skip-base-branch-check' (or do you have something else in mind). Can move that up to the same line if that's clearer?
Extend the
check-base-branch.yaml
workflow with an extra job that set's the base branch of the pull request if the ref corresponds to the stable branch.This supports changing the default branch of the repos NVIDIA-Merlin/Merlin#866 without creating too much friction when opening new Pull Requests on the stable branch.
Before this maybe set branch job will run sucessfully, we need to update each repo with the required permissions