Skip to content

Commit 419f4df

Browse files
authored
Tag application coming from Common Grant app (#446)
* Add github label for application from common app grant * Add data about the organizations the grantee applied to. * run prettier for formatting
1 parent ea2b375 commit 419f4df

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

pages/api/github.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ ${req.body.short_description}
3030
3131
${req.body.potential_impact}
3232
33+
### Other Organizations Applied To
34+
35+
${
36+
req.body.organizations
37+
? `This application was submitted to: ${req.body.organizations.join(', ')}`
38+
: 'No organizations specified'
39+
}
40+
3341
### Timeline & Milestones
3442
3543
${req.body.duration ? `Grant duration: ${req.body.duration}` : ''}
@@ -78,6 +86,11 @@ ${
7886
issueLabels.push('bitcoin') // L1 & L2 = subset of Bitcoin
7987
}
8088

89+
// Add label for applications from common grant app
90+
if (req.body.source === 'common-grant-app') {
91+
issueLabels.push('common-grant-app')
92+
}
93+
8194
// Repo set according to "main focus"
8295
let appRepo = GH_APP_REPO
8396
if (mainFocus === 'nostr') {

0 commit comments

Comments
 (0)