Skip to content

Commit 28f3b0d

Browse files
authored
Merge pull request creativecommons#563 from creativecommons/incomplete_issue_labels
Create a new aim filter
2 parents 10ed457 + 0c6ca10 commit 28f3b0d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

webpack/js/components.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ export const App = {
162162
options: {
163163
aims: [
164164
{name: 'Contributing code', code: 'contribute'},
165-
{name: 'Triaging issues', code: 'triage'}
165+
{name: 'Triaging issues', code: 'triage'},
166+
{name: 'Labelling issues', code: 'label'}
166167
],
167168
skills: [],
168169
experiences: [
@@ -189,7 +190,7 @@ export const App = {
189190
filteredIssues() {
190191
return this.issues.filter(issue => {
191192
// If aim is to triage issues
192-
if (this.filters.aim === 'triage') {
193+
if (this.filters.aim === 'triage' || this.filters.aim === 'label') {
193194
// Show all issues as they all have the label "🚦 status: awaiting triage"
194195
return true
195196
}
@@ -219,11 +220,14 @@ export const App = {
219220
q.push('label:"help wanted"')
220221
} else if (this.filters.aim === 'triage') {
221222
q.push('label:"🚦 status: awaiting triage"')
223+
} else if (this.filters.aim === 'label') {
224+
q.push('label:"🏷 status: label work required"')
222225
}
223226
this.octokit.search.issuesAndPullRequests({
224227
q: q.join(' '),
225228
per_page: 100,
226-
sort: 'updated'
229+
sort: 'created',
230+
order: 'desc'
227231
}).then(res => {
228232
this.issues = res.data.items
229233
this.issues.forEach(issue => {

0 commit comments

Comments
 (0)