uxoxo/eb2ab
0
1name: 'Close stale issues and PRs'2on:3 schedule:4 - cron: '30 1 * * 0' # Runs Once Every Sunday5 6jobs:7 stale:8 runs-on: ubuntu-latest9 permissions:10 issues: write11 pull-requests: write12 steps:13 - name: Close Stale Issues14 uses: actions/stale@v9.1.015 with:16 # Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.17 #repo-token: # optional, default is ${{ github.token }}18 # The message to post on the issue when tagging it. If none provided, will not mark issues stale.19 stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still relevant, please comment or remove the stale label to keep it open.'20 # The message to post on the pull request when tagging it. If none provided, will not mark pull requests stale.21 stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Please comment or remove the stale label if you would like to keep it open.'22 # The message to post on the issue when closing it. If none provided, will not comment when closing an issue.23 #close-issue-message: # optional24 # The message to post on the pull request when closing it. If none provided, will not comment when closing a pull requests.25 #close-pr-message: # optional26 # 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.27 days-before-stale: 1028 # The number of days old an issue can be before marking it stale. Set to -1 to never mark issues as stale automatically. Override "days-before-stale" option regarding only the issues.29 #days-before-issue-stale: # optional30 # The number of days old a pull request can be before marking it stale. Set to -1 to never mark pull requests as stale automatically. Override "days-before-stale" option regarding only the pull requests.31 #days-before-pr-stale: # optional32 # 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.33 days-before-close: 1034 # 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.35 #days-before-issue-close: # optional36 # The number of days to wait to close a pull request after it being marked stale. Set to -1 to never close stale pull requests. Override "days-before-close" option regarding only the pull requests.37 #days-before-pr-close: # optional38 # The label to apply when an issue is stale.39 #stale-issue-label: # optional, default is Stale40 # The label to apply when an issue is closed.41 #close-issue-label: # optional42 # The labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2").43 #exempt-issue-labels: # optional, default is 44 # The reason to use when closing an issue.45 #close-issue-reason: # optional, default is not_planned46 # The label to apply when a pull request is stale.47 #stale-pr-label: # optional, default is Stale48 # The label to apply when a pull request is closed.49 #close-pr-label: # optional50 # The labels that mean a pull request is exempt from being marked as stale. Separate multiple labels with commas (eg. "label1,label2").51 #exempt-pr-labels: # optional, default is 52 # The milestones that mean an issue or a pull request is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2").53 #exempt-milestones: # optional, default is 54 # The milestones that mean an issue is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2"). Override "exempt-milestones" option regarding only the issues.55 #exempt-issue-milestones: # optional, default is 56 # The milestones that mean a pull request is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2"). Override "exempt-milestones" option regarding only the pull requests.57 #exempt-pr-milestones: # optional, default is 58 # Exempt all issues and pull requests with milestones from being marked as stale. Default to false.59 #exempt-all-milestones: # optional, default is false60 # Exempt all issues with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the issues.61 #exempt-all-issue-milestones: # optional, default is 62 # Exempt all pull requests with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the pull requests.63 #exempt-all-pr-milestones: # optional, default is 64 # Only issues or pull requests with all of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels.65 #only-labels: # optional, default is 66 # Only issues or 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.67 #any-of-labels: # optional, default is 68 # Only issues 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 issues.69 #any-of-issue-labels: # optional, default is 70 # 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.71 #any-of-pr-labels: # optional, default is 72 # Only issues with all of these labels are checked if stale. Defaults to `[]` (disabled) and can be a comma-separated list of labels. Override "only-labels" option regarding only the issues.73 #only-issue-labels: # optional, default is 74 # Only pull requests with all of these labels are checked if stale. Defaults to `[]` (disabled) and can be a comma-separated list of labels. Override "only-labels" option regarding only the pull requests.75 #only-pr-labels: # optional, default is 76 # The maximum number of operations per run, used to control rate limiting (GitHub API CRUD related).77 #operations-per-run: # optional, default is 3078 # Remove stale labels from issues and pull requests when they are updated or commented on.79 #remove-stale-when-updated: # optional, default is true80 # Remove stale labels from issues when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the issues.81 #remove-issue-stale-when-updated: # optional, default is 82 # Remove stale labels from pull requests when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the pull requests.83 #remove-pr-stale-when-updated: # optional, default is 84 # Run the processor in debug mode without actually performing any operations on live issues.85 #debug-only: # optional, default is false86 # The order to get issues or pull requests. Defaults to false, which is descending.87 #ascending: # optional, default is false88 # Delete the git branch after closing a stale pull request.89 #delete-branch: # optional, default is false90 # The date used to skip the stale action on issue/pull request created before it (ISO 8601 or RFC 2822).91 #start-date: # optional, default is 92 # The assignees which exempt an issue or a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2").93 #exempt-assignees: # optional, default is 94 # The assignees which exempt an issue from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). Override "exempt-assignees" option regarding only the issues.95 #exempt-issue-assignees: # optional, default is 96 # The assignees which exempt a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). Override "exempt-assignees" option regarding only the pull requests.97 #exempt-pr-assignees: # optional, default is 98 # Exempt all issues and pull requests with assignees from being marked as stale. Default to false.99 #exempt-all-assignees: # optional, default is false100 # Exempt all issues with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the issues.101 #exempt-all-issue-assignees: # optional, default is 102 # Exempt all pull requests with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the pull requests.103 #exempt-all-pr-assignees: # optional, default is 104 # Exempt draft pull requests from being marked as stale. Default to false.105 #exempt-draft-pr: # optional, default is false106 # Display some statistics at the end regarding the stale workflow (only when the logs are enabled).107 #enable-statistics: # optional, default is true108 # A comma delimited list of labels to add when an issue or pull request becomes unstale.109 #labels-to-add-when-unstale: # optional, default is 110 # A comma delimited list of labels to remove when an issue or pull request becomes stale.111 #labels-to-remove-when-stale: # optional, default is 112 # A comma delimited list of labels to remove when an issue or pull request becomes unstale.113 #labels-to-remove-when-unstale: # optional, default is 114 # Any update (update/comment) can reset the stale idle time on the issues and pull requests.115 #ignore-updates: # optional, default is false116 # Any update (update/comment) can reset the stale idle time on the issues. Override "ignore-updates" option regarding only the issues.117 #ignore-issue-updates: # optional, default is 118 # Any update (update/comment) can reset the stale idle time on the pull requests. Override "ignore-updates" option regarding only the pull requests.119 #ignore-pr-updates: # optional, default is 120 # Only the issues or the pull requests with an assignee will be marked as stale automatically.121 #include-only-assigned: # optional, default is false122 123 