summaryrefslogtreecommitdiff
path: root/.github/workflows/stale.yml
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /.github/workflows/stale.yml
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to '.github/workflows/stale.yml')
-rw-r--r--.github/workflows/stale.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..eab3dee
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,29 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
+# Github Actions Stale: https://github.com/actions/stale
+
+name: "Close stale pull requests"
+on:
+ schedule:
+ - cron: "12 3 * * *" # arbitrary time not to DDOS GitHub
+
+permissions:
+ contents: read
+
+jobs:
+ stale:
+ permissions:
+ issues: write # for actions/stale to close stale issues
+ pull-requests: write # for actions/stale to close stale PRs
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v10
+ with:
+ stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days.'
+ close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
+ operations-per-run: 400
+ days-before-pr-stale: 7
+ days-before-issue-stale: -1
+ days-before-pr-close: 7
+ days-before-issue-close: -1