Automatically archive issues for a given iteration of your GitHub project with this Github Action.
on:
schedule:
# Runs "at 05:00, only on Monday" (see https://crontab.guru)
- cron: "0 5 * * 1"
jobs:
archive-done-tickets:
name: Archive done tickets
runs-on: ubuntu-latest
steps:
- uses: TimVanMourik/[email protected]
with:
owner: OrgName
number: 1
token: ${{ secrets.PROJECT_PAT }}
iteration-field: Iteration
iteration: last
statuses: "Done"
The account name of the GitHub organization.
Project number as you see it in the URL of the project.
Personal access token or an OAuth token. the project
scope is required.
The name of your iteration field.
Should be last
or current
.
Statuses of the issues to archive
This action was made possible thanks to https://github.com/gr2m/github-project. This was an adaption from https://github.com/blombard/move-to-next-iteration.