Skip to content

Add stale PR management for openshift-online/rosa-enhancements#80937

Open
tiwillia wants to merge 1 commit into
openshift:mainfrom
tiwillia:rosa-enhancements-stale-prs
Open

Add stale PR management for openshift-online/rosa-enhancements#80937
tiwillia wants to merge 1 commit into
openshift:mainfrom
tiwillia:rosa-enhancements-stale-prs

Conversation

@tiwillia

Copy link
Copy Markdown
Member

What

Adds two periodic commenter jobs to automatically manage stale PRs in the openshift-online/rosa-enhancements repository.

Jobs

Job Schedule Inactivity Threshold Action
periodic-rosa-enhancements-pr-stale Twice daily 28 days (672h) Applies /lifecycle stale
periodic-rosa-enhancements-pr-close Twice daily 7 days after stale (168h) Applies /close

Total lifecycle: 28 days inactive → stale → +7 days → closed (35 days total)

Details

  • Follows the pattern established by periodic-enhancements-* and periodic-pr-* jobs
  • Uses the commenter tool (quay.io/openshift/ci:ci_commenter_latest)
  • The lifecycle plugin is already enabled for openshift-online/rosa-enhancements
  • PRs with lifecycle/frozen, do-not-merge/hold, or tide/merge-blocker labels are excluded
  • Authors can use /remove-lifecycle stale to reset the timer, /lifecycle frozen to prevent auto-close, or /reopen to reopen after auto-close
  • Ceiling of 10 PRs per run to avoid flooding

Adds two periodic commenter jobs to automatically manage stale PRs
in the rosa-enhancements repository:

- periodic-rosa-enhancements-pr-stale: marks open PRs as stale after
  28 days of inactivity
- periodic-rosa-enhancements-pr-close: closes stale PRs after an
  additional 7 days of inactivity

PRs with lifecycle/frozen, do-not-merge/hold, or tide/merge-blocker
labels are excluded. Authors can use /remove-lifecycle stale to reset
the timer, /lifecycle frozen to prevent auto-close, or /reopen to
reopen after auto-close.
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/infra-periodics.yaml is excluded by !ci-operator/jobs/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: e4125d99-ff41-4625-af48-3a569565b682

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tiwillia
Once this PR has been reviewed and has the lgtm label, please assign droslean for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot requested review from Prucek and danilo-gemoli June 23, 2026 17:19
@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jun 23, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@tiwillia: no rehearsable tests are affected by this change

Note: If this PR includes changes to step registry files (ci-operator/step-registry/) and you expected jobs to be found, try rebasing your PR onto the base branch. This helps pj-rehearse accurately detect changes when the base branch has moved forward.

@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

@tiwillia: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant