Skip to content

Commit 9f161fb

Browse files
committed
chore: update previous issue fetching logic
1 parent 81b2119 commit 9f161fb

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/nightly_tier_report.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,14 @@ jobs:
6161
script: |
6262
const fs = require('fs');
6363
const report = fs.readFileSync('tier_report.txt', 'utf8');
64-
const title = 'Nightly Server Tier Assessment Failure';
65-
const periodicLabel = 'periodic-failure';
64+
const title = '[Dashboard: Conformance] Nightly Server Tier Assessment Failure';
6665
6766
const prevIssues = await github.rest.issues.listForRepo({
6867
...context.repo,
69-
state: 'open',
70-
creator: 'github-actions[bot]',
71-
labels: [periodicLabel]
68+
state: 'open'
7269
});
7370
71+
// Find any open issue matching the exact dashboard title
7472
let existingIssue = prevIssues.data.find(issue => issue.title === title);
7573
7674
if (report.includes('Tier Assessment: Tier 1')) {
@@ -104,7 +102,6 @@ jobs:
104102
await github.rest.issues.create({
105103
...context.repo,
106104
title: title,
107-
body: body,
108-
labels: [periodicLabel]
105+
body: body
109106
});
110107
}

0 commit comments

Comments
 (0)