Closed ran-huang closed 4 years ago
mmmm not sure it supports moving to another column when the label is removed, perhaps a workflow like this might work:
on:
pull_request:
types: [unlabeled]
...
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW issues and NEW pull requests to project 2
uses: srggrs/assign-one-project-github-action@1.2.0
with:
project: 'https://github.com/srggrs/assign-one-project-github-action/projects/XXXX'
column_name: 'Not Labeled PRs'
see https://help.github.com/en/actions/reference/events-that-trigger-workflows for all the events that trigger the action. And let me know how it goes :D
Thanks! I tried a similar workflow like this, and got the same error: "message": "Project already has the associated issue"
Maybe it's not supported. :D
mmm probably the API commands to move an issues/PRs among the columns of a project is a bit different than the one in this action... probably you need to look at the github actions (developed by GitHub) that automate issues/PRs (e.g. let's say you have a fully automated project kanban by using the project template "Automated kanban with reviews", have a ook at the action that move the PR from "In Progress" a "Review in Progress" and then to "Reviewer approved")
The automation provided by GitHub is useful, but it doesn't recognize labels. This is probably a rare requirement...I mean, moving a pull request between columns based on their labels. I think I can close this issue now. Thanks again for your time and patience:)
Don't need to reopen, but I just tried to do the same thing (automatically move an issue from "To do" to "In progress" based on adding a High priority
label), and encoutered the same error.
Anyway, if you thought you might add this, I'd use it (forgive my not offering to do it myself, I literally started with my first GH action yesterday implementing your awesome tool! I'm still far away from hacking the GH Action code).
Hi, thank you for this great GitHub Action! 😀
I try to use this action to move a PR to another column when a label is deleted. However, it couldn't work and give this error message.
Is this a bug or unsupported feature?