Skip to content

Add GitHub Action for auto-adding issues to project board from multiple repos #17

@michaelstingl

Description

@michaelstingl

Context

GitHub Free Plan limitation: Only 1 auto-add workflow allowed per project.

Current Situation

  • Auto-add workflow configured for portal-workspace repository
  • Cannot add additional workflows for app-portal and other repos
  • Need alternative solution to automatically add issues/PRs from multiple repositories

Proposed Solution

Create a GitHub Action that runs in each repository to automatically add new issues and PRs to the project board. This bypasses the workflow limit.

Implementation

Create .github/workflows/add-to-project.yml in each repo:

name: Add to Project
on:
  issues:
    types: [opened, reopened]
  pull_request:
    types: [opened, reopened]
    
jobs:
  add-to-project:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/add-to-project@v0.5.0
        with:
          project-url: https://github.com/orgs/open-service-portal/projects/1
          github-token: ${{ secrets.GITHUB_TOKEN }}

Affected Repositories

  • app-portal
  • service-nodejs-template
  • Future template repositories

Alternative Solutions

  1. Upgrade to GitHub Team plan (not necessary for now)
  2. Manually add issues (not scalable)
  3. Use org-wide automation (requires more setup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devopsBuild, deployment, infrastructure

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions