Skip to content

technote-space/create-project-card-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

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

Options

name description default required e.g.
PROJECT Project name true Backlog
COLUMN Column name true To do
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.
false true
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.
false true
GITHUB_TOKEN Access token ${{github.token}} true ${{secrets.ACCESS_TOKEN}}

Action event details

Target events

eventName action
pull_request, pull_request_target opened, reopened
issues opened, reopened

Author

GitHub (Technote)
Blog