We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ec7bb commit bec0993Copy full SHA for bec0993
src/index.js
@@ -106,18 +106,13 @@ class App {
106
}
107
108
core.debug(`Locking (${type}: ${issue.issue_number})`);
109
- let params;
+
110
+ const params = {...issue};
111
112
if (lockReason) {
- params = {
- ...issue,
113
- lock_reason: lockReason,
114
- headers: {
115
- accept: 'application/vnd.github.sailor-v-preview+json'
116
- }
117
- };
118
- } else {
119
- params = issue;
+ params.lock_reason = lockReason;
120
121
await this.client.rest.issues.lock(params);
122
123
threads.push(issue);
0 commit comments