Skip to content

Action that lets you set a default project board for all newly created issues to be added to.

License

Notifications You must be signed in to change notification settings

skeet70/default-project-board-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

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

About

Action that lets you set a default project board for all newly created issues to be added to.

Resources

License

Stars

Watchers

Forks

Packages

No packages published