Skip to content

Commit a5b810c

Browse files
committed
feat: lock pull requests after creation
1 parent cd2025f commit a5b810c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/processor/pull.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,19 @@ export class Pull {
331331
`#${prNumber} Created pull request`,
332332
);
333333

334+
try {
335+
await this.github.issues.lock({
336+
owner: this.owner,
337+
repo: this.repo,
338+
issue_number: prNumber,
339+
});
340+
} catch (err) {
341+
this.logger.error(
342+
{ err },
343+
`#${prNumber} Lock failed`,
344+
);
345+
}
346+
334347
await this.github.issues.update({
335348
owner: this.owner,
336349
repo: this.repo,

0 commit comments

Comments
 (0)