Skip to content

New: Add addtomainproject.yml (fix #12) - #13

Open
swashbuck wants to merge 3 commits into
masterfrom
issue/12
Open

New: Add addtomainproject.yml (fix #12)#13
swashbuck wants to merge 3 commits into
masterfrom
issue/12

Conversation

@swashbuck

@swashbuck swashbuck commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Fix #12

New

  • Adds shared addtomainproject.yml GitHub workflow file.
    • Optionally pass in project-url for the GitHub project URL. Defaults to https://github.com/orgs/adaptlearning/projects/2

Examples

The following examples are how the workflow files should look in another plugin.

addtomainproject.yml

name: Add to Project Workflow
on:
  issues:
    types:
      - opened
  pull_request:
    types:
      - opened
jobs:
  add-to-project:
    uses: adaptlearning/semantic-release-config/.github/workflows/addtomainproject.yml@master
    secrets: inherit

Or to use a different project, pass in a project-url value in the with section:

name: Add to Project Workflow

on:
  issues:
    types:
      - opened
  pull_request:
    types:
      - opened

jobs:
  add-to-project:
    uses: adaptlearning/semantic-release-config/.github/workflows/addtomainproject.yml@master
    with:
      project-url: 'https://github.com/orgs/adaptlearning/projects/3'
    secrets: inherit

@swashbuck swashbuck self-assigned this Jun 8, 2026
@swashbuck swashbuck added the enhancement New feature or request label Jun 8, 2026
@swashbuck swashbuck moved this from New to Needs Reviewing in adapt_framework: The TODO Board Jun 8, 2026
@swashbuck
swashbuck requested a review from taylortom June 8, 2026 22:37
Comment thread .github/workflows/addtomainproject.yml Outdated
@taylortom

taylortom commented Jun 25, 2026

Copy link
Copy Markdown
Member

Looks good, a couple of bits:

  • We probably need to rename this repo/move to a new repo to avoid the weirdness of importing this from a semantic-release-config namespace
  • We need docs similar to the release workflow to flag the necessary config (particuarly the secrets needed: secrets.ADDTOPROJECT_TOKEN/secrets: inherit) etc.
  • Action is very old, do we want to update to a newer version? (latest is v2.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Needs Reviewing

Development

Successfully merging this pull request may close these issues.

Add a reusable addtomainproject.yml workflow

2 participants