Checks whether an issue or pull is already added to the project board
This action will make a graphql query and determine whether an issue or pull request Is already added to the project board identified by the name of the board
The Action is used in my org in some Project board automation workflows
Required Github PAT with organization scope, e.g. secrets.GH_TOKEN
Required The organization owns the board or repository
Required Project board name which should be searched for the Card with the issue
Required Issue or pull request number to look for
Required the repo name (reponame in the owner scope without owner path) where the issue is located
"true if issue is added to the given board"
node_id or graphql id of the board
name of teh project board
name of the repo where the issue is located
graphql id of the card
name of the column where the card with the issue is located
graphql id of the column where the card with the issue is located
name: User was Assigned to Issue
on:
issues: [opened, reopened]
jobs:
do-something:
steps:
- uses: jurijzahn8019/[email protected]
id: checker
with:
token: ${{ secrets.GH_TOKEN }}
owner: ${{ github.repository_owner }}
board: My Board
repo: ${{ github.event.repository.name }}
number: ${{ github.event.issue.number }}
- name: Do Something if issue is already on the board
if: ${{ steps.checker.outputs.isOnBoard }}
run: |
do something with the issue
DEBUG=action-is-issue-on-board* \
INPUT_TOKEN=$GITHUB_TOKEN \
INPUT_OWNER="my-org" \
INPUT_BOARD="My Board" \
INPUT_REPO="my-repo"
INPUT_NUMBER=666 \
ts-node src/index.ts