You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workflow_dispatch: # Manually trigger the workflow through GitHub UI
7
+
8
+
jobs:
9
+
stale:
10
+
runs-on: ubuntu-latest
11
+
concurrency:
12
+
group: ${{ github.workflow }} # Prevent parallel workflows for the same workflow
13
+
cancel-in-progress: false # Does not cancel the running workflow, waits for it to finish
14
+
permissions:
15
+
contents: write
16
+
issues: write
17
+
pull-requests: write
18
+
actions: write
19
+
20
+
steps:
21
+
- name: Mark stale issues and PRs
22
+
uses: actions/[email protected]# Use the latest version of the Stale Action
23
+
with:
24
+
# Label to apply to stale issues
25
+
stale-issue-label: 'stale'
26
+
27
+
# Label to apply to stale pull requests
28
+
stale-pr-label: 'stale'
29
+
30
+
# Number of days before an issue/PR is marked as stale
31
+
days-before-stale: 180# If the issue/PR has been inactive for 180 days, it will be marked as stale
32
+
33
+
# Number of days before a stale issue/PR is closed
34
+
days-before-close: 7# If the stale issue/PR has been inactive for 7 days day, it will be closed
35
+
36
+
# Option to close stale issues and PRs
37
+
close-issue-label: 'closed'# Close issues that are marked as stale
38
+
close-pr-label: 'closed'# Close PRs that are marked as stale
39
+
40
+
# Exclude issues and PRs that have certain labels from being marked stale
41
+
exempt-issue-labels: 'closed'# Ignore issues with 'closed' label
42
+
exempt-pr-labels: 'closed'# Ignore PRs with 'closed' label
43
+
44
+
# Custom message for stale issues
45
+
stale-issue-message: 'This issue has been marked as stale because it has not had activity for 180 days. It will be closed in 7 days if no further activity occurs.'
46
+
47
+
# Custom message for stale pull requests
48
+
stale-pr-message: 'This pull request has been marked as stale because it has not had activity for 180 day. It will be closed in 7 days if no further activity occurs.'
49
+
50
+
# Remove the stale label when an issue/PR is updated/comments
51
+
remove-issue-stale-when-updated: true # Remove the stale label when an issue is updated
52
+
remove-pr-stale-when-updated: true # Remove the stale label when a PR is updated
0 commit comments