Create abort-release-candidate public action
dequejenn opened this issue · comments
dequejenn commented
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 livebase
- the name of the main/master branchtoken
- 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
- 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
- Once the issue is found:
- Close the issue as Not Planned (https://cli.github.com/manual/gh_issue_close)
- Move the issue to the
colTeamBoard
column in projectprojTeamBoard
- Move the issue to the
colReleaseBoard
column in projectprojReleaseBoard
- If
docsRepo
is not null, find the open issue in thedocsRepo
for release notes for the current repo/version- Close the issue as Not Planned
- Move the issue to the
colTeamBoard
column in project `projTeamBoard
- Reset the
release
to thebase
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.