-
Notifications
You must be signed in to change notification settings - Fork 833
45 lines (44 loc) · 2.38 KB
/
organize.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Cleanup Pull Requests
on: pull_request_target
jobs:
stalled-tickets:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
actions: write
steps:
- name: Close Stale Issues
uses: actions/stale@v9.0.0
with:
stale-pr-message: >
Hi, if you need any assistance, please don't hesitate to ask here or in #electronics on Slack. This pull request is being marked as 'Stalled' for now and will be closed in 3 days if there is no activity.
close-pr-message: >
This pull request has been inactive for some time and has therefore been closed. Feel free to create a new one when you're ready.
# The number of days old an issue or a pull request can be before marking it stale. Set to -1 to never mark issues or pull requests as stale automatically.
days-before-issue-stale: 30
days-before-pr-stale: 7
# The number of days to wait to close an issue or a pull request after it being marked stale. Set to -1 to never close stale issues or pull requests.
days-before-close: 3
# The number of days to wait to close an issue after it being marked stale. Set to -1 to never close stale issues. Override "days-before-close" option regarding only the issues.
days-before-issue-close: -1
# The label to apply when an issue is stale.
stale-issue-label: "Stalled"
# The labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2").
exempt-issue-labels: "Dev"
exempt-pr-labels: "Dev"
# The label to apply when a pull request is stale.
stale-pr-label: "Stalled"
# Only pull requests with at least one of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels. Override "any-of-labels" option regarding only the pull requests.
any-of-pr-labels: "Submission"
# include-only-assigned: true
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/labeler@v5
with:
sync-labels: true