Skip to content

Commit 0d9fe49

Browse files
committed
Sort out labels params
1 parent abe69fa commit 0d9fe49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/update-issues.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async function* iterateIssues(octokit, params) {
2222
octokit.rest.issues.listForRepo,
2323
{
2424
...params,
25+
labels: ["feature"],
2526
per_page: 100,
2627
},
2728
)) {
@@ -105,7 +106,6 @@ async function update() {
105106
const params = {
106107
owner: "web-platform-dx",
107108
repo: "developer-signals",
108-
labels: ["feature"]
109109
};
110110

111111
// Iterate existing issues and create a map from web-features ID to
@@ -181,6 +181,7 @@ async function update() {
181181
issue_number: issue.number,
182182
title,
183183
body,
184+
// Labels are not updated to avoid removing labels added manually.
184185
});
185186
} else {
186187
console.log(`Issue for ${id} is up-to-date.`);
@@ -196,6 +197,7 @@ async function update() {
196197
...params,
197198
title,
198199
body,
200+
labels: ["feature"],
199201
});
200202
}
201203
}

0 commit comments

Comments
 (0)