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

[Chore] replace label-pr workflow with script #300

Conversation

yandongxiao
Copy link
Collaborator

Signed-off-by: yandongxiao [email protected]

Comment on lines 19 to 34
title=$(echo $commit | head -n1 | tr '[:upper:]' '[:lower:]')
if [[ $title == *"feature"* ]]; then
labels+=('feature')
fi
if [[ $title == *"enhancement"* ]]; then
labels+=('enhancement')
fi
if [[ $title == *"bugfix"* ]]; then
labels+=('bugfix')
fi
if [[ $title == *"chore"* ]]; then
labels+=('chore')
fi
if [[ $title == *"documentation"* ]]; then
labels+=('documentation')
fi
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
title=$(echo $commit | head -n1 | tr '[:upper:]' '[:lower:]')
if [[ $title == *"feature"* ]]; then
labels+=('feature')
fi
if [[ $title == *"enhancement"* ]]; then
labels+=('enhancement')
fi
if [[ $title == *"bugfix"* ]]; then
labels+=('bugfix')
fi
if [[ $title == *"chore"* ]]; then
labels+=('chore')
fi
if [[ $title == *"documentation"* ]]; then
labels+=('documentation')
fi
title=$(echo $commit | head -n1 | tr '[:upper:]' '[:lower:]')
case $title in
*feature*)
;;
...
esac

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@yandongxiao yandongxiao force-pushed the chore/replace-label-pr-workflow-with-script branch from 944a49e to 3e79d41 Compare November 6, 2023 08:27
@yandongxiao yandongxiao closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants