aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull-request-stale.yaml
blob: 223ffc590b9f224d239374b95e043531f5438e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Stale PR Check

on:
  schedule:
    - cron: '30 */12 * * *'
  workflow_dispatch:

permissions:
  pull-requests: write
  actions: write

jobs:
  prs-stale-conflicts:
    name: Check PRs with merge conflicts
    runs-on: ubuntu-latest
    if: ${{ contains(github.repository, 'jellyfin/') }}
    steps:
      - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
        with:
          repo-token: ${{ secrets.JF_BOT_TOKEN }}
          ascending: true
          operations-per-run: 150
          # The merge conflict action will remove the label when updated
          remove-stale-when-updated: false
          days-before-stale: -1
          days-before-close: 90
          days-before-issue-close: -1
          stale-pr-label: merge conflict
          close-pr-message: |-
            This PR has been closed due to having unresolved merge conflicts.