All Projects → peter-evans → create-or-update-project-card

peter-evans / create-or-update-project-card

Licence: MIT license
A GitHub action to create or update a project card

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to create-or-update-project-card

assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+288.89%)
Mutual labels:  projects, github-action
angular-gantt-schedule-timeline-calendar-example
Angular gantt-schedule-timeline-calendar usage example
Stars: ✭ 15 (-58.33%)
Mutual labels:  projects
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+1936.11%)
Mutual labels:  github-action
composer-normalize-action
+ 🎵 Provides a GitHub action for running ergebnis/composer-normalize.
Stars: ✭ 25 (-30.56%)
Mutual labels:  github-action
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (-11.11%)
Mutual labels:  github-action
Projectsv2
Google Analytics + Cloudflare+ Firebase + Projects Website+ Bugs
Stars: ✭ 10 (-72.22%)
Mutual labels:  projects
Udacity
This repo includes all the projects I have finished in the Udacity Nanodegree programs
Stars: ✭ 57 (+58.33%)
Mutual labels:  projects
chainalert-github-action
scans popular packages and alerts in cases there is suspicion of an account takeover
Stars: ✭ 38 (+5.56%)
Mutual labels:  github-action
community
FINOS Community, Project and SIG wide collaboration space
Stars: ✭ 43 (+19.44%)
Mutual labels:  projects
codeowners-validator
The GitHub CODEOWNERS file validator
Stars: ✭ 142 (+294.44%)
Mutual labels:  github-action
Tutorials
Step by step to learn coding and build Apps 🎉. Code files of Youtube & University tutorials.
Stars: ✭ 80 (+122.22%)
Mutual labels:  projects
Cayenne-Agent
Cayenne Agent
Stars: ✭ 20 (-44.44%)
Mutual labels:  projects
vscode-projects-plus-todo-plus
Bird's-eye view over your projects, view all your todo files aggregated into one.
Stars: ✭ 25 (-30.56%)
Mutual labels:  projects
ticket-check-action
Verify that pull request titles start with a ticket ID
Stars: ✭ 29 (-19.44%)
Mutual labels:  github-action
issue-states
GitHub Action that closes or reopens issues when they are moved to a project column
Stars: ✭ 64 (+77.78%)
Mutual labels:  projects
find-comment
A GitHub action to find an issue or pull request comment
Stars: ✭ 81 (+125%)
Mutual labels:  github-action
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (-11.11%)
Mutual labels:  github-action
project-management-system
A Project Management System built with Python and Django
Stars: ✭ 100 (+177.78%)
Mutual labels:  projects
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+2.78%)
Mutual labels:  github-action
lcov-cop
A Github Action which helps enforce code coverage
Stars: ✭ 13 (-63.89%)
Mutual labels:  github-action

Create or Update Project Card

CI GitHub Marketplace

A GitHub action to create or update a project card.

Usage

Create a project card

      - name: Create or Update Project Card
        uses: peter-evans/create-or-update-project-card@v2
        with:
          project-name: My project
          column-name: My column
          issue-number: 1

Update a project card

If a card already exists in project My project for issue 1, the action will check if the card is in column My second column. If not in the specified column, the action will move the card.

      - name: Create or Update Project Card
        uses: peter-evans/create-or-update-project-card@v2
        with:
          project-name: My project
          column-name: My second column
          issue-number: 1

Create a card in an organization or user project

When creating cards in an organization or user project, a repo and admin:org scoped Personal Access Token (PAT) is required.

      - name: Create or Update Project Card
        uses: peter-evans/create-or-update-project-card@v2
        with:
          token: ${{ secrets.PAT }}
          project-location: my-org
          project-name: My project
          column-name: My second column
          issue-number: 1

Create a card for all new issues

on:
  issues:
    types: [opened]
jobs:
  createCard:
    runs-on: ubuntu-latest
    steps:
      - name: Create or Update Project Card
        uses: peter-evans/create-or-update-project-card@v2
        with:
          project-name: My project
          column-name: My column

Create a card for all new pull requests

Note that the following example uses the pull_request_target event, not pull_request. In public repositories this action does not work in pull_request workflows when triggered by forks. This is due to token restrictions put in place by GitHub Actions. Private repositories can be configured to enable workflows from forks to run without restriction. See here for further explanation.

on:
  pull_request_target:
    types: [opened]
jobs:
  createCard:
    runs-on: ubuntu-latest
    steps:
      - name: Create or Update Project Card
        uses: peter-evans/create-or-update-project-card@v2
        with:
          project-name: My project
          column-name: My column
          issue-number: ${{ github.event.number }}

Action inputs

Name Description Default
token GITHUB_TOKEN or a repo scoped PAT. GITHUB_TOKEN
project-location The location of the project. Either a repository, organization, or user. github.repository (current repository)
project-number (semi-required) The number of the project. Either project-number OR project-name must be supplied.
project-name (semi-required) The name of the project. Either project-number OR project-name must be supplied. Note that a project's name is not unique. The action will use the first matching project found.
column-name (required) The name of the column to add a card to, or move an existing card to.
repository The GitHub repository containing the issue or pull request. github.repository (current repository)
issue-number The issue or pull request number to associate with the card. github.event.issue.number

Action outputs

The action outputs card-id for use in later workflow steps.

      - name: Create or Update Project Card
        id: coupc
        uses: peter-evans/create-or-update-project-card@v2
        with:
          project-name: My project
          column-name: My column
          issue-number: 1
      - name: Check output
        run: echo ${{ steps.coupc.outputs.card-id }}

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].