summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-13 16:13:22 -0400
committerGitHub <noreply@github.com>2020-03-13 16:13:22 -0400
commit727f38ed16e1efbfafbce99ca5a6ff6d62628302 (patch)
tree944a9037dec0fca9ec30a5f3390252e076787da2 /.github
parent1426a0d036a7f6707aac142a51f155f507d26739 (diff)
downloadvyos-cloud-init-727f38ed16e1efbfafbce99ca5a6ff6d62628302.tar.gz
vyos-cloud-init-727f38ed16e1efbfafbce99ca5a6ff6d62628302.zip
workflows: introduce stale pull request workflow (#125)
This workflow will label pull requests with "stale-pr" if they haven't seen activity for 14 days. It will then close them out after a further 7 days of inactivity.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/stale.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 00000000..5da7c976
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,24 @@
+name: Mark and close stale pull requests
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Daily @ 00:00
+
+jobs:
+ stale:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/stale@v1
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ days-before-stale: 14
+ days-before-close: 7
+ stale-pr-message: |
+ Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.
+
+ If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging powersj, and he will ensure that someone takes a look soon.
+
+ (If the pull request is closed, please do feel free to reopen it if you wish to continue working on it.)
+ stale-pr-label: 'stale-pr'