2021-02-24 20:25:35 +08:00
|
|
|
name: Issue Remove Inactive
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
2021-10-19 19:36:22 +08:00
|
|
|
types: [edited]
|
2021-02-24 20:25:35 +08:00
|
|
|
issue_comment:
|
|
|
|
types: [created, edited]
|
|
|
|
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-02-24 20:25:35 +08:00
|
|
|
jobs:
|
2021-09-22 11:52:14 +08:00
|
|
|
issue-remove-inactive:
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
issues: write # for actions-cool/issues-helper to update issues
|
|
|
|
pull-requests: write # for actions-cool/issues-helper to update PRs
|
2021-02-24 20:25:35 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: remove inactive
|
2021-10-19 19:36:22 +08:00
|
|
|
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
|
2022-02-21 10:03:56 +08:00
|
|
|
uses: actions-cool/issues-helper@v3
|
2021-02-24 20:25:35 +08:00
|
|
|
with:
|
|
|
|
actions: 'remove-labels'
|
|
|
|
issue-number: ${{ github.event.issue.number }}
|
|
|
|
labels: 'Inactive, needs-more-info'
|