mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Merge pull request #95 from pradyunsg/patch-1
Move information about diffs to correct heading
This commit is contained in:
commit
f035cea467
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -179,6 +179,13 @@ jobs:
|
|||
console.log(result)
|
||||
```
|
||||
|
||||
_(Note that this particular example only works for a public URL, where the
|
||||
diff URL is publicly accessible. Getting the diff for a private URL requires
|
||||
using the API.)_
|
||||
|
||||
This will print the full diff object in the screen; `result.data` will
|
||||
contain the actual diff text.
|
||||
|
||||
### Run custom GraphQL queries
|
||||
|
||||
You can use the `github.graphql` object to run custom GraphQL queries against the GitHub API.
|
||||
|
|
@ -212,13 +219,6 @@ jobs:
|
|||
|
||||
```
|
||||
|
||||
_(Note that this particular example only works for a public URL, where the
|
||||
diff URL is publicly accessible. Getting the diff for a private URL requires
|
||||
using the API.)_
|
||||
|
||||
This will print the full diff object in the screen; `result.data` will
|
||||
contain the actual diff text.
|
||||
|
||||
### Run a separate file
|
||||
|
||||
If you don't want to inline your entire script that you want to run, you can
|
||||
|
|
|
|||
Loading…
Reference in a new issue