Skip to content

Commit b35d107

Browse files
committed
Do not touch tests label at all
1 parent 964a7eb commit b35d107

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

process_pr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,8 @@ def process_pr(
23912391
labels.append("requires-external")
23922392

23932393
# Keep old tests state for closed PRs (workaround for missing commit statuses in old PRs)
2394-
if not create_status:
2394+
# Do not change tests label in build-only mode
2395+
if build_only or not create_status:
23952396
labels = [l for l in labels if not l.startswith("tests-")]
23962397
labels.extend(l for l in old_labels if l.startswith("tests-"))
23972398

tests/PRActionData/TestProcessPr.test_build_only.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@
4646
},
4747
{
4848
"type": "add-label",
49-
"data": [
50-
"tests-started"
51-
]
49+
"data": []
5250
},
5351
{
5452
"type": "remove-label",
55-
"data": [
56-
"tests-pending"
57-
]
53+
"data": []
5854
},
5955
{
6056
"type": "create-property-file",

0 commit comments

Comments
 (0)