dequelabs / axe-api-team-public

Shared configuration, settings, and actions for the Axe API Team

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create abort-release-candidate public action

dequejenn opened this issue · comments

Overview

Repo: https://github.com/dequelabs/axe-api-team-public
GHA Name: abort-release-candidate
Purpose: To reset everything when a release candidate in progress needs to be abandoned for a new one to be created
Usage: This GHA will be called from each repo with a manual trigger

Inputs:
From repo:

  • docsRepo - The name of the repo where the release notes live
  • base - the name of the main/master branch
  • token - A GitHub token used for octokit and GH CLI with the required permissions

Hardcoded in action:

  • projTeamBoard - the number of the API Team Board (66)
  • colTeamBoard - the column on the API Team Board the issue should be moved to (Not Doing)
  • projReleaseBoard- the number of the API Team Releases Board (103)
  • colReleaseBoard - the column on the API Team Releases Board the issue should be moved to (Release Cancelled)

Outputs:

  • None

Details

This action should

  1. Find the open release issues using this GHA
    • Find the open release issue in the current repo
    • Find the open doc release (if provided as input) in the doc repo
  2. Once the issue is found:
  3. If docsRepo is not null, find the open issue in the docsRepo for release notes for the current repo/version
    • Close the issue as Not Planned
    • Move the issue to the colTeamBoard column in project `projTeamBoard
  4. Reset the release to the base branch

Each of the public actions in https://github.com/dequelabs/axe-api-team-public should include a readme with information on how to use the action and a list all inputs and outputs.