Skip to content

Commit

Permalink
Diff updated table permissions (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
namoscato authored May 1, 2021
1 parent 03fed22 commit 22ef0e5
Show file tree
Hide file tree
Showing 36 changed files with 71,216 additions and 428 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist/
lib/
node_modules/
src/diff/__tests__/fixtures/
**/fixtures/
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
"cSpell.words": [
"Fieldguide",
"Octokit",
"endregion",
"hasura",
"jsondiffpatch",
"todos",
"untracked",
"urlcat"
]
],
"files.exclude": {
"dist/": true,
"lib/": true
}
}
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[GitHub Action](https://github.com/features/actions) to generate readable [Hasura](https://hasura.io/) metadata change summaries.

<img src="https://i.imgur.com/icF3zBn.png" alt="Hasura Change Summary example comment" width="699">

## Usage

For example, with marocchino's [Sticky Pull Request Comment](https://github.com/marocchino/sticky-pull-request-comment):
Expand All @@ -19,28 +21,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Fieldguide/action-hasura-change-summary@v1
- uses: Fieldguide/action-hasura-change-summary@v2
id: hasura-change
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
hasura_endpoint: https://my-pr-${{ github.event.number }}-app.example.com
- uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: ${{ steps.hasura-change.outputs.change_markdown }}
message: ${{ steps.hasura-change.outputs.change_html }}
```
## Inputs
| input | default | description |
| ------------------ | ------- | ------------------------------------------------------------------- |
| **`github_token`** | | `GITHUB_TOKEN` secret |
| `project_dir` | `'.'` | Hasura project directory, relative to `GITHUB_WORKSPACE` |
| `hasura_endpoint` | | Hasura GraphQL engine http(s) endpoint, used for deep console links |
| input | description |
| ------------------ | ------------------------------------------------------------------------- |
| **`github_token`** | `GITHUB_TOKEN` secret |
| `project_dir` | Hasura project directory, relative to `GITHUB_WORKSPACE`; defaults to `.` |
| `hasura_endpoint` | Hasura GraphQL engine http(s) endpoint, used for deep console links |

## Outputs

| output | description |
| ----------------- | ----------------------- |
| `change` | Structured change JSON |
| `change_markdown` | Markdown change summary |
| output | description |
| ------------- | ------------------- |
| `change_html` | HTML change summary |
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ inputs:
required: false
description: 'Hasura GraphQL engine http(s) endpoint, used for deep console links'
outputs:
change:
description: 'Structured change JSON'
change_markdown:
description: 'Markdown change summary'
change_html:
description: 'HTML change summary'
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
Loading

0 comments on commit 22ef0e5

Please sign in to comment.