github-project-automation-plus icon indicating copy to clipboard operation
github-project-automation-plus copied to clipboard

Move the issue from specific column only

Open altafard opened this issue 4 years ago • 4 comments

Hi, @alex-page! What do you think about it? In my case I have a column 'To pull' with unassigned issues. And I want to move issue to column 'In progress' on assigning. After closing issue in column 'In progress' it must appear in 'Done'. But sometimes people assign themselves on closed issues and this issues turn back to the column 'In progress'.

Is it good idea to add new argument 'from column' and move issue only if it is in this column right now?

altafard avatar May 22 '20 18:05 altafard

Hey @Altafard this is a great idea. Would you be interested in making a pull request? Happy to give more direction.

alex-page avatar Jul 15 '20 12:07 alex-page

I too would benefit from this feature. In my case when a PR is created it's added to a column called "New". Things in "New" should stay there until I've had a chance to look at them. We effectively triage new PRs, add labels, ensure the correct people are assigned, etc, then we move them to another column manually. My use of this Action is so if a PR is updated it's moved to the column "Updated" automatically. Unfortunately, if someone creates a PR, then immediately updates it (fairly common), it's moved from "New" to "Updated". I want to stop this.

Something like this would be great for me:

jobs:
    move-to-updated:
        name: "Move to Updated"
        runs-on: ubuntu-latest
        steps:
            - uses: alex-page/[email protected]
              with:
                project: "PR Status Board"
                column: "Updated"
                exclude-in-columns: ["New"]
                repo-token: ${{ secrets.GITHUB_TOKEN }}

In the meantime is there a workaround? I'm trying to find the right if to stop the job being run if the PR is in the column "New" but it alludes me.

BobbyRBruce avatar Aug 23 '23 01:08 BobbyRBruce

I too would benefit from this feature. In my case when a PR is created it's added to a column called "New". Things in "New" should stay there until I've had a chance to look at them. We effectively triage new PRs, add labels, ensure the correct people are assigned, etc, then we move them to another column manually. My use of this Action is so if a PR is updated it's moved to the column "Updated" automatically. Unfortunately, if someone creates a PR, then immediately updates it (fairly common), it's moved from "New" to "Updated". I want to stop this.

Something like this would be great for me:

jobs:
    move-to-updated:
        name: "Move to Updated"
        runs-on: ubuntu-latest
        steps:
            - uses: alex-page/[email protected]
              with:
                project: "PR Status Board"
                column: "Updated"
                exclude-in-columns: ["New"]
                repo-token: ${{ secrets.GITHUB_TOKEN }}

In the meantime is there a workaround? I'm trying to find the right if to stop the job being run if the PR is in the column "New" but it alludes me.

I realize my exact issue a little bit the flip of this thread, as in i want to move from anything but specific columns, but I think it has similar, overlapping ideas at play.

BobbyRBruce avatar Aug 23 '23 01:08 BobbyRBruce

I've been wanting to better understand how Actions work, so took the opportunity to act on my suggestion and create a PR (#88) to address the issue outlined here.

BobbyRBruce avatar Aug 23 '23 05:08 BobbyRBruce