Skip to content
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

Create dynamic labels from branch name #730

Open
Nativ-Sibony opened this issue Dec 20, 2023 · 1 comment
Open

Create dynamic labels from branch name #730

Nativ-Sibony opened this issue Dec 20, 2023 · 1 comment
Labels
feature request New feature or request to improve the current logic

Comments

@Nativ-Sibony
Copy link

Nativ-Sibony commented Dec 20, 2023

Description:
Setting the label according to the branch name -
For example, my branch name is -> release/v0/v0.0.1
My desired label is -> v0.0.1

currently I am using my own action with a condition like this ->
if [[ "$TARGET_BRANCH" =~ ^release/v[0-9]+/v[0-9]+\.[0-9]+\.[0-9]+$ ]];
and then I assigned the label like this ->
LABEL_NAME=$(echo "$TARGET_BRANCH" | cut -d'/' -f 3)

@Nativ-Sibony Nativ-Sibony added feature request New feature or request to improve the current logic needs triage labels Dec 20, 2023
@marko-zivic-93
Copy link
Contributor

Hello @Nativ-Sibony ,
Thank you for creating this feature request. We will investigate and come back to you as soon as we have some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

2 participants