Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file-plus

GitHub Action

Create Project Card Action

v1.0.3

Create Project Card Action

file-plus

Create Project Card Action

GitHub actions to create project card

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Create Project Card Action

uses: technote-space/create-project-card-action@v1.0.3

Learn more about this action in technote-space/create-project-card-action

Choose a version

Create Project Card Action

CI Status codecov CodeFactor License: MIT

Read this in other languages: English, 日本語.

GitHub actions to create project card.

Table of Contents

Details

Usage

e.g. issue_opened.yml

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
          repo-token: ${{ secrets.GITHUB_TOKEN }}

e.g. pr_opened.yml

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
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Options

PROJECT

Project name.

COLUMN

Column name.

CHECK_ORG_PROJECT

Whether to check org project.
If use this option, full access permission for admin is required.
Use personal access token instead of secrets.GITHUB_TOKEN.
default: false

CHECK_USER_PROJECT

Whether to check user project.
If use this option, full access permission for repo is required.
Use personal access token instead of secrets.GITHUB_TOKEN.
default: false

Action event details

Target events

eventName action
pull_request opened, reopened
issues opened, reopened

Sample GitHub Actions using this Action

Author

GitHub (Technote)
Blog