Skip to content

Conversation

@liudger
Copy link
Owner

@liudger liudger commented Jan 10, 2026

This pull request enhances the release workflow configuration by adding support for creating pre-releases (such as beta, alpha, or release candidate versions) directly from the workflow dispatch menu. This makes it easier to manage and automate pre-release versions.

Release workflow improvements:

  • Added prerelease and prerelease_identifier input options to the workflow dispatch trigger, allowing users to specify whether to create a pre-release and select its type (beta, alpha, or rc).
  • Updated the Release Drafter job to use the new inputs, passing them as parameters to control pre-release creation and labeling.

Copilot AI review requested due to automatic review settings January 10, 2026 13:13
@liudger liudger added the ci Work that improves the continue integration. label Jan 10, 2026
@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.87%. Comparing base (1bdd2b8) to head (840fd19).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1308   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files           6        6           
  Lines         827      827           
  Branches      102      102           
=======================================
  Hits          826      826           
  Partials        1        1           

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

@sonarqubecloud
Copy link

@liudger liudger merged commit 70ae6fe into main Jan 10, 2026
24 checks passed
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 pull request adds workflow dispatch inputs to the release drafter workflow to enable manual creation of pre-releases with configurable identifiers (beta, alpha, or rc). This enhancement allows developers to trigger pre-release creation directly from the GitHub Actions UI.

Changes:

  • Added workflow_dispatch inputs for controlling pre-release creation
  • Configured the release-drafter action to accept prerelease parameters from workflow inputs

workflow_dispatch:
inputs:
prerelease:
description: "Create a pre-release (beta)"
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The description states "Create a pre-release (beta)" but the workflow allows selecting different pre-release identifiers (beta, alpha, or rc). The description should be more generic to reflect all options, such as "Create a pre-release" or "Mark as pre-release".

Suggested change
description: "Create a pre-release (beta)"
description: "Create a pre-release"

Copilot uses AI. Check for mistakes.
uses: release-drafter/release-drafter@v6.1.0
with:
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
prerelease-identifier: ${{ github.event.inputs.prerelease_identifier }}
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The prerelease-identifier parameter may not be supported by release-drafter/release-drafter@v6.1.0. The release-drafter action typically only accepts a prerelease boolean parameter. Pre-release identifiers (beta, alpha, rc) are usually controlled through version templates in the release-drafter.yml configuration file rather than as action inputs.

Verify that this parameter is supported in v6.1.0 of the action. If it's not supported, consider either:

  1. Upgrading to a newer version that supports this parameter (if available)
  2. Removing this parameter and managing pre-release versioning through the release-drafter.yml configuration file instead
Suggested change
prerelease-identifier: ${{ github.event.inputs.prerelease_identifier }}

Copilot uses AI. Check for mistakes.
- name: 🚀 Run Release Drafter
uses: release-drafter/release-drafter@v6.1.0
with:
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The expression github.event.inputs.prerelease == 'true' is incorrect for boolean inputs. Since prerelease is defined as type: boolean in the workflow_dispatch inputs, it should be accessed directly without string comparison. The current expression will always return a string result ('true' or 'false') rather than a boolean value.

Change the expression to ${{ github.event.inputs.prerelease }} or if you need to ensure boolean type explicitly, use ${{ github.event.inputs.prerelease == true }} (without quotes).

Suggested change
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
prerelease: ${{ github.event.inputs.prerelease }}

Copilot uses AI. Check for mistakes.
@liudger liudger deleted the update-release-drafter branch January 10, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Work that improves the continue integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants