5454 LABEL="${{ steps.issue-parser.outputs.issueparser_label-selection }}"
5555 case "$LABEL" in
5656 fix) JIRA_ISSUETYPE="버그" ;;
57- feat |docs|style|refactor|test|chore) JIRA_ISSUETYPE="Task" ;;
57+ feature |docs|style|refactor|test|chore) JIRA_ISSUETYPE="Task" ;;
5858 *) JIRA_ISSUETYPE="Task" ;;
5959 esac
6060 echo "JIRA_ISSUETYPE=$JIRA_ISSUETYPE" >> $GITHUB_ENV
8787 run : |
8888 LABEL="${{ steps.issue-parser.outputs.issueparser_label-selection }}"
8989 case "$LABEL" in
90- feat ) TYPE="Feature" ;;
90+ feature ) TYPE="Feature" ;;
9191 fix) TYPE="Fix" ;;
9292 docs) TYPE="Docs" ;;
9393 style) TYPE="Style" ;;
9898 esac
9999 echo "TYPE=$TYPE" >> $GITHUB_ENV
100100
101+ - name : Map label to custom GitHub label
102+ run : |
103+ RAW_LABEL="${{ steps.issue-parser.outputs.issueparser_label-selection }}"
104+ case "$RAW_LABEL" in
105+ feature) CUSTOM_LABEL="✨ feature" ;;
106+ fix) CUSTOM_LABEL="🐛 fix" ;;
107+ docs) CUSTOM_LABEL="📝 docs" ;;
108+ style) CUSTOM_LABEL="💄 style" ;;
109+ refactor) CUSTOM_LABEL="♻️ refactor" ;;
110+ test) CUSTOM_LABEL="🚨 test" ;;
111+ chore) CUSTOM_LABEL="🔧 chore" ;;
112+ *) CUSTOM_LABEL="$RAW_LABEL" ;;
113+ esac
114+ echo "CUSTOM_LABEL=$CUSTOM_LABEL" >> $GITHUB_ENV
115+
101116 - name : Update issue title
102117 uses : actions-cool/issues-helper@v3
103118 with :
@@ -122,7 +137,7 @@ jobs:
122137 token : ${{ secrets.GITHUB_TOKEN }}
123138 issue-number : ${{ github.event.issue.number }}
124139 labels : |
125- ${{ steps.issue-parser.outputs.issueparser_label-selection }}
140+ ${{ env.CUSTOM_LABEL }}
126141
127142 - name : Create branch with Epic number
128143 if : steps.issue-parser.outputs.issueparser_label-selection != 'fix'
0 commit comments