2

I need a Github action which closes an issue when that issue is moved to a "Done" column on a Github Project.

My issue is that the project_card trigger only works on "classic" projects. Github specifies this in their documentation for the project_card trigger: "This event only occurs for projects (classic)."

I would use a classic project, but unfortunately Github has made it so classic projects cannot be created for repositories unless that repo has an existing classic project. I assume this is to phase out classic projects, which is fine except for triggers like project_card which only work with them.

Hoping there is some form of solution for project_card trigger to work with non-classic Github projects in the interim?

I tried using this Github Action with a non-classic project, but the action uses the project_card trigger which led me to this issue.

zeepk
  • 108
  • 6
  • 1
    You may explore the `github` context to identify the event. Maybe, something like `echo '${{ toJSON(github.event) }}' >> $GITHUB_STEP_SUMMARY` would help to see if there's such an event or not. Though, I'm not sure how this would be triggered for non-classic projects. You might have some idea of how to do that as you've been working with project-related events. – Azeem Jan 21 '23 at 06:00

1 Answers1

1

I know this question is old and unfortunately this answer is a non-answer.

I recently ran into this issue, since GitHub now disabled creating classic projects. You're right, it looks like the new projects do not trigger project_card like classic projects did. In my opinion, this is a huge overlook on GitHub's part. I have opened a discussion about it: https://github.com/orgs/community/discussions/62113

Oliver
  • 1,465
  • 4
  • 17