Skip to content

Commit

Permalink
feat(cli): add release command
Browse files Browse the repository at this point in the history
This commit adds a new command to the CLI tool called "release". The release command allows users to create releases for different packages in the project.

BREAKING CHANGE: The release command requires the use of the GitHub CLI tool. Users must have the gh command available in their environment to use the release command.

Co-authored-by: John Doe <[email protected]>
  • Loading branch information
AleksandarFaraj and John Doe committed Aug 16, 2023
1 parent 7f9ecaf commit 7c9d050
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ github-otherpkgs-release:
if [ -z "$(shell gh release list | grep -F pkg/connectors/openaiconnector/$(VERSION))" ]; then \
gh release create pkg/connectors/openaiconnector/$(VERSION) --prerelease --title "Release pkg/connectors/openaiconnector/$(VERSION)" --notes "Golang specific release"; \
fi
if [ -z "$(shell gh release list | grep -F cli/$(VERSION))" ]; then \
gh release create pkg/connectors/openaiconnector/$(VERSION) --prerelease --title "Release pkg/connectors/openaiconnector/$(VERSION)" --notes "Golang specific release"; \
fi


remove-releases:
Expand All @@ -59,11 +62,13 @@ remove-releases:
-git push --delete origin pkg/tzapconnect/$(VERSION)
-git push --delete origin pkg/tzapaction/$(VERSION)
-git push --delete origin pkg/connectors/openaiconnector/$(VERSION)
-git push --delete origin cli/$(VERSION)
-git push --delete origin $(VERSION)

-git tag -d pkg/tzapconnect/$(VERSION)
-git tag -d pkg/tzapaction/$(VERSION)
-git tag -d pkg/connectors/openaiconnector/$(VERSION)
-git tag -d cli/$(VERSION)
-git tag -d $(VERSION)

.PHONY:
8 changes: 4 additions & 4 deletions cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ require (
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
github.com/tzapio/tzap v0.9.3
github.com/tzapio/tzap/pkg/tzapaction v0.9.3
github.com/tzapio/tzap/pkg/tzapconnect v0.9.3
github.com/tzapio/tzap v0.9.4
github.com/tzapio/tzap/pkg/tzapaction v0.9.4
github.com/tzapio/tzap/pkg/tzapconnect v0.9.4
)

require (
Expand All @@ -34,7 +34,7 @@ require (
github.com/sergi/go-diff v1.3.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tzapio/tokenizer v0.0.4 // indirect
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.3 // indirect
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.4 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.11.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/connectors/openaiconnector/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/tzapio/tzap => ../../../
require (
github.com/sashabaranov/go-openai v1.14.1
github.com/tzapio/tokenizer v0.0.4
github.com/tzapio/tzap v0.9.3
github.com/tzapio/tzap v0.9.4
)

require github.com/dlclark/regexp2 v1.10.0 // indirect
8 changes: 4 additions & 4 deletions pkg/tzapaction/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ require (
github.com/labstack/echo/v4 v4.11.1
github.com/sashabaranov/go-openai v1.14.1
github.com/sergi/go-diff v1.3.1
github.com/tzapio/tzap v0.9.3
github.com/tzapio/tzap/cli v0.9.3
github.com/tzapio/tzap/pkg/tzapconnect v0.9.3
github.com/tzapio/tzap v0.9.4
github.com/tzapio/tzap/cli v0.9.4
github.com/tzapio/tzap/pkg/tzapconnect v0.9.4
go.uber.org/mock v0.2.0
google.golang.org/protobuf v1.31.0
)
Expand All @@ -30,7 +30,7 @@ require (
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
github.com/tzapio/tokenizer v0.0.4 // indirect
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.3 // indirect
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.4 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.11.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions pkg/tzapconnect/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ replace github.com/tzapio/tzap => ../../
replace github.com/tzapio/tzap/pkg/connectors/openaiconnector => ../connectors/openaiconnector

require (
github.com/tzapio/tzap v0.9.3
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.3
github.com/tzapio/tzap v0.9.4
github.com/tzapio/tzap/pkg/connectors/openaiconnector v0.9.4
)

require (
Expand Down

0 comments on commit 7c9d050

Please sign in to comment.