-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from telostat/vst/initial-chores
Initial Chores
- Loading branch information
Showing
9 changed files
with
238 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
^.chglog | ||
^.vscode | ||
^LICENSE\.md$ | ||
^nix | ||
^release.sh | ||
^shell.nix$ | ||
^tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{{ if .Versions -}} | ||
<a name="unreleased"></a> | ||
## [Unreleased] | ||
|
||
{{ if .Unreleased.CommitGroups -}} | ||
{{ range .Unreleased.CommitGroups -}} | ||
### {{ .Title }} | ||
{{ range .Commits -}} | ||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{ range .Versions }} | ||
<a name="{{ .Tag.Name }}"></a> | ||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} | ||
{{ range .CommitGroups -}} | ||
### {{ .Title }} | ||
{{ range .Commits -}} | ||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .RevertCommits -}} | ||
### Reverts | ||
{{ range .RevertCommits -}} | ||
- {{ .Revert.Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .MergeCommits -}} | ||
### Pull Requests | ||
{{ range .MergeCommits -}} | ||
- {{ .Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .NoteGroups -}} | ||
{{ range .NoteGroups -}} | ||
### {{ .Title }} | ||
{{ range .Notes }} | ||
{{ .Body }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{- if .Versions }} | ||
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD | ||
{{ range .Versions -}} | ||
{{ if .Tag.Previous -}} | ||
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/telostat/rocketbase | ||
options: | ||
commits: | ||
# filters: | ||
# Type: | ||
# - feat | ||
# - fix | ||
# - perf | ||
# - refactor | ||
commit_groups: | ||
# title_maps: | ||
# feat: Features | ||
# fix: Bug Fixes | ||
# perf: Performance Improvements | ||
# refactor: Code Refactoring | ||
header: | ||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" | ||
pattern_maps: | ||
- Type | ||
- Scope | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<a name="unreleased"></a> | ||
## [Unreleased] | ||
|
||
|
||
<a name="0.0.0.9000"></a> | ||
## 0.0.0.9000 - 2022-12-02 | ||
### Chore | ||
- **dev:** add Language Server Protocol implementation for R | ||
|
||
### Feat | ||
- init codebase with bare API client implementation | ||
|
||
### Refactor | ||
- **style:** format the code using lsp document format provider | ||
|
||
|
||
[Unreleased]: https://github.com/telostat/rocketbase/compare/0.0.0.9000...HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#!/usr/bin/env bash | ||
|
||
## Stop on errors: | ||
set -eo pipefail | ||
|
||
## Helper function to print log messages. | ||
_log() { | ||
echo "[RELEASE LOG]" "${@}" | ||
} | ||
|
||
## Helper function to print errors. | ||
_error() { | ||
echo 1>&2 "[RELEASE ERROR]" "${@}" | ||
} | ||
|
||
## Helper function to print usage. | ||
_usage() { | ||
echo "Usage: $0 [-h] -n <VERSION>" | ||
} | ||
|
||
## Declare variables: | ||
_version="" | ||
|
||
## Parse command line arguments: | ||
while getopts "n:h" o; do | ||
case "${o}" in | ||
n) | ||
_version="${OPTARG}" | ||
;; | ||
h) | ||
_usage | ||
exit 0 | ||
;; | ||
*) | ||
_usage 1>&2 | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND - 1)) | ||
|
||
_log "Checking variables..." | ||
if [ -z "${_version}" ]; then | ||
_usage 1>&2 | ||
exit 1 | ||
else | ||
_log "Version is \"${_version}\". Proceeding..." | ||
fi | ||
|
||
_log "Checking git repository state..." | ||
if [[ -z "$(git status --porcelain)" ]]; then | ||
_log "Git repository is clean. Proceeding..." | ||
else | ||
_error "Git repository is not clean. Aborting..." | ||
exit 1 | ||
fi | ||
|
||
_log "Updating application version..." | ||
sed -i -E "s/^Version:([ ]+).*/Version:\\1${_version}/g" DESCRIPTION | ||
|
||
_log "Generating changelog..." | ||
git-chglog --output NEWS.md --next-tag "${_version}" | ||
|
||
_log "Staging changes..." | ||
git add NEWS.md DESCRIPTION | ||
|
||
_log "Committing changes..." | ||
git commit -m "chore(release): ${_version}" | ||
|
||
_log "Tagging version..." | ||
git tag -a -m "Release ${_version}" "${_version}" | ||
|
||
_log "Pushing changes to remote..." | ||
git push --follow-tags origin main | ||
|
||
_log "Creating the release..." | ||
gh release create "${_version}" --title "${_version}" --generate-notes | ||
|
||
_log "Updating application version for development..." | ||
sed -i -E "s/^Version:([ ]+).*/Version:\\1${_version}.9000/g" DESCRIPTION | ||
|
||
_log "Staging changes..." | ||
git add DESCRIPTION | ||
|
||
_log "Committing changes..." | ||
git commit -m "chore: bump development version to ${_version}.9000" | ||
|
||
_log "Pushing changes to remote..." | ||
git push | ||
|
||
_log "Finished!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters