summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanthosh Kumar <[email protected]>2025-08-02 00:56:03 +0530
committerGitHub <[email protected]>2025-08-01 19:26:03 +0000
commit9382334a5ebb02ed716c73f45b469a8e8c932a13 (patch)
treebc2c7d0227bb5e8de4af0fc225017544257d17f8
parentc795168e9c3c024973c36e7741149b46be282679 (diff)
feat(github): add workflow to manage stale issues and PRs (#4871)
Co-authored-by: Jacob Richman <[email protected]>
-rw-r--r--.github/workflows/no-response.yml32
-rw-r--r--.github/workflows/stale.yml38
2 files changed, 70 insertions, 0 deletions
diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml
new file mode 100644
index 00000000..3d3d8e7e
--- /dev/null
+++ b/.github/workflows/no-response.yml
@@ -0,0 +1,32 @@
+name: No Response
+
+# Run as a daily cron at 1:45 AM
+on:
+ schedule:
+ - cron: '45 1 * * *'
+ workflow_dispatch: {}
+
+jobs:
+ no-response:
+ runs-on: ubuntu-latest
+ if: ${{ github.repository == 'google-gemini/gemini-cli' }}
+ permissions:
+ issues: write
+ pull-requests: write
+ concurrency:
+ group: ${{ github.workflow }}-no-response
+ cancel-in-progress: true
+ steps:
+ - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ days-before-stale: -1
+ days-before-close: 14
+ stale-issue-label: 'status/need-information'
+ close-issue-message: >
+ This issue was marked as needing more information and has not received a response in 14 days.
+ Closing it for now. If you still face this problem, feel free to reopen with more details. Thank you!
+ stale-pr-label: 'status/need-information'
+ close-pr-message: >
+ This pull request was marked as needing more information and has had no updates in 14 days.
+ Closing it for now. You are welcome to reopen with the required info. Thanks for contributing!
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 00000000..914e9d57
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,38 @@
+name: Mark stale issues and pull requests
+
+# Run as a daily cron at 1:30 AM
+on:
+ schedule:
+ - cron: '30 1 * * *'
+ workflow_dispatch: {}
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ if: ${{ github.repository == 'google-gemini/gemini-cli' }}
+ permissions:
+ issues: write
+ pull-requests: write
+ concurrency:
+ group: ${{ github.workflow }}-stale
+ cancel-in-progress: true
+ steps:
+ - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-issue-message: >
+ This issue has been automatically marked as stale due to 60 days of inactivity.
+ It will be closed in 14 days if no further activity occurs.
+ stale-pr-message: >
+ This pull request has been automatically marked as stale due to 60 days of inactivity.
+ It will be closed in 14 days if no further activity occurs.
+ close-issue-message: >
+ This issue has been closed due to 14 additional days of inactivity after being marked as stale.
+ If you believe this is still relevant, feel free to comment or reopen the issue. Thank you!
+ close-pr-message: >
+ This pull request has been closed due to 14 additional days of inactivity after being marked as stale.
+ If this is still relevant, you are welcome to reopen or leave a comment. Thanks for contributing!
+ days-before-stale: 60
+ days-before-close: 14
+ exempt-issue-labels: pinned,security
+ exempt-pr-labels: pinned,security