Skip to content

Commit

Permalink
Update documents and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sunboyy committed Oct 31, 2023
1 parent 3c0b0e4 commit 97619d4
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -70,3 +70,13 @@ func doSomething(a, b, c) (d,
```
If the function definition spans multiple lines, the function body should start with an empty line to help distinguishing two elements.
## Releasing Steps
1. Make sure the dependencies are up to date
2. Make sure the examples are generated by the latest version
3. Make sure the README.md file reflects the current release
4. Remove `-next` from version variable in `main.go`
5. Create a git tag `vX.X.X` and push to GitHub
6. Run `goreleaser release` with GitHub token provided as an environment variable `GITHUB_TOKEN`
7. Bump version with `-next` suffix in version variable in `main.go`
41 changes: 31 additions & 10 deletions examples/complex-query/user_comparator_repo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/getting-started/user_repo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -22,7 +22,7 @@ const usageText = `repogen generates MongoDB repository implementation from repo
Supported options:`

// version indicates the version of repogen.
const version = "v0.3"
const version = "v0.4-next"

func main() {
flag.Usage = printUsage
Expand Down

0 comments on commit 97619d4

Please sign in to comment.