Skip to content

Commit acbeca2

Browse files
fix(ci): Fix PR label checks (#7983)
1 parent d36ef9a commit acbeca2

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/check-pull-requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
const ignoreReleaseNotes = labels.filter(label => label == 'tag: no release notes').length > 0
2828
const hasTypeLabel = labels.filter(label => label.startsWith('type:')).length > 0
2929
const hasComponentLabel = labels.filter(label => label.startsWith('comp:')).length > 0
30-
const hasInstrumentationLabel = labels.filter(label => label.startsWith('instr:')).length > 0
30+
const hasInstrumentationLabel = labels.filter(label => label.startsWith('inst:')).length > 0
3131
const labelsCheckFailed = !ignoreReleaseNotes && (!hasTypeLabel || (!hasComponentLabel && !hasInstrumentationLabel));
3232
if (labelsCheckFailed) {
3333
core.setFailed('Please add at least one type, and one component or instrumentation label to the pull request.')
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"pull_request": {
3+
"number": 7884,
4+
"draft": false,
5+
"labels": [
6+
{
7+
"name": "inst: java"
8+
},
9+
{
10+
"name": "type: bug"
11+
}
12+
],
13+
"title": "Adding some new features"
14+
}
15+
}

.github/workflows/tests/check-pull-requests/test-pull-request.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
source "$(dirname "$0")/../env.sh"
33
testworkflow pull_request && \
4+
testworkflow pull_request instrumentation && \
45
testworkflow pull_request draft && \
56
testworkflow pull_request no-release-notes && \
67
! testworkflow pull_request missing-label && \

0 commit comments

Comments
 (0)