Skip to content

Commit cb6480b

Browse files
committed
chore: permissions issues
1 parent 68e1071 commit cb6480b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ documentation.
3535

3636
### V7
3737

38-
Version 7 of this action updated the runtime to Node 20 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
38+
Version 7 of this action updated the runtime to Node 20 - <https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions>
3939

4040
All scripts are now run with Node 20 instead of Node 16 and are affected by any breaking changes between Node 16 and 20
4141

42-
The `previews` input now only applies to GraphQL API calls as REST API previews are no longer necessary - https://github.blog/changelog/2021-10-14-rest-api-preview-promotions/.
42+
The `previews` input now only applies to GraphQL API calls as REST API previews are no longer necessary - <https://github.blog/changelog/2021-10-14-rest-api-preview-promotions/>.
4343

4444
### V6
4545

46-
Version 6 of this action updated the runtime to Node 16 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
46+
Version 6 of this action updated the runtime to Node 16 - <https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions>
4747

4848
All scripts are now run with Node 16 instead of Node 12 and are affected by any breaking changes between Node 12 and 16.
4949

5050
### V5
5151

52-
Version 5 of this action includes the version 5 of `@actions/github` and `@octokit/plugin-rest-endpoint-methods`. As part of this update, the Octokit context available via `github` no longer has REST methods directly. These methods are available via `github.rest.*` - https://github.com/octokit/plugin-rest-endpoint-methods.js/releases/tag/v5.0.0
52+
Version 5 of this action includes the version 5 of `@actions/github` and `@octokit/plugin-rest-endpoint-methods`. As part of this update, the Octokit context available via `github` no longer has REST methods directly. These methods are available via `github.rest.*` - <https://github.com/octokit/plugin-rest-endpoint-methods.js/releases/tag/v5.0.0>
5353

5454
For example, `github.issues.createComment` in V4 becomes `github.rest.issues.createComment` in V5
5555

@@ -157,7 +157,7 @@ on:
157157
158158
# see: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
159159
permissions:
160-
pull-requests: 'write'
160+
issues: 'write'
161161
162162
jobs:
163163
comment:
@@ -434,11 +434,13 @@ jobs:
434434

435435
If you want type support for your scripts, you could use the command below to install the
436436
`github-script` type declaration.
437+
437438
```sh
438-
$ npm i -D @types/github-script@github:actions/github-script
439+
npm i -D @types/github-script@github:actions/github-script
439440
```
440441

441442
And then add the `jsDoc` declaration to your script like this:
443+
442444
```js
443445
// @ts-check
444446
/** @param {import('@types/github-script').AsyncFunctionArguments} AsyncFunctionArguments */

0 commit comments

Comments
 (0)