Skip to content

RosemanLabs/gha-move-tickets-to-next-iteration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move to next iteration

Automatically move issues and pull requests to the next iteration of your GitHub project with this Github Action.

Example

on:
  schedule:
    # Runs "at 05:00, only on Monday" (see https://crontab.guru)
    - cron: '0 5 * * 1'

jobs:
  move-to-next-iteration:
    name: Move to next iteration
    runs-on: ubuntu-latest

    steps:
    - uses: blombard/move-to-next-iteration@master
      with:
        owner: OrgName
        number: 1
        token: ${{ secrets.PROJECT_PAT }}
        iteration-field: Iteration
        iteration: last
        new-iteration: current
        statuses: 'Todo,In Progress,In Review'

Alternatively, you may specify excluded-statuses. In this case, all items that don’t have these statuses will be moved to the new iteration. (Note that if excluded-statuses is used, statuses will be ignored.)

on:
  schedule:
    # Runs "at 05:00, only on Monday" (see https://crontab.guru)
    - cron: '0 5 * * 1'

jobs:
  move-to-next-iteration:
    name: Move to next iteration
    runs-on: ubuntu-latest

    steps:
    - uses: blombard/move-to-next-iteration@master
      with:
        owner: OrgName
        number: 1
        token: ${{ secrets.PROJECT_PAT }}
        iteration-field: Iteration
        iteration: last
        new-iteration: current
        excluded-statuses: "Done,Won't Fix"

Inputs

owner

The account name of the GitHub organization.

number

Project number as you see it in the URL of the project.

token

Personal access token or an OAuth token. the project scope is required.

iteration-field

The name of your iteration field.

iteration

Should be last or current.

new-iteration

Should be current or next.

statuses

Statuses of the issues to move to the next iteration.

⚠️ This setting is ignored if excluded-statuses is provided. See below. ⚠️

excluded-statuses

Statuses of the issues that should not be moved.

⚠️ This setting takes precedence over statuses. ⚠️

Sources

This action was made possible thanks to https://github.com/gr2m/github-project.

About

Automatically move issues to next iteration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%