Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
bb98c593
Unverified
Commit
bb98c593
authored
3 years ago
by
Richard van der Hoff
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for rename of default complement branch (#11971)
use `HEAD` rather than hardcoding `master`
parent
0171fa52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/tests.yml
+3
-3
3 additions, 3 deletions
.github/workflows/tests.yml
changelog.d/11971.misc
+1
-0
1 addition, 0 deletions
changelog.d/11971.misc
with
4 additions
and
3 deletions
.github/workflows/tests.yml
+
3
−
3
View file @
bb98c593
...
...
@@ -345,7 +345,7 @@ jobs:
path
:
synapse
# Attempt to check out the same branch of Complement as the PR. If it
# doesn't exist, fallback to
master
.
# doesn't exist, fallback to
HEAD
.
-
name
:
Checkout complement
shell
:
bash
run
:
|
...
...
@@ -358,8 +358,8 @@ jobs:
# for pull requests, otherwise GITHUB_REF).
# 2. Attempt to use the base branch, e.g. when merging into release-vX.Y
# (GITHUB_BASE_REF for pull requests).
# 3. Use the default complement branch ("
master
").
for BRANCH_NAME in "$GITHUB_HEAD_REF" "$GITHUB_BASE_REF" "${GITHUB_REF#refs/heads/}" "
master
"; do
# 3. Use the default complement branch ("
HEAD
").
for BRANCH_NAME in "$GITHUB_HEAD_REF" "$GITHUB_BASE_REF" "${GITHUB_REF#refs/heads/}" "
HEAD
"; do
# Skip empty branch names and merge commits.
if [[ -z "$BRANCH_NAME" || $BRANCH_NAME =~ ^refs/pull/.* ]]; then
continue
...
...
This diff is collapsed.
Click to expand it.
changelog.d/11971.misc
0 → 100644
+
1
−
0
View file @
bb98c593
Prepare for rename of default complement branch.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment