Skip to content

Conversation

DitwanP
Copy link
Contributor

@DitwanP DitwanP commented Oct 13, 2025

Related Issue: n/a

Summary

Currently the regression label is being added if the user enters anything in the regression version at issue creation. This PR is to update the action with a regex that will only add the label when a valid semantic version is detected.

It also changes the name of the regression input in the issue templates in hopes that it will convey to users that a regression version is expected if they provide an input.

@github-actions github-actions bot added the chore Issues with changes that don't modify src or test files. label Oct 13, 2025
@DitwanP DitwanP added the skip visual snapshots Pull requests that do not need visual regression testing. label Oct 13, 2025
attributes:
label: Regression?
description: Please provide the last working version if the issue is a regression.
label: Regression Version?
Copy link
Member

Choose a reason for hiding this comment

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

The label conflicts with the description: regression version vs last working version.

if (regressionVersionResponse === "_No response_" || regressionVersionResponse === "") {
console.log("No regression version provided, not adding regression label.");
} else {
await github.rest.issues.addLabels({
Copy link
Member

Choose a reason for hiding this comment

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

Should this be moved to the bottom or is the regression label added elsewhere?

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

Labels

chore Issues with changes that don't modify src or test files. skip visual snapshots Pull requests that do not need visual regression testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants