Skip to content

Commit

Permalink
fix(addLabel): use PUT instead POST
Browse files Browse the repository at this point in the history
  • Loading branch information
BLxcwg666 committed Mar 30, 2024
1 parent 888ff32 commit fb86d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/addLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const app = new App({

async function closeIssues (id) {
const octokit = await app.getInstallationOctokit(48087189);
await octokit.request(`POST /repos/travellings-link/travellings/issues/${id}/labels`, {
await octokit.request(`PUT /repos/travellings-link/travellings/issues/${id}/labels`, {
labels: [
'信息更改完成',
],
],
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
Expand Down

0 comments on commit fb86d59

Please sign in to comment.