https://github.com/technote-space/create-project-card-action
GitHub actions to create project card
https://github.com/technote-space/create-project-card-action
github-actions github-projects
Last synced: about 1 month ago
JSON representation
GitHub actions to create project card
- Host: GitHub
- URL: https://github.com/technote-space/create-project-card-action
- Owner: technote-space
- License: mit
- Created: 2020-01-20T13:26:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-31T04:16:25.000Z (about 2 years ago)
- Last Synced: 2025-04-25T20:02:41.834Z (about 1 month ago)
- Topics: github-actions, github-projects
- Language: TypeScript
- Homepage:
- Size: 8.35 MB
- Stars: 15
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.ja.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Create Project Card Action
[](https://github.com/technote-space/create-project-card-action/actions)
[](https://codecov.io/gh/technote-space/create-project-card-action)
[](https://www.codefactor.io/repository/github/technote-space/create-project-card-action)
[](https://github.com/technote-space/create-project-card-action/blob/main/LICENSE)*Read this in other languages: [English](README.md), [日本語](README.ja.md).*
Project card を作成する `GitHub Actions` です。
## Table of Contents
Details
- [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)
- [オプション](#%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3)
- [Action イベント詳細](#action-%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E8%A9%B3%E7%B4%B0)
- [対象イベント](#%E5%AF%BE%E8%B1%A1%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88)
- [Author](#author)## 使用方法
e.g. issue_opened.yml
```yaml
on:
issues:
types: [opened]
name: Issue opened
jobs:
assign:
name: Assign issues to project
runs-on: ubuntu-latest
steps:
- name: Assign issues to project
uses: technote-space/create-project-card-action@v1
with:
PROJECT: Backlog
COLUMN: To do
```e.g. pr-opened.yml
```yaml
on:
pull_request:
types: [opened]
name: Pull Request opened
jobs:
assignToProject:
name: Assign PullRequest to Project
runs-on: ubuntu-latest
steps:
- name: Assign PullRequest to Project
uses: technote-space/create-project-card-action@v1
with:
PROJECT: Backlog
COLUMN: To do
```## オプション
| name | description | default | required | e.g. |
|:---:|:---|:---:|:---:|:---:|
|PROJECT|プロジェクト名| |true|`Backlog`|
|COLUMN|カラム名| |true|`To do`|
|CHECK_ORG_PROJECT|Organizationプロジェクトをチェックするかどうか
このオプションを使用する場合、`admin` へのアクセス許可が必要です。
`secrets.GITHUB_TOKEN` の代わりに Personal access token を使用してください。|false| |`true`|
|CHECK_USER_PROJECT|Userプロジェクトをチェックするかどうか
このオプションを使用する場合、`repo` へのアクセス許可が必要です。
`secrets.GITHUB_TOKEN` の代わりに Personal access token を使用してください。|false| |`true`|
|GITHUB_TOKEN|アクセストークン|`${{github.token}}`|true|`${{secrets.ACCESS_TOKEN}}`|## Action イベント詳細
### 対象イベント
| eventName | action |
|:---:|:---:|
|pull_request, pull_request_target|opened, reopened|
|issues|opened, reopened|## Author
[GitHub (Technote)](https://github.com/technote-space)
[Blog](https://technote.space)