Skip to content

Commit bec0993

Browse files
committed
chore: remove graduated preview header
1 parent 20ec7bb commit bec0993

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/index.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,13 @@ class App {
106106
}
107107

108108
core.debug(`Locking (${type}: ${issue.issue_number})`);
109-
let params;
109+
110+
const params = {...issue};
111+
110112
if (lockReason) {
111-
params = {
112-
...issue,
113-
lock_reason: lockReason,
114-
headers: {
115-
accept: 'application/vnd.github.sailor-v-preview+json'
116-
}
117-
};
118-
} else {
119-
params = issue;
113+
params.lock_reason = lockReason;
120114
}
115+
121116
await this.client.rest.issues.lock(params);
122117

123118
threads.push(issue);

0 commit comments

Comments
 (0)