mirror of
https://github.com/aler9/rtsp-simple-server
synced 2026-04-22 23:17:11 +08:00
do not post comments when locking pull requests (#1799)
apidocs
code
mod-tidy
test32
test64
test_highlevel
apidocs
code
mod-tidy
test32
test64
test_highlevel
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
name: issues
|
||||
name: issue-link
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
issues:
|
||||
issue-link:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -33,13 +33,15 @@ jobs:
|
||||
continue;
|
||||
}
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: issue.number,
|
||||
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.',
|
||||
});
|
||||
if (!issue.pull_request) {
|
||||
await github.rest.issues.createComment({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: issue.number,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user