File tree Expand file tree Collapse file tree
.github/actions/activity/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ import { daysAgo } from './lib/utils'
55import { SlimIssue } from './types'
66
77const DAYS_WINDOW = 7
8+ const TRIAGE_LABEL = 'status: needs-triage'
89
910function generateText ( issues : SlimIssue [ ] ) {
10- let text = `*A list of issues opened in the last ${ DAYS_WINDOW } days :*\n\n`
11+ let text = `*A list of issues opened in the last ${ DAYS_WINDOW } with \`status: needs-triage\` :*\n\n`
1112
1213 issues . forEach ( ( issue ) => {
1314 text += `• ${ issue . title } - (<${ issue . html_url } |#${ issue . number } >)\n`
@@ -27,7 +28,7 @@ export async function run() {
2728 const { data } = await octoClient . rest . search . issuesAndPullRequests ( {
2829 order : 'desc' ,
2930 per_page : 15 ,
30- q : `repo:payloadcms/payload is:issue is:open created:>=${ daysAgo ( DAYS_WINDOW ) } ` ,
31+ q : `repo:payloadcms/payload is:issue is:open label:" ${ TRIAGE_LABEL } " created:>=${ daysAgo ( DAYS_WINDOW ) } ` ,
3132 sort : 'created' ,
3233 } )
3334
You can’t perform that action at this time.
0 commit comments