An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Create Project Card Action

[![CI Status](https://github.com/technote-space/create-project-card-action/workflows/CI/badge.svg)](https://github.com/technote-space/create-project-card-action/actions)
[![codecov](https://codecov.io/gh/technote-space/create-project-card-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/create-project-card-action)
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/create-project-card-action/badge)](https://www.codefactor.io/repository/github/technote-space/create-project-card-action)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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)