Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
calendar

GitHub Action

Move to next iteration

v0.3.0

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/[email protected]

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 01:00, only on Monday" (see https://crontab.guru)
    - cron: '0 1 * * 1'

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

    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - 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

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.

Sources

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