aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/unstale.yml
blob: 8851d048231e52d0812e7fc54f4c6dee22b48b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Unmark issues and pull requests as stale on activity
on:
  issue_comment:
    types: [created]

# actions/stale does this automatically, but only once a day.
# This immediately removes the label when the user creates a comment.
jobs:
  remove-stale-label:
    if: (github.repository == 'bbatsov/projectile')
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
      - name: Remove stale label
        env:
          GH_TOKEN: ${{ github.token }}
        run: gh issue edit ${{ github.event.issue.number }} --remove-label "stale" -R ${{ github.repository }}