Skip to content

🧹 chore: Fix autolabeler for release-drafter#3865

Merged
ReneWerner87 merged 2 commits intomainfrom
fix-autolabeler
Nov 13, 2025
Merged

🧹 chore: Fix autolabeler for release-drafter#3865
ReneWerner87 merged 2 commits intomainfrom
fix-autolabeler

Conversation

@gaby
Copy link
Member

@gaby gaby commented Nov 13, 2025

Description

  • Fix autolabeler formatting, the one for release-drafter is different.
  • Improve release autogenerated notes.

Copilot AI review requested due to automatic review settings November 13, 2025 14:22
@gaby gaby requested a review from a team as a code owner November 13, 2025 14:22
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 13, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .github/release-drafter.yml is excluded by !**/*.yml

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.

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-autolabeler

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @gaby, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines the automated release process by updating the release-drafter configuration. It ensures more accurate and relevant labeling of pull requests and significantly enhances the clarity and utility of the autogenerated release notes, providing immediate access to key information and community resources.

Highlights

  • Release Drafter Configuration Update: The release-drafter.yml configuration has been updated to refine how pull requests are automatically labeled and how release notes are generated.
  • Improved Release Note Template: The template for autogenerated release notes now includes the version number, a "What's Changed" section, and direct links to documentation and Discord.
  • Autolabeler Logic Refinement: The logic for automatically assigning labels based on PR titles has been adjusted, including updated regex patterns for several labels and a switch to file-based matching for dependency updates. The 'Proposal' label has also been removed from the autolabeling process.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Removed version header and 'What's Changed' section from release drafter template.
@gaby gaby added the v3 label Nov 13, 2025
@ReneWerner87 ReneWerner87 added this to v3 Nov 13, 2025
@ReneWerner87 ReneWerner87 added this to the v3 milestone Nov 13, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes the autolabeler configuration for release-drafter by updating its syntax and also improves the template for autogenerated release notes. The changes are positive, particularly the more reliable method for labeling dependency updates. However, I have identified a couple of areas in the regular expressions for labeling bugs and updates that could be refined to prevent mislabeling of pull requests. My suggestions aim to restore some of the previous matching logic for more accurate labeling.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the autolabeler configuration format for release-drafter and improves the release notes template. The autolabeler configuration has been updated from the nested matcher: structure to the correct direct property format, and the release template now includes better formatting with documentation links and a "What's Changed" section.

Key Changes

  • Fixed autolabeler format by removing nested matcher: structure and using direct title:, files:, and branch: properties
  • Removed '📝 Proposal' label from version-resolver minor labels
  • Enhanced release template with version header, documentation links, and Discord link

@@ -39,7 +39,6 @@ version-resolver:
minor:
labels:
- '✏️ Feature'
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

The '📝 Proposal' label is still referenced in the categories section (line 16) but has been removed from the version-resolver. This creates an inconsistency where PRs with this label will appear in the "🚀 New" category but won't affect version calculation.

Consider also removing '📝 Proposal' from line 16 in the categories section, or add it back to the version-resolver if proposal PRs should still bump the minor version.

Suggested change
- '✏️ Feature'
- '✏️ Feature'
- '📝 Proposal'

Copilot uses AI. Check for mistakes.
title: '/(bump|dependencies)/i'
files:
- 'go.mod'
- 'go.sum'
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

The word "missing" has been moved from the '☢️ Bug' pattern to the '🧹 Updates' pattern. However, commits with "missing" in the title typically indicate bug fixes (e.g., "fix missing validation", "add missing error check"), not general updates or improvements.

Consider moving "missing" back to the '☢️ Bug' pattern on line 69 to ensure bug fixes are properly categorized.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.69%. Comparing base (813404a) to head (69a6379).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3865   +/-   ##
=======================================
  Coverage   91.69%   91.69%           
=======================================
  Files         115      115           
  Lines        9819     9819           
=======================================
  Hits         9004     9004           
  Misses        516      516           
  Partials      299      299           
Flag Coverage Δ
unittests 91.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@gaby
Copy link
Member Author

gaby commented Nov 13, 2025

Words can be tweaked in the future, next PR will be to enforce the title of PRs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: 69a6379 Previous: 813404a Ratio
Benchmark_Compress_Levels/Zstd_LevelDefault - B/op 1 B/op 0 B/op +∞

This comment was automatically generated by workflow using github-action-benchmark.

@ReneWerner87 ReneWerner87 merged commit db2576e into main Nov 13, 2025
15 of 16 checks passed
@ReneWerner87 ReneWerner87 deleted the fix-autolabeler branch November 13, 2025 14:57
@github-project-automation github-project-automation bot moved this to Done in v3 Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants