https://github.com/papermc/update-projects-action
https://github.com/papermc/update-projects-action
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/papermc/update-projects-action
- Owner: PaperMC
- Created: 2023-03-11T19:07:25.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-27T21:31:56.000Z (almost 3 years ago)
- Last Synced: 2025-04-23T08:25:03.261Z (9 months ago)
- Language: TypeScript
- Size: 200 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add to Project
This action manages issues and PRs with GitHub's projects.
## Inputs
| Name | Description |
|---------------------|-----------------------------------------------------------------|
| github-token | Access Token with high enough permissions to change the project |
| project-url | The full url to your project that will be modified |
| column-field | The field in the project that determines the columns |
| label-to-column-map | A JSON object mapping labels to column names |
## Example usage
```yml
name: Update Projects
on:
issues:
types:
- labeled
- unlabeled
concurrency:
group: update-projects-${{ github.event_name }}
cancel-in-progress: true
jobs:
issues:
runs-on: ubuntu-latest
steps:
# substitute RELEASE_VERSION for the latest version available in releases
- uses: Machine-Maker/add-to-project-action@RELEASE_VERSION
with:
github-token: ${{ secrets.SOME_TOKEN }}
project-url: # e.g. https://github.com/users/Machine-Maker/projects/1/views/1
column-field: Status
label-to-column-map: |
{
"bug": "Todo",
"enhancement": "In Progress",
"wontfix": "Invalid",
"duplicate": "Invalid"
}
```
## Development
This project uses the yarn package manager.
```bash
yarn install # installs dependencies
```
```bash
yarn package # run before committing changes
```