This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/.github/workflows/autolocker.yml
GeopJr 5158cf013f
feat(ci): error on warnings (#199)
* feat(ci): error on warnings
* fix(ci): autolocker pull_request -> pull_request_target
2022-05-11 17:40:26 +02:00

25 lines
673 B
YAML

name: Autolocker
on:
pull_request_target:
types: [closed]
permissions: write-all
jobs:
autolock:
# if: ${{ github.event.pull_request.merged }} # Uncomment if you want it to run only when a PR gets MERGED
runs-on: ubuntu-latest
name: Autolocker
steps:
- name: Autolock PRs that got merged or closed
uses: actions/github-script@v6
with:
script: |
github.rest.issues.lock({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
lock_reason: "resolved" // ["off-topic", "too heated", "resolved", "spam"]
})