File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ export const App = {
162
162
options : {
163
163
aims : [
164
164
{ name : 'Contributing code' , code : 'contribute' } ,
165
- { name : 'Triaging issues' , code : 'triage' }
165
+ { name : 'Triaging issues' , code : 'triage' } ,
166
+ { name : 'Labelling issues' , code : 'label' }
166
167
] ,
167
168
skills : [ ] ,
168
169
experiences : [
@@ -189,7 +190,7 @@ export const App = {
189
190
filteredIssues ( ) {
190
191
return this . issues . filter ( issue => {
191
192
// If aim is to triage issues
192
- if ( this . filters . aim === 'triage' ) {
193
+ if ( this . filters . aim === 'triage' || this . filters . aim === 'label' ) {
193
194
// Show all issues as they all have the label "🚦 status: awaiting triage"
194
195
return true
195
196
}
@@ -219,11 +220,14 @@ export const App = {
219
220
q . push ( 'label:"help wanted"' )
220
221
} else if ( this . filters . aim === 'triage' ) {
221
222
q . push ( 'label:"🚦 status: awaiting triage"' )
223
+ } else if ( this . filters . aim === 'label' ) {
224
+ q . push ( 'label:"🏷 status: label work required"' )
222
225
}
223
226
this . octokit . search . issuesAndPullRequests ( {
224
227
q : q . join ( ' ' ) ,
225
228
per_page : 100 ,
226
- sort : 'updated'
229
+ sort : 'created' ,
230
+ order : 'desc'
227
231
} ) . then ( res => {
228
232
this . issues = res . data . items
229
233
this . issues . forEach ( issue => {
You can’t perform that action at this time.
0 commit comments