Skip to content

Commit f9f40d4

Browse files
committed
fix label names
1 parent 1631bb9 commit f9f40d4

11 files changed

+48
-20
lines changed

.github/workflows/backport.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
4242
--head $branch \
4343
--base $GITHUB_REF_NAME \
44-
--label patch-release
44+
--label backport

.github/workflows/contrib.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
CORE_REPO_SHA: ${{ github.sha }}
1818
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
19+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
20+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2121
'main'
2222
) || 'main' }}

.github/workflows/lint_0.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}
2327
PIP_EXISTS_ACTION: w

.github/workflows/misc_0.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}
2327
PIP_EXISTS_ACTION: w

.github/workflows/prepare-patch-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ jobs:
7878
--body "$message." \
7979
--head $branch \
8080
--base $GITHUB_REF_NAME \
81-
--label release
81+
--label prepare-release

.github/workflows/prepare-release-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
--body "$message." \
105105
--head $branch \
106106
--base $RELEASE_BRANCH_NAME \
107-
--label release
107+
--label prepare-release
108108
109109
create-pull-request-against-main:
110110
runs-on: ubuntu-latest
@@ -185,4 +185,4 @@ jobs:
185185
--body "$body" \
186186
--head $branch \
187187
--base main \
188-
--label release
188+
--label prepare-release

.github/workflows/templates/lint.yml.j2

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}{% endraw %}
2327
PIP_EXISTS_ACTION: w

.github/workflows/templates/misc.yml.j2

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}{% endraw %}
2327
PIP_EXISTS_ACTION: w

.github/workflows/templates/test.yml.j2

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}{% endraw %}
2327
PIP_EXISTS_ACTION: w

.github/workflows/test_0.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}
2327
PIP_EXISTS_ACTION: w

.github/workflows/test_1.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ concurrency:
1515

1616
env:
1717
CORE_REPO_SHA: main
18+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+
# For PRs you can change the inner fallback ('main')
20+
# For pushes you change the outer fallback ('main')
21+
# The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
19-
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20-
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
23+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
2125
'main'
2226
) || 'main' }}
2327
PIP_EXISTS_ACTION: w

0 commit comments

Comments
 (0)