srggrs / assign-one-project-github-action

Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
MIT License
169 stars 60 forks source link

Unable to setup workflow #77

Closed TheRealKeto closed 3 years ago

TheRealKeto commented 3 years ago

Background

I decided to set this workflow up for Procursus a while back due to the functionality of the action. Using the example for organizations within the README, and with a bit of patience, my PR to add the workflow was accepted. However, the workflow didn't work for some strange reason, despite setting everything to accordance.

Setup

The following explains the current setup I'm working with. The organization, ProcursusTeam, has a project board which I have access to, and I wanted to assign PRs and issues to it. I copied the workflow for organizations and users from the README and made my modifications; here's what that looks like.

I'm unsure as to what's causing the workflow to fail; here's a mysbin of the raw logs for the workflow. I've tried with a different token (that correctly belongs to the org owner and even from others members), but that didn't work either. Am I doing something wrong here? Are there any specific "scopes" that need to be given before generating the token?

TheRealKeto commented 3 years ago

After looking at the source code (primarily entypoint.sh), I've seen that my setup doesn't have the correct section name that this action is looking for. I'm wondering if there's a way to set a specific name for that variable, as it's unclear.

TheRealKeto commented 3 years ago

I've managed to fix this issue myself. The project board I was using didn't have the correct column names, which is why this failed.