See for more information:
- GitHub GraphQL API v4.
- GitHub GraphQL API v3.
- Client @octokit/graphql.
- Client @octokit/rest.
- CLI yargs.
- Copy
config.example.json
and name itconfig.json
. - Fill in your GitHub developer token.
- The configuration has a
repositories
entry for ease of use, you can provide an index (defaults to 0) instead ofowner
andname
. - The
project
andpoints
are for use with thecreateIssue
binary.
Interact with GitHub through the CLI: ./bin/cli.js --help
.
Pretty limited as the goal was createIssue
.
Usage: ./bin/createIssue.js <type of release> <version>
.
- The type of release can be one of:
release
,rc
andrc+
. - The version is used in the title and milestone.
This command loops through all the repository entries in your configuration and prompts whether or not to create an issue for it.
- The title is:
Release <version>
for therelease
orCreate <version>
forrc
orrc+
. - The labels are set to
in sprint
and what the config'spoints
entry is set to. - The milestone is set to the
version
forrelease
and a split version (it splits on-
) forrc
orrc+
. When the version is12.3-RC4
the milestone will be12.3
. - The project is set to the config's repository entry
project
. This entry is optional.