Scary_PCB #1518
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
- uses: actions/labeler@v5 | |
with: | |
sync-labels: true |