[PATCH rtems-source-builder 2/2] github: Mark pull requests as stale
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Jan 16 13:41:22 UTC 2023
Mark all new pull requests as stale. Add a note that the CI can be used
but that patches should be sent to the mailing list instead. Close pull
requests after 30 days.
---
.github/workflows/mark-stale.yml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 .github/workflows/mark-stale.yml
diff --git a/.github/workflows/mark-stale.yml b/.github/workflows/mark-stale.yml
new file mode 100644
index 0000000..9fd22d2
--- /dev/null
+++ b/.github/workflows/mark-stale.yml
@@ -0,0 +1,23 @@
+name: 'Mark all PRs as stale'
+on:
+ pull_request:
+ types: [opened]
+ schedule:
+ - cron: '28 6 * * *'
+ workflow_dispatch:
+
+permissions:
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale at v7
+ with:
+ stale-pr-message: 'Please note that Pull Requests are neither merged nor reviewed! Your Pull Requests only trigger continuous integration builds and tests in this repository and will automatically be closed after a month. As soon as you are happy with the result, please send the patches to the mailing list at devel at rtems.org. See https://lists.rtems.org for instructions how to register for that list. Thank you. '
+ days-before-stale: -1
+ days-before-close: -1
+ days-before-pr-stale: 0
+ days-before-pr-close: 30
--
2.35.3
More information about the devel
mailing list