From 2191db40d704d23f9d8ec443ccacceba71daccab Mon Sep 17 00:00:00 2001 From: Florian Ruschbaschan <46709526+floruschbaschan@users.noreply.github.com> Date: Mon, 11 Jan 2021 15:50:06 +0100 Subject: [PATCH] Add Github actions stale and first-interaction workflow (#1054) * Add Github actions workflow Signed-off-by: Florian Ruschbaschan * Change secret name Signed-off-by: Florian Ruschbaschan --- .github/config.yml | 5 ----- .github/no-response.yml | 8 -------- .github/workflows/first-interaction.yml | 14 ++++++++++++++ .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 4 files changed, 37 insertions(+), 13 deletions(-) delete mode 100644 .github/config.yml delete mode 100644 .github/no-response.yml create mode 100644 .github/workflows/first-interaction.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index 9b2879d16..000000000 --- a/.github/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -newPRWelcomeComment: > - Thanks for taking the time to contribute to hawkBit! We really appreciate this. - Make yourself comfortable while I'm looking for a committer to help you with your contribution. - - Please make sure you read the [contribution guide](https://github.com/eclipse/hawkbit/blob/master/CONTRIBUTING.md) and signed the Eclipse Contributor Agreement (ECA). diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index 4cc4708c7..000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,8 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -daysUntilClose: 15 -responseRequiredLabel: awaiting - -closeComment: > - There has been no response from the original author so I closed this issue. - Please reach out if you have or find the answers we need so that we can investigate further. diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml new file mode 100644 index 000000000..8740ee95d --- /dev/null +++ b/.github/workflows/first-interaction.yml @@ -0,0 +1,14 @@ +name: First User Interaction + +on: [pull_request] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.PAT_SECRET }} + pr-message: |- + Thanks @${{ github.actor }} for taking the time to contribute to hawkBit! We really appreciate this. Make yourself comfortable while I'm looking for a committer to help you with your contribution. + Please make sure you read the [contribution guide](https://github.com/eclipse/hawkbit/blob/master/CONTRIBUTING.md) and signed the Eclipse Contributor Agreement (ECA). diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..0eb670e43 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: Mark & close stale issues + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.PAT_SECRET }} + days-before-stale: -1 + days-before-close: 15 + stale-issue-label: 'awaiting' + close-issue-message: |- + There has been no response from the original author so I closed this issue. + Please reach out if you have or find the answers we need so that we can investigate further. + only-labels: 'awaiting' + skip-stale-issue-message: 'true' + skip-stale-pr-message: 'true'