Skip to content

Commit

Permalink
chore(ci): try out PR labeling
Browse files Browse the repository at this point in the history
Release-As: 1.11.10
  • Loading branch information
majori committed Jul 11, 2024
1 parent f2f0a83 commit 56b4df6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,19 @@ jobs:
const { data: { items } } = await github.rest.search.issuesAndPullRequests({
q: `${context.sha} type:pr is:merged`
});
const pr_number = items[0].number;
const issue = {
issue_number: pr_number,
issue_number: items[0].number,
owner: context.repo.owner,
repo: context.repo.repo,
};
github.rest.issues.createLabel({
github.rest.issues.addLabels({
...issue,
name: "autorelease: published"
labels: ["autorelease: published"],
});
github.rest.issues.removeLabel({
...issue,
name: "autorelease: tagged"
name: "autorelease: tagged",
});

0 comments on commit 56b4df6

Please sign in to comment.