Browse Source

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

pull/1801/head
Alessandro Ros 3 years ago committed by GitHub
parent
commit
8a264d9fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/issue-lint.yml
  2. 2
      .github/workflows/issue-lock.yml

4
.github/workflows/issues.yml → .github/workflows/issue-lint.yml

@ -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:

2
.github/workflows/issue-lock.yml

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

Loading…
Cancel
Save