-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.projenrc.ts
58 lines (50 loc) · 1.67 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
57
58
import { Node20GitHubActionTypescriptProject } from "dkershner6-projen-github-actions";
import { RunsUsing } from "projen-github-action-typescript";
const MAJOR_VERSION = 2;
const project = new Node20GitHubActionTypescriptProject({
majorVersion: MAJOR_VERSION,
defaultReleaseBranch: "main",
devDeps: [
"dkershner6-projen-github-actions",
"projen-github-action-typescript",
],
name: "reaction-action",
description: "A GitHub Action to React to an Issue or Pull Request comment",
actionMetadata: {
name: "Comment Reaction",
description: "React to a comment within a GitHub Issue or Pull Request",
inputs: {
token: {
required: true,
description:
"GitHub token. The standard GITHUB_TOKEN will do just fine.",
},
commentId: {
required: false,
description:
"The comment ID to react to. Required if the triggering event is not comment related.",
},
reaction: {
required: false,
description:
"Must be a valid reaction type: https://docs.github.com/en/rest/reference/reactions#reaction-types",
default: "+1",
},
},
runs: {
using: RunsUsing.NODE_20,
main: "dist/index.js",
},
branding: {
icon: "alert-octagon",
color: "yellow",
},
},
deps: ["@octokit/webhooks-types"],
autoApproveOptions: {
allowedUsernames: ["dkershner6"],
},
sampleCode: false,
docgen: true,
});
project.synth();