forked from External/mediamtx
do not post comments when locking pull requests (#1799)
This commit is contained in:
parent
71310c5eb0
commit
8a264d9fa2
2 changed files with 11 additions and 9 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
name: issues
|
name: issue-link
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
issues:
|
issue-link:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
16
.github/workflows/issue-lock.yml
vendored
16
.github/workflows/issue-lock.yml
vendored
|
|
@ -33,13 +33,15 @@ jobs:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
await github.rest.issues.createComment({
|
if (!issue.pull_request) {
|
||||||
owner,
|
await github.rest.issues.createComment({
|
||||||
repo,
|
owner,
|
||||||
issue_number: issue.number,
|
repo,
|
||||||
body: 'This issue is being locked automatically because it has been closed for more than 6 months.\n'
|
issue_number: issue.number,
|
||||||
+ 'Please open a new issue in case you encounter a similar problem.',
|
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({
|
github.rest.issues.lock({
|
||||||
owner,
|
owner,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue