Skip to content

maint: Add stale github action#4926

Merged
xrmx merged 10 commits intoopen-telemetry:mainfrom
honeycombio:mike/add-stale-gha
Mar 2, 2026
Merged

maint: Add stale github action#4926
xrmx merged 10 commits intoopen-telemetry:mainfrom
honeycombio:mike/add-stale-gha

Conversation

@MikeGoldsmith
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread .github/workflows/stale.yml Outdated
Comment thread .github/workflows/stale.yml
Comment thread .github/workflows/stale.yml Outdated
MikeGoldsmith and others added 4 commits February 23, 2026 10:12
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@tammy-baylis-swi tammy-baylis-swi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@MikeGoldsmith
Copy link
Copy Markdown
Member Author

Please could someone add this to the PR review board: Python PR digest

@tammy-baylis-swi
Copy link
Copy Markdown
Contributor

Please could someone add this to the PR review board

Done!

@xrmx
Copy link
Copy Markdown
Contributor

xrmx commented Mar 2, 2026

@MikeGoldsmith please update to latest main

@xrmx xrmx merged commit 2308baf into open-telemetry:main Mar 2, 2026
448 checks passed
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Python PR digest Mar 2, 2026
Vitexus pushed a commit to Vitexus/opentelemetry-python that referenced this pull request Apr 30, 2026
* maint: Add stale github action

* add changelog entry

* increase close days, add exempt pr labels

* update contributing with stale PRs section

* Update cron schedule

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* update stale message

* clean-up

---------

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants