Skip to content

Add to Project

Actions
Set a default project board for issues to be addded to
v1
Latest
Star (8)

javscript-action status

Default Project Board Action

Intended to be used to set a default board for all new issues to automatically be added to. Currently only works with Project (Classic), not modern GitHub projects.

Usage

name: "Default Project"

on:
  issues:
    types:
      - opened

jobs:
  add_to_project:
    runs-on: ubuntu-latest
    steps:
      - uses: skeet70/default-project-board-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          repository: ${{ github.repository }}
          issue: ${{ github.event.issue.number }}
          project: 1

project could be set to any project number, found in the slug when you view your project on github.

Package for distribution

GitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.

Actions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.

Run package

npm run package

Since the packaged index.js is run from the dist folder.

git add dist

Add to Project is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set a default project board for issues to be addded to
v1
Latest

Add to Project is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.