Skip to content

Commit 680dac7

Browse files
authored
Initial import (#1)
1 parent d6e398c commit 680dac7

14 files changed

+24334
-66
lines changed

.github/workflows/ts.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,17 @@ jobs:
3636
- run: yarn build
3737
- run: yarn package
3838

39+
- uses: actions/github-script@v4
40+
with:
41+
script: |
42+
github.issues.createComment({
43+
issue_number: context.issue.number,
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
body: `<!-- hide-comment-action --> 👋 e2e-test`
47+
})
3948
- name: e2e-test
4049
uses: ./
4150
with:
42-
name: foo
51+
starts-with: |
52+
<!-- hide-comment-action -->

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist/
22
lib/
3-
node_modules/
3+
node_modules/
4+
generated/

action.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
name: hello-world
2-
description: say Hello World
1+
name: hide-comment
2+
description: hide comment(s) in a pull request
33
inputs:
4-
name:
5-
description: example input
4+
authors:
5+
description: multi-line string of author filter
66
required: true
7+
default: github-actions
8+
starts-with:
9+
description: multi-line string of starts-with filter
10+
required: true
11+
token:
12+
description: GitHub token to post a comment
13+
required: true
14+
default: ${{ github.token }}
715
runs:
816
using: 'node12'
917
main: 'dist/index.js'

graphql-codegen.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
overwrite: true
2+
schema: src/generated/octokit-graphql-schema.js
3+
documents:
4+
- src/queries/*.ts
5+
generates:
6+
src/generated/graphql-types.ts:
7+
plugins:
8+
- typescript
9+
src/generated/graphql.ts:
10+
plugins:
11+
- typescript-operations
12+
preset: import-types
13+
presetConfig:
14+
typesPath: ./graphql-types

package.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@
77
"format-check": "prettier --check **/*.ts",
88
"lint": "eslint **/*.ts",
99
"package": "ncc build --source-map --license licenses.txt",
10-
"test": "jest"
10+
"test": "jest",
11+
"graphql-codegen": "graphql-codegen --config graphql-codegen.yaml",
12+
"check": "yarn graphql-codegen && yarn format && yarn lint && yarn test"
1113
},
1214
"dependencies": {
13-
"@actions/core": "1.4.0"
15+
"@actions/core": "1.4.0",
16+
"@actions/github": "5.0.0",
17+
"graphql": "15.5.1"
1418
},
1519
"devDependencies": {
20+
"@graphql-codegen/cli": "1.21.8",
21+
"@graphql-codegen/import-types-preset": "1.18.6",
22+
"@graphql-codegen/typescript": "1.23.0",
23+
"@graphql-codegen/typescript-operations": "1.18.4",
24+
"@octokit/graphql-schema": "10.57.0",
1625
"@types/jest": "26.0.24",
1726
"@types/node": "14.17.6",
1827
"@typescript-eslint/parser": "4.28.5",

0 commit comments

Comments
 (0)