Create public action get-release-issue
dequejenn opened this issue · comments
Overview
Repo: https://github.com/dequelabs/axe-api-team-public
GHA Name: get-release-issue
Purpose: To get a reference to the latest open issue in the repo with the label release
Usage: This GHA will be called from within a parent GHA
Inputs:
- None
Outputs:
- Reference to the open
release
Github issue
Details
This GHA should look for an issue in the repo that is labelled release
and is currently open. If there are more than 1 returned, it should return the latest. The output will be used in a different GHA to add a comment onto this issue, so the output should be whatever GHA can use to add a comment (ID?, URL?)
The action should also have unit tests and a Readme. See https://github.com/JasonEtco/create-an-issue for template on how to do this.
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.
Scope change per Steve (11/21) related to #63 and #64
- We don't need to get the version number. At any point we would call this we can just look at the version of package.json in the current repo
- For the docs repo there can be multiple open issues labeled release, either for different repos or even the same repo if multiple versions were released in quick succession and the docs for the prior one haven't been written yet. We'll need to filter all the open release issues by the name of the github repo and also by the current version. Allow supplying version number to input but default to current version from package.json
- We'll need to allow the action to get issues from other repos (namely the docs repo). Add input for repo (default to current context repo)
- Rename action to get-release-issue