mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
Merge pull request #95 from pradyunsg/patch-1
Move information about diffs to correct heading
This commit is contained in:
14
README.md
14
README.md
@@ -179,6 +179,13 @@ jobs:
|
|||||||
console.log(result)
|
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
|
### Run custom GraphQL queries
|
||||||
|
|
||||||
You can use the `github.graphql` object to run custom GraphQL queries against the GitHub API.
|
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
|
### Run a separate file
|
||||||
|
|
||||||
If you don't want to inline your entire script that you want to run, you can
|
If you don't want to inline your entire script that you want to run, you can
|
||||||
|
|||||||
Reference in New Issue
Block a user