Add Github actions stale and first-interaction workflow (#1054)

* Add Github actions workflow

Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io>

* Change secret name

Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io>
This commit is contained in:
Florian Ruschbaschan
2021-01-11 15:50:06 +01:00
committed by GitHub
parent 6df3a04f51
commit 2191db40d7
4 changed files with 37 additions and 13 deletions

5
.github/config.yml vendored
View File

@@ -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).

View File

@@ -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.

14
.github/workflows/first-interaction.yml vendored Normal file
View File

@@ -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).

23
.github/workflows/stale.yml vendored Normal file
View File

@@ -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'