Skip to content

Commit cd07f7b

Browse files
committed
ci: stop auto-linking persistent trackers
1 parent 9e35c3a commit cd07f7b

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

.github/workflows/pr-metadata.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,15 @@ jobs:
4040
});
4141
4242
const labels = new Set();
43-
const trackers = new Set();
4443
const title = pr.title.toLowerCase();
4544
for (const file of files) {
4645
const path = file.filename;
4746
const isDataDump = path.startsWith('site/public/v1/') || path === 'site/public/openapi.json';
4847
if (path.startsWith('site/') && !isDataDump) {
4948
labels.add('site');
50-
trackers.add('#19');
5149
}
5250
if (path.startsWith('data/') || isDataDump) {
5351
labels.add('data');
54-
trackers.add('#1');
5552
}
5653
if (path.startsWith('app/')) labels.add('app');
5754
if (path.startsWith('.github/workflows/')) labels.add('ci');
@@ -104,22 +101,6 @@ jobs:
104101
break;
105102
}
106103
107-
if (trackers.size) {
108-
const marker = '<!-- techapi-tracking -->';
109-
const existing = pr.body || '';
110-
const refs = [...trackers].sort().map((ref) => `- Related to ${ref}`).join('\n');
111-
const block = `${marker}\n\n## Tracking\n${refs}`;
112-
const body = existing.includes(marker)
113-
? existing.replace(new RegExp(`${marker}[\\s\\S]*$`), block)
114-
: `${existing.trim()}\n\n${block}`.trim();
115-
await github.rest.pulls.update({
116-
owner,
117-
repo,
118-
pull_number: issue_number,
119-
body,
120-
});
121-
}
122-
123104
const changedLines = files.reduce((sum, file) => sum + file.additions + file.deletions, 0);
124105
let priority = 'Medium';
125106
if (labels.has('data') && (files.length >= 25 || changedLines >= 1000)) {

0 commit comments

Comments
 (0)