Skip to content

monry/actions-delete-issue-from-project

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Delete GitHub Issues from GitHub Projects

Delete issue from project.

Usage

Specify parameters without id

- uses: monry/actions-delete-issue-from-project@v2
  with:
    # Personal Access Token that with `repo`, `project`, `org:read` and `org:write` are granted.
    github-token: ${{ secrets.PAT_PROJECT_V2 }}
    project-owner: 'monry'
    project-number: 1
    issue-repository: 'monry/awesome-repository'
    issue-number: 100

Specify parameters with id

- uses: monry/actions-delete-issue-from-project@v2
  with:
    # Personal Access Token that with `repo`, `project`, `org:read` and `org:write` are granted.
    github-token: ${{ secrets.PAT_PROJECT_V2 }}
    project-id: 'PVT_xxxxxxxxxxxxxx'
    issue-id: ${{ github.event.issue.node_id }}

Inputs

github-token

This action requires Personal Access Token that repo, project, org:read and org:write are granted.

For security purposes, it is recommended to register Personal Access Token as Secrets.

project-id

Node ID of project.

This value can obtain from monry/actions-get-project-id@v2.
See also: monry/actions-get-project-id repos.

project-owner

Owner name of project.

Owner name refers to the user name or the organization name.

NOTICE This value is required if project-id is not specified.

project-number

Project number.

The project number is the number shown in the URL or list of projects.

NOTICE This value is required if project-id is not specified.

project-item-id

Node ID of ProjectItem.

This value can obtain from monry/actions-get-project-item-id@v2.
See also: monry/actions-get-project-item-id repos.

issue-id

Node ID of issue.

This value can obtain from github.event.issue.node_id if triggered by on: issues.

issue-repository

Repository name of issue with owner name.

NOTICE This value is required if issue-id or project-item-id are not specified.

issue-number

Number of issue.

NOTICE This value is required if issue-id or project-item-id are not specified.

Outputs

deleted-project-item-id

Deleted Project Item Id stores into output variable named deleted-project-item-id.

- uses: monry/actions-delete-issue-from-project@v2
  id: delete-issue-from-project # requires `id` to refer output values with after steps
  with:
    github-token: ${{ secrets.PAT_PROJECT_V2 }}
    project-owner: 'monry'
    project-number: 1
    issue-repository: 'monry/awesome-repository'
    issue-number: 100
- run: |
    echo '${{ steps.delete-issue-from-project.outputs.deleted-project-item-id }}'

error

Set error message if some error occured.

About

Delete Issue from Project

Resources

Stars

Watchers

Forks

Packages

No packages published