Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR not being added to project when created #369

Open
CalvinWilkinson opened this issue Apr 28, 2023 · 0 comments
Open

PR not being added to project when created #369

CalvinWilkinson opened this issue Apr 28, 2023 · 0 comments

Comments

@CalvinWilkinson
Copy link

Description:

I have created 2 new workflows for my repository. The intent is for both of them use this GitHub action to automatically add the issue or PR to my organizational project when the issue or PR is created.
The add issue workflow works just fine.
The add PR workflow does not trigger even though I have the correct trigger for the workflow setup.

Expected Behavior:

The workflow automatically triggers when creating a new PR.

Workflows Being Used:

✅This workflow is for adding issues and works fine.

name: ⚙️Add Issue To Org Project


on:
  workflow_dispatch:
  issues:
    types: 
      - opened


jobs:
  testing:
    name: testing
    runs-on: ubuntu-latest
    steps:
    - uses: actions/add-to-project@v0.5.0
      with:
        project-url: https://github.com/orgs/KinsonDigital/projects/11
        github-token: ${{ secrets.CICD_TOKEN }}
        label-operator: NOT

❌This workflow is for adding pull requests and DOES NOT work.

name: ⚙️Add PR To Org Project


on:
  workflow_dispatch:
  pull_request:
    types: 
      - opened


jobs:
  testing:
    name: testing
    runs-on: ubuntu-latest
    steps:
    - uses: actions/add-to-project@v0.5.0
      with:
        project-url: https://github.com/orgs/KinsonDigital/projects/11
        github-token: ${{ secrets.CICD_TOKEN }}
        label-operator: NOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant