Skip to content
calendar

GitHub Action

Move to next iteration

v0.5.0 Latest version

Move to next iteration

calendar

Move to next iteration

Automatically move issues to the next iteration

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Move to next iteration

uses: blombard/move-to-next-iteration@v0.5.0

Learn more about this action in blombard/move-to-next-iteration

Choose a version

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.