Skip to content

Commit

Permalink
Close old issues before opening ones
Browse files Browse the repository at this point in the history
  • Loading branch information
yykamei committed Mar 28, 2024
1 parent 39f4053 commit ebef971
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29334,6 +29334,9 @@ const main = async () => {
return new MermaidXYChart(w, runs);
}));
const issueContent = new GitHubIssueContent(charts, `GitHub Workflow Metrics on ${now.toDateString()}`, [], [input.label]);
for (const issue of await repository.getIssues([input.label])) {
await repository.closeIssue(issue);
}
await repository.createIssue(issueContent);
};
/* harmony default export */ const src_main = (main);
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const main = async () => {
[],
[input.label],
);
for (const issue of await repository.getIssues([input.label])) {
await repository.closeIssue(issue);
}
await repository.createIssue(issueContent);
};

Expand Down

0 comments on commit ebef971

Please sign in to comment.