1
0
Fork 0
forked from External/mediamtx

do not post comments when locking pull requests (#1799)

This commit is contained in:
Alessandro Ros 2023-05-15 11:43:58 +02:00 committed by GitHub
parent 71310c5eb0
commit 8a264d9fa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -1,11 +1,11 @@
name: issues
name: issue-link
on:
issues:
types: [opened]
jobs:
issues:
issue-link:
runs-on: ubuntu-latest
steps:

View file

@ -33,6 +33,7 @@ jobs:
continue;
}
if (!issue.pull_request) {
await github.rest.issues.createComment({
owner,
repo,
@ -40,6 +41,7 @@ jobs:
body: 'This issue is being locked automatically because it has been closed for more than 6 months.\n'
+ 'Please open a new issue in case you encounter a similar problem.',
});
}
github.rest.issues.lock({
owner,