Skip to content

Commit bc6b292

Browse files
committed
fix: remove labels from issue creation to allow any user to submit
1 parent bb89ea1 commit bc6b292

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

composables/useGitHubIssues.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ ${JSON.stringify(contribution, null, 2)}
9797

9898
const title = `[GUIDE] ${contribution.meta.title}`
9999
const body = formatContributionMarkdown(contribution)
100-
const labels = [
101-
'contribution',
102-
'pending-review',
103-
contribution.meta.type === 'developer' ? 'developer-guide' : 'user-guide'
104-
]
105100

106101
try {
107102
const response = await fetch(
@@ -116,8 +111,7 @@ ${JSON.stringify(contribution, null, 2)}
116111
},
117112
body: JSON.stringify({
118113
title,
119-
body,
120-
labels
114+
body
121115
})
122116
}
123117
)
@@ -154,16 +148,10 @@ ${JSON.stringify(contribution, null, 2)}
154148
function generateIssueUrl(contribution: GuideContribution): string {
155149
const title = `[GUIDE] ${contribution.meta.title}`
156150
const body = formatContributionMarkdown(contribution)
157-
const labels = [
158-
'contribution',
159-
'pending-review',
160-
contribution.meta.type === 'developer' ? 'developer-guide' : 'user-guide'
161-
].join(',')
162151

163152
const params = new URLSearchParams({
164153
title,
165-
body,
166-
labels
154+
body
167155
})
168156

169157
return `https://github.com/${REPO_OWNER}/${REPO_NAME}/issues/new?${params.toString()}`

0 commit comments

Comments
 (0)