2024-09-05 20:06:15 +02:00
|
|
|
name: Issue Lockdown
|
2024-08-28 10:01:51 +02:00
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [opened]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lockdown:
|
|
|
|
name: Issue Lockdown
|
2024-09-05 20:06:15 +02:00
|
|
|
if: vars.ISSUE_LOCKDOWN
|
2024-08-28 10:01:51 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: "Lock new issue"
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
|
|
REPOSITORY: ${{ github.repository }}
|
|
|
|
run: |
|
2024-09-05 20:06:15 +02:00
|
|
|
gh issue lock "${ISSUE_NUMBER}" -R "${REPOSITORY}"
|