This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.ts
56 lines (55 loc) · 1.58 KB
/
.projenrc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { GitHubActionTypeScriptProject, RunsUsing } from 'projen-github-action-typescript';
const project = new GitHubActionTypeScriptProject({
projenrcTs: true,
defaultReleaseBranch: 'main',
devDeps: ['projen-github-action-typescript'],
deps: ['heap-js'],
name: 'github-merit-badger',
autoApproveOptions: {
allowedUsernames: ['aws-sdk-osds'],
secret: 'PROJEN_GITHUB_TOKEN',
},
autoApproveUpgrades: true,
actionMetadata: {
runs: {
main: 'dist/index.js',
using: RunsUsing.NODE_20,
},
inputs: {
'github-token': {
description: 'github token',
required: true,
},
'badges': {
description: 'badge names corresponding 1-1 with thresholds',
required: true,
},
'badge-descriptions': {
description: 'badge descriptions corresponding 1-1 with badges',
required: false,
},
'thresholds': {
description: 'thresholds corresponding 1-1 with badges',
required: true,
},
'days': {
description: 'filter for pull requests merged in the last X number of days',
required: false,
},
'title-prefixes': {
description: 'filter for pull requests with titles that start with these prefixes',
required: false,
},
'ignore-usernames': {
description: 'ignore pull requests from these authors',
required: false,
},
'badge-type': {
description: 'a flag for different ways of measuring contributions',
default: 'total',
required: false,
},
},
},
});
project.synth();