Skip to content

Commit

Permalink
Initial import (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Aug 1, 2021
1 parent d6e398c commit 680dac7
Show file tree
Hide file tree
Showing 14 changed files with 24,334 additions and 66 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ jobs:
- run: yarn build
- run: yarn package

- uses: actions/github-script@v4
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `<!-- hide-comment-action --> 👋 e2e-test`
})
- name: e2e-test
uses: ./
with:
name: foo
starts-with: |
<!-- hide-comment-action -->
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
lib/
node_modules/
node_modules/
generated/
16 changes: 12 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: hello-world
description: say Hello World
name: hide-comment
description: hide comment(s) in a pull request
inputs:
name:
description: example input
authors:
description: multi-line string of author filter
required: true
default: github-actions
starts-with:
description: multi-line string of starts-with filter
required: true
token:
description: GitHub token to post a comment
required: true
default: ${{ github.token }}
runs:
using: 'node12'
main: 'dist/index.js'
14 changes: 14 additions & 0 deletions graphql-codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
overwrite: true
schema: src/generated/octokit-graphql-schema.js
documents:
- src/queries/*.ts
generates:
src/generated/graphql-types.ts:
plugins:
- typescript
src/generated/graphql.ts:
plugins:
- typescript-operations
preset: import-types
presetConfig:
typesPath: ./graphql-types
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@
"format-check": "prettier --check **/*.ts",
"lint": "eslint **/*.ts",
"package": "ncc build --source-map --license licenses.txt",
"test": "jest"
"test": "jest",
"graphql-codegen": "graphql-codegen --config graphql-codegen.yaml",
"check": "yarn graphql-codegen && yarn format && yarn lint && yarn test"
},
"dependencies": {
"@actions/core": "1.4.0"
"@actions/core": "1.4.0",
"@actions/github": "5.0.0",
"graphql": "15.5.1"
},
"devDependencies": {
"@graphql-codegen/cli": "1.21.8",
"@graphql-codegen/import-types-preset": "1.18.6",
"@graphql-codegen/typescript": "1.23.0",
"@graphql-codegen/typescript-operations": "1.18.4",
"@octokit/graphql-schema": "10.57.0",
"@types/jest": "26.0.24",
"@types/node": "14.17.6",
"@typescript-eslint/parser": "4.28.5",
Expand Down
Loading

0 comments on commit 680dac7

Please sign in to comment.