File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
- # We bidirectionally synchronize github.com/ruby/ruby.git's master branch and
2
- # git.ruby-lang.org/ruby.git's master branch.
3
- # We can use a pull request's merge button only on the master branch.
4
- #
5
- # Therefore, we require to pass this "check_branch" on all protected branches
6
- # to prevent us from accidentally pushing commits to GitHub directly.
7
- #
8
- # Details: https://bugs.ruby-lang.org/issues/16094
1
+ # A safeguard for accidentally opening a PR against upstream Github repo.
9
2
name : Pull Request
10
3
on : [pull_request]
11
4
jobs :
12
5
check_branch :
13
6
runs-on : ubuntu-latest
14
7
steps :
15
- - name : Check if branch is master
8
+ - name : Check if branch is microjit
16
9
run : |
17
- if [ "$BASE_REF" != master ]; then
18
- echo "Only master branch accepts a pull request , but it's '$BASE_REF'."
10
+ if [ "$BASE_REF" != microjit ]; then
11
+ echo "Only the microjit branch accepts pull requests , but it's '$BASE_REF'."
19
12
exit 1
20
13
fi
21
14
env :
You can’t perform that action at this time.
0 commit comments