From a989bc94f98a65214860d5d0078c9f45de14fbbd Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 15 Apr 2021 07:20:48 +0000 Subject: [PATCH] Add stale GH action to this repository (removing previous method) --- bitnami/google-cloud-sdk/.github/stale.yml | 36 ------------------- .../.github/workflows/stale.yml | 20 +++++++++++ 2 files changed, 20 insertions(+), 36 deletions(-) delete mode 100644 bitnami/google-cloud-sdk/.github/stale.yml create mode 100644 bitnami/google-cloud-sdk/.github/workflows/stale.yml diff --git a/bitnami/google-cloud-sdk/.github/stale.yml b/bitnami/google-cloud-sdk/.github/stale.yml deleted file mode 100644 index ea65d3277a62..000000000000 --- a/bitnami/google-cloud-sdk/.github/stale.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 15 - -# Number of days of inactivity before a stale Issue or Pull Request is closed. -daysUntilClose: 5 - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - on-hold - -# Label to use when marking as stale -staleLabel: stale - -issues: - # Comment to post when marking as stale. Set to `false` to disable - markComment: > - This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. - - # Comment to post when closing a stale Issue or Pull Request. - closeComment: > - Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. - -pulls: - # Comment to post when marking as stale. Set to `false` to disable - markComment: > - This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution. - - # Comment to post when closing a stale Issue or Pull Request. - closeComment: > - Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - diff --git a/bitnami/google-cloud-sdk/.github/workflows/stale.yml b/bitnami/google-cloud-sdk/.github/workflows/stale.yml new file mode 100644 index 000000000000..0bf90080c817 --- /dev/null +++ b/bitnami/google-cloud-sdk/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.' + stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.' + close-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.' + close-pr-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.' + days-before-stale: 15 + days-before-close: 5 + exempt-issue-labels: 'on-hold' + exempt-pr-labels: 'on-hold'