This commit is contained in:
Stephan 2022-01-10 13:22:35 +01:00
parent a8da58dd52
commit 14e56223cd

View File

@ -21,22 +21,22 @@ jobs:
github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }} github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }}
script: | script: |
# see https://github.com/actions/github-script // see https://github.com/actions/github-script
# //
# github A pre-authenticated octokit/rest.js client with pagination plugins // github A pre-authenticated octokit/rest.js client with pagination plugins
# .rest The REST API (e.g. github.rest.issues.get(...) gets an issue) // .rest The REST API (e.g. github.rest.issues.get(...) gets an issue)
# .request // .request
# .paginate // .paginate
# .graphql // .graphql
# context An object containing the context of the workflow run // context An object containing the context of the workflow run
# see https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts // see https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts
# core A reference to the @actions/core package // core A reference to the @actions/core package
# glob A reference to the @actions/glob package // glob A reference to the @actions/glob package
# io A reference to the @actions/io package // io A reference to the @actions/io package
# exec A reference to the @actions/exec package // exec A reference to the @actions/exec package
# require A proxy wrapper around the normal Node.js require to enable requiring relative paths // require A proxy wrapper around the normal Node.js require to enable requiring relative paths
# (relative to the current working directory) + requiring npm packages installed in the // (relative to the current working directory) + requiring npm packages installed in the
# current working directory. // current working directory.
const script = require('./assign-milestone.js') const script = require('./assign-milestone.js')
script({github, context}) script({github, context})