Kong / gateway-changelog

Apache License 2.0
0 stars 1 forks source link

refactor: refactor changelog tool #11

Closed vm-001 closed 2 months ago

vm-001 commented 8 months ago

Summary:

General:

1/ Add genreate.go under cmd folder for changelog generate command. 2/ Use github-go instead of using raw http call.

The changelog command:

1/ Add a new global flag --debug to output the verbose log.

The changelog generate command:

1/ Fall back to local git command to retrieve commits. 2/ New flags. The flags of generate now are:

OPTIONS:
   --repo-path value                                    The repository path (/path/to/your/repository)
   --changelog-path value                               The changelog folder relative path (changelog/unreleased/kong)
   --title value                                        The title name (Kong)
   --changelog-paths value [ --changelog-paths value ]  The changelog folder relative paths (changelog/unreleased/kong)
   --github-issue-repo value                            The repo name that is used to compose the GitHub issue link. (OWNER/REPO)
   --github-api-repo value                              The repo name that is used to compose the GitHub URL to retrieve data. (OWNER/REPO)
   --with-jiras                                         Display Jira links (default: false)
   --help, -h                                           show help