forked from rix0rrr/close-stale-prs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
54 lines (54 loc) · 1.52 KB
/
.projenrc.js
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
const { actions } = require('projen');
const project = new actions.GitHubActionTypeScriptProject({
defaultReleaseBranch: 'main',
name: 'close-stale-prs',
deps: ['@octokit/graphql'],
metadata: {
author: 'Rico Huijbers',
inputs: {
'github-token': {
description: 'GitHub token',
required: true,
},
'stale-days': {
description: 'how many days before a PR is considered stale',
required: true,
},
'response-days': {
description: 'how many days before a stale PR is closed',
required: true,
},
'important-checks-regex': {
description: 'Regex to determine which checks need to be watched (default: all checks)',
required: false,
},
'skip-labels': {
description: 'Comma-separated list of labels to ignore',
required: false,
},
'warn-message': {
description: 'Message to post to PR when grace period is entered. The word STATE will be replaced with the actual state.',
required: false,
},
'close-message': {
description: 'Message to post to PR when PR is finally closed.',
required: false,
},
'close-label': {
description: 'Label to add if the PR is finally closed',
required: false,
},
'dry-run': {
description: 'If this is set, do not perform any actions',
required: false,
},
},
outputs: {
},
branding: {
color: 'blue',
icon: 'archive',
},
},
});
project.synth();