Skip to content

maint: Add stale github action#4926

Open
MikeGoldsmith wants to merge 4 commits intoopen-telemetry:mainfrom
honeycombio:mike/add-stale-gha
Open

maint: Add stale github action#4926
MikeGoldsmith wants to merge 4 commits intoopen-telemetry:mainfrom
honeycombio:mike/add-stale-gha

Conversation

@MikeGoldsmith
Copy link
Member

@MikeGoldsmith MikeGoldsmith commented Feb 19, 2026

Description

Adds a GitHub Action to automatically mark stale PRs and close them after inactivity, adapted from the opentelemetry-java workflow.

  • PRs with no activity for 14 days are marked stale by
    • by adding a stale comment from configuration
    • adding the "Stale" label
  • Stale PRs with no activity for a further 14 days are closed and add the close comment
  • PRs with an exempt label are ignored
  • Added section to CONTRIBUTING.md
  • Issues are not affected

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

CI-only change, no code tests applicable.

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner February 19, 2026 17:49
@tammy-baylis-swi
Copy link
Contributor

tammy-baylis-swi commented Feb 20, 2026

Thank you @MikeGoldsmith for making this happen!

Please could you also whip up a quick, generalized explanation under CONTRIBUTING Pull Requests.

I think the 14+7 day rule is generally fair. But maybe a 14+14 would be safer?

EDIT: Shoot I'm on the wrong PR 😉 will go to the other one open-telemetry/opentelemetry-python-contrib#4220

@MikeGoldsmith
Copy link
Member Author

MikeGoldsmith commented Feb 20, 2026

Thank you @MikeGoldsmith for making this happen!

Please could you also whip up a quick, generalized explanation under CONTRIBUTING Pull Requests.

I think the 14+7 day rule is generally fair. But maybe a 14+14 would be safer?

EDIT: Shoot I'm on the wrong PR 😉 will go to the other one open-telemetry/opentelemetry-python-contrib#4220

I do want to add the GHA to both core and contrib, but happy to tweak there first then copy here.

@MikeGoldsmith
Copy link
Member Author

I've updated this PR to match the one we have open for contrib:

  • increase stale / close days to 14+14
  • add exempt PR labels
  • add stale PRs section to CONTRIBUTING.md

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments