mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-11 12:37:16 +00:00
Update README
Fine grain PATs now support GraphQL API Update default Node version
This commit is contained in:
@@ -7,8 +7,6 @@ Note that this action does not support [GitHub projects (classic)](https://docs.
|
|||||||
|
|
||||||
[](https://github.com/actions/add-to-project/actions/workflows/test.yml)
|
[](https://github.com/actions/add-to-project/actions/workflows/test.yml)
|
||||||
|
|
||||||
> **NOTE:** ⚠️ This action no longer uses the deprecated ProjectNext API. If you are looking for the old version of that action, use version [v0.0.5](https://github.com/actions/add-to-project/releases/tag/v0.0.5).
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
_See [action.yml](action.yml) for [metadata](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions) that defines the inputs, outputs, and runs configuration for this action._
|
_See [action.yml](action.yml) for [metadata](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions) that defines the inputs, outputs, and runs configuration for this action._
|
||||||
@@ -142,8 +140,6 @@ Using these events ensure that a given issue or pull request, in the workflow's
|
|||||||
token](https://github.com/settings/tokens/new) with `project` scope. For private repos you will also need `repo` scope.
|
token](https://github.com/settings/tokens/new) with `project` scope. For private repos you will also need `repo` scope.
|
||||||
_See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
|
_See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
|
||||||
|
|
||||||
> **NOTE:** ℹ️ Use a classic token with full control of projects. Personal access tokens with fine grained access do not support the GraphQL API.
|
|
||||||
|
|
||||||
- add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token)
|
- add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token)
|
||||||
_See [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) for more information_
|
_See [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) for more information_
|
||||||
|
|
||||||
@@ -156,7 +152,7 @@ Use the [Add To GitHub Projects](https://github.com/marketplace/actions/add-to-g
|
|||||||
## Development
|
## Development
|
||||||
|
|
||||||
To get started contributing to this project, clone it and install dependencies.
|
To get started contributing to this project, clone it and install dependencies.
|
||||||
Note that this action runs in Node.js 16.x, so we recommend using that version
|
Note that this action runs in Node.js 20.x, so we recommend using that version
|
||||||
of Node (see "engines" in this action's package.json for details).
|
of Node (see "engines" in this action's package.json for details).
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -185,6 +181,6 @@ the "dist/" directory.
|
|||||||
|
|
||||||
Now, a release can be created from the branch containing the built action.
|
Now, a release can be created from the branch containing the built action.
|
||||||
|
|
||||||
# License
|
## License
|
||||||
|
|
||||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"@actions/github": "^6.0.0"
|
"@actions/github": "^6.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0",
|
"node": ">=20.0.0",
|
||||||
"npm": ">= 8.0.0"
|
"npm": ">= 8.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user