Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): label stale PRs and clean its cache #2232

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

kadel
Copy link
Member

@kadel kadel commented Jan 22, 2025

This adds GH action that labels PR as "Stale" when there is no activity on PR for 7 days.
It doesn't close them, just adds label.

When the PR is labeled as "Stale" it will also trigger a workflow that cleans its GitHub Actions cache. This should prevent problems that we sometimes have with cache getting filled.

fixes https://issues.redhat.com/browse/RHIDP-5610

Copy link
Contributor

@nickboldt
Copy link
Member

nickboldt commented Jan 22, 2025

If we want to close issues as well as PRs then we probably need some sort of exception for #320 as that's the renovate dashboard. Then again it looks like Renovate is handling it already:

image

Copy link

openshift-ci bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nickboldt

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

The pull request process is described here

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

@nickboldt nickboldt added the lgtm label Jan 23, 2025
@nickboldt nickboldt enabled auto-merge (squash) January 23, 2025 20:35
Copy link
Contributor

@nickboldt nickboldt merged commit 1ad4541 into redhat-developer:main Jan 23, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants