Skip to content

GitHub Action for moving issue cards on Project Boards across columns.

License

Notifications You must be signed in to change notification settings

ineshbose/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

Project Card Action

A GitHub Action that moves issue cards in your project boards, without having to specify the board and column names, from a workflow. This project is in BETA. Please report bugs if encountered.

Usage

name: Move card

on:
  # refer https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#issues
  issues:
    types: [assigned]
  # refer https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#issue_comment
  issue_comment:
    types: [created]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: ineshbose/project-card-action@v1
        with:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          ISSUE_NUMBER: ${{ github.event.issue.number }}
          TARGET_COLUMN: 'Review'
Argument Required Default Description
GH_TOKEN Yes GitHub Token required to make changes. You can use ${{ secrets.GITHUB_TOKEN }}.
ISSUE_NUMBER Yes The issue number that the card is connected to.
PROJECT_NAME No The project/board where the card should be. The action searches through all projects/boards otherwise.
SOURCE_COLUMN No The column where the card should be. The action searches through all columns otherwise.
TARGET_COLUMN Yes The column where the card should be moved.
CARD_POSITION No bottom The position of the card in the target column.