-
-
Notifications
You must be signed in to change notification settings - Fork 185
/
action.yml
61 lines (55 loc) · 2.22 KB
/
action.yml
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
59
60
61
name: GraphQL Inspector
author: Kamil Kisiela <[email protected]>
description: 'Tooling for GraphQL. Compare schemas, find breaking changes, find similar types.'
branding:
icon: search
color: orange
inputs:
name:
description: |
The name of the check ("GraphQL Inspector" by default).
In case of multiple GraphQL Inspector Actions, use `name` to prevent GitHub from overwriting results.
For example, "Check Public API" and "Check Internal API".
annotations:
description: Use annotation (enabled by default)
fail-on-breaking:
description: Fail on breaking changes (enabled by default)
approve-label:
description:
'Label to mark Pull Request introducing breaking changes as safe and expected
("approved-breaking-change" by default)'
schema:
description: |
Ref and Path to GraphQL Schema (e.g. "master:schema.graphql")
* Ref is needed where 'endpoint' is not defined
* Can be URL to the GraphQL API - should represent the "after" schema. Available only if 'endpoint' is defined. Has to start with http(s).
required: true
endpoint:
description: |
An url to the GraphQL API. It should represent the "before" schema.
When using an endpoint, 'schema' should point to a file (without a reference - branch name for example)
github-token:
default: '${{ github.token }}'
required: false
description: 'Github Token. Use {{ github.token }} by default'
experimental_merge:
description: |
Merge Pull Request's branch with the target branch to get the schema.
Helps to get the correct state of schema when Pull Request is behind the target branch
(enabled by default)
rules:
description: |
Apply rules that change certain checks from Breaking to Dangerous.
Rules should be listed as a multiline YAML string, not a list
required: false
onUsage:
description: |
Used only when the `considerUsage` rule is provided, otherwise this field is ignored.
Should be a path to a JS file as described in https://the-guild.dev/graphql/inspector/docs/essentials/diff#considerusage
required: false
outputs:
changes:
description: Total number of changes
runs:
using: node20
main: action/index.js