mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
docs: remove github-token usage from examples
This commit is contained in:
parent
a3e7071a34
commit
cec08706ee
1 changed files with 0 additions and 6 deletions
|
|
@ -66,7 +66,6 @@ output of a github-script step. For some workflows, string encoding is preferred
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
id: my-script
|
id: my-script
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
script: return "I will be string (not JSON) encoded!"
|
script: return "I will be string (not JSON) encoded!"
|
||||||
```
|
```
|
||||||
|
|
@ -100,7 +99,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
github.issues.createComment({
|
github.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
|
|
@ -123,7 +121,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
github.issues.addLabels({
|
github.issues.addLabels({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
|
|
@ -144,7 +141,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
// Get a list of all issues created by the PR opener
|
// Get a list of all issues created by the PR opener
|
||||||
// See: https://octokit.github.io/rest.js/#pagination
|
// See: https://octokit.github.io/rest.js/#pagination
|
||||||
|
|
@ -188,7 +184,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
const diff_url = context.payload.pull_request.diff_url
|
const diff_url = context.payload.pull_request.diff_url
|
||||||
const result = await github.request(diff_url)
|
const result = await github.request(diff_url)
|
||||||
|
|
@ -213,7 +208,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v4
|
- uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
const query = `query($owner:String!, $name:String!, $label:String!) {
|
const query = `query($owner:String!, $name:String!, $label:String!) {
|
||||||
repository(owner:$owner, name:$name){
|
repository(owner:$owner, name:$name){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue