Skip to content

Commit 69af448

Browse files
committed
refactor: change 'ui-ux' label to 'enhancement' in issue workflow and update Navbar component to remove issue label handling
1 parent 94fd65c commit 69af448

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
"bug": "bug",
2626
"enhancement": "enhancement",
2727
"performance": "performance",
28-
"ui-ux": "ui-ux",
28+
"ui-ux": "enhancement",
2929
"question": "question"
3030
};
3131

frontend/src/components/Navbar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export default {
460460
461461
const systemInfo = this.getSystemInfo()
462462
463-
const issueLabels = this.getIssueLabels(type)
463+
// const issueLabels = this.getIssueLabels(type)
464464
const issueBody = this.formatIssueBody(description, contact, systemInfo, type)
465465
466466
const repoOwner = 'nctucsunion'
@@ -469,8 +469,8 @@ export default {
469469
const githubUrl =
470470
`https://github.com/${repoOwner}/${repoName}/issues/new?` +
471471
`title=${encodeURIComponent(title)}&` +
472-
`body=${encodeURIComponent(issueBody)}&` +
473-
`labels=${encodeURIComponent(issueLabels.join(','))}`
472+
`body=${encodeURIComponent(issueBody)}`
473+
// `&labels=${encodeURIComponent(issueLabels.join(','))}`
474474
475475
window.open(githubUrl, '_blank')
476476
@@ -560,7 +560,7 @@ export default {
560560
bug: 'bug',
561561
enhancement: 'enhancement',
562562
performance: 'performance',
563-
'ui-ux': 'ui-ux',
563+
'ui-ux': 'enhancement',
564564
question: 'question',
565565
}
566566
return [labelMap[type] || 'question']

0 commit comments

Comments
 (0)