Skip to content

Commit

Permalink
chore: remove graduated preview header
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jun 12, 2023
1 parent 20ec7bb commit bec0993
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,13 @@ class App {
}

core.debug(`Locking (${type}: ${issue.issue_number})`);
let params;

const params = {...issue};

if (lockReason) {
params = {
...issue,
lock_reason: lockReason,
headers: {
accept: 'application/vnd.github.sailor-v-preview+json'
}
};
} else {
params = issue;
params.lock_reason = lockReason;
}

await this.client.rest.issues.lock(params);

threads.push(issue);
Expand Down

0 comments on commit bec0993

Please sign in to comment.