Skip to content

Auto-label pre-commit autoupdate PRs with "no releasenotes" #471

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

Merged

Conversation

Sohaibameer204
Copy link
Contributor

@Sohaibameer204 Sohaibameer204 commented May 14, 2025

Resolves the issue where auto-generated pre-commit update PRs were missing the "no releasenotes" label.

This workflow "label-precommit-prs.yml" file checks if a PR title includes "pre-commit autoupdate" and automatically applies the "no releasenotes" label. This ensures consistent labeling of automated PRs and improves release note handling.

Closes #[69]


📚 Documentation preview 📚: https://causalpy--471.org.readthedocs.build/en/471/

@drbenvincent
Copy link
Collaborator

Thanks for the PR @Sohaibameer204! So I am not strong with GitHub actions yet. This does seem like a totally legit approach, and maybe the approach.

My naive prediction was that closing #469 would involve finding the action that creates the PR and just adds the label. But it's also entirely unclear to me where these PR's are actually originating from.

Regardless of whether that becomes the solution, it would be interesting (from a repo maintenance perspective) to understand where the recommit autoupdate PR's are coming from. Tagging @williambdean in case you know.

@drbenvincent drbenvincent added the devops DevOps related label May 15, 2025
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.67%. Comparing base (5d1da5c) to head (289fc1c).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #471   +/-   ##
=======================================
  Coverage   94.67%   94.67%           
=======================================
  Files          32       32           
  Lines        2196     2196           
=======================================
  Hits         2079     2079           
  Misses        117      117           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@williambdean williambdean left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@drbenvincent drbenvincent merged commit 2353d0b into pymc-labs:main May 16, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops DevOps related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto generated pre-commit autoupdate PR's should be tagged with the label "no releasenotes"
3 participants