https://github.com/cb80/add2project
Add issues and pull requests to a project.
https://github.com/cb80/add2project
actions github issues projects pull-requests
Last synced: 5 months ago
JSON representation
Add issues and pull requests to a project.
- Host: GitHub
- URL: https://github.com/cb80/add2project
- Owner: cb80
- License: mit
- Created: 2021-05-28T08:56:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T12:54:37.000Z (almost 2 years ago)
- Last Synced: 2025-09-21T08:16:48.982Z (9 months ago)
- Topics: actions, github, issues, projects, pull-requests
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/add-issue-to-a-project
- Size: 1.42 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Description
This action can add issues to a project. It supports GitHub Enterprise.
# Example
```
on:
issues:
types: [opened]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Add issue to a project in the same repository
uses: cb80/add2project@latest
with:
project: {project name}
column: {column name}
- name: Add issue to a user project
uses: cb80/add2project@latest
with:
home: users/{user name}
project: {project name}
column: {column name}
# you need a dedicated token with scope repo
token: ${{ secrets.PROJECT_TOKEN }}
- name: Add issue to an organization project
uses: cb80/add2project@latest
with:
home: orgs/{organization name}
project: {project name}
column: {column name}
# you need a dedicated token with scope write:org
token: ${{ secrets.PROJECT_TOKEN }}
```
# Inputs
| Option | Use | Default | Description |
|-----------|----------------------------------------------|--------------------------------|-------------|
| `project` | mandatory | | The name of the project. |
| `column` | mandatory | | The name of the column. |
| `home` | optional for projects in the same repository | `repos/${{github.repository}}` | The home where the repository lives. |
| `token` | optional for projects in the same repository | `${{secrets.GITHUB_TOKEN}}` | The token for authentication and authorization. |
# Credits
This action is inspired by the official [typescript action template][tstpl].
[tstpl]: https://github.com/actions/typescript-action