From 82c04c629071de33afa422af6f8ec645052c54da Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Thu, 24 Jun 2021 14:43:28 +0700 Subject: [PATCH] feat: initial --- .github/COMMIT_CONVENTION.md | 100 ++++++++++++++++++++++++++++++++++ .github/workflow/build.yml | 23 ++++++++ .github/workflow/coverage.yml | 23 ++++++++ .gitignore | 15 +++++ LICENSE | 21 +++++++ README.md | 27 +++++++++ append.go | 28 ++++++++++ bob.go | 19 +++++++ create.go | 99 +++++++++++++++++++++++++++++++++ create_test.go | 36 ++++++++++++ go.mod | 8 +++ go.sum | 4 ++ has.go | 25 +++++++++ placeholder.go | 7 +++ util/util.go | 19 +++++++ 15 files changed, 454 insertions(+) create mode 100644 .github/COMMIT_CONVENTION.md create mode 100644 .github/workflow/build.yml create mode 100644 .github/workflow/coverage.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 append.go create mode 100644 bob.go create mode 100644 create.go create mode 100644 create_test.go create mode 100644 go.mod create mode 100644 go.sum create mode 100644 has.go create mode 100644 placeholder.go create mode 100644 util/util.go diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md new file mode 100644 index 0000000..dc54917 --- /dev/null +++ b/.github/COMMIT_CONVENTION.md @@ -0,0 +1,100 @@ +> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [angular](https://github.com/angular/angular) preset + +## Angular Convention + +Angular's [commit message guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit). + +### Examples + +Appears under "Features" header, pencil subheader: + +``` +feat(pencil): add 'graphiteWidth' option +``` + +Appears under "Bug Fixes" header, graphite subheader, with a link to issue #28: + +``` +fix(graphite): stop graphite breaking when width < 0.1 + +Closes #28 +``` + +Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: + +``` +perf(pencil): remove graphiteWidth option + +BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason. +``` + +The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. + +``` +revert: feat(pencil): add 'graphiteWidth' option + +This reverts commit 667ecc1654a317a13331b17617d973392f415f02. +``` + +### Commit Message Format + +A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: + +``` +(): + + + +