Skip to content

Commit 52d325f

Browse files
Merge pull request #163 from inteon/GH_actions_add_labels
Add labels to self-upgrade PR
2 parents d212d76 + ae289bd commit 52d325f

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.github/workflows/base-images-upgrade.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
});
7979
8080
if (pulls.data.length < 1) {
81-
await github.rest.pulls.create({
81+
const result = await github.rest.pulls.create({
8282
title: '[CI] Bump base image to latest available version on ' + process.env.SOURCE_BRANCH,
8383
owner: owner,
8484
repo: repo,
@@ -88,4 +88,10 @@ jobs:
8888
'This PR is auto-generated to bump the base images used for our OCI builds.',
8989
].join('\n'),
9090
});
91+
await github.rest.issues.addLabels({
92+
owner,
93+
repo,
94+
issue_number: result.data.number,
95+
labels: ['skip-review']
96+
});
9197
}

.github/workflows/go-auto-upgrade.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
});
7171
7272
if (pulls.data.length < 1) {
73-
await github.rest.pulls.create({
73+
const result = await github.rest.pulls.create({
7474
title: '[CI] Bump vendored Go version to latest patch version on ' + process.env.SOURCE_BRANCH,
7575
owner: owner,
7676
repo: repo,
@@ -80,4 +80,10 @@ jobs:
8080
'This PR is auto-generated to bump the vendored go version in the tools module to the latest available patch version',
8181
].join('\n'),
8282
});
83+
await github.rest.issues.addLabels({
84+
owner,
85+
repo,
86+
issue_number: result.data.number,
87+
labels: ['skip-review']
88+
});
8389
}

.github/workflows/kind-images-upgrade.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
});
7979
8080
if (pulls.data.length < 1) {
81-
await github.rest.pulls.create({
81+
const result = await github.rest.pulls.create({
8282
title: '[CI] Bump kind images to latest available version on ' + process.env.SOURCE_BRANCH,
8383
owner: owner,
8484
repo: repo,
@@ -88,4 +88,10 @@ jobs:
8888
'This PR is auto-generated to bump the kind images used by our tests',
8989
].join('\n'),
9090
});
91+
await github.rest.issues.addLabels({
92+
owner,
93+
repo,
94+
issue_number: result.data.number,
95+
labels: ['skip-review']
96+
});
9197
}

modules/repository-base/base/.github/workflows/make-self-upgrade.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
});
8181
8282
if (pulls.data.length < 1) {
83-
await github.rest.pulls.create({
83+
const result = await github.rest.pulls.create({
8484
title: '[CI] Merge ' + process.env.SELF_UPGRADE_BRANCH + ' into ' + process.env.SOURCE_BRANCH,
8585
owner: owner,
8686
repo: repo,
@@ -90,4 +90,10 @@ jobs:
9090
'This PR is auto-generated to bump the Makefile modules.',
9191
].join('\n'),
9292
});
93+
await github.rest.issues.addLabels({
94+
owner,
95+
repo,
96+
issue_number: result.data.number,
97+
labels: ['skip-review']
98+
});
9399
}

0 commit comments

Comments
 (0)