Skip to content

Commit 5e384c6

Browse files
authored
Merge pull request #35 from hashicorp/update-docs
document release process and add changelog
2 parents 32ebf0b + 3b41738 commit 5e384c6

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

CHANGELOG.MD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Unreleased
2+
3+
# v1.50.0
4+
5+
## Features
6+
7+
* Adds NullableRelationship generic to assist with encoding explicit null or empty values, by @netramali [#31](https://github.com/hashicorp/go-tfe/pull/31)
8+
9+
## Notes
10+
* Removes a bug fix that was was included in the v1.4.2 release tag (but not formally released with notes)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,4 +659,6 @@ folder--containing `src`.
659659

660660
## Contributing
661661

662-
Fork, Change, Pull Request *with tests*.
662+
If you find an issue with this package, please create an issue in GitHub. We welcome any contributions, simply fork this repository and submit a pull request.
663+
664+
If you are making relevant changes that is worth communicating to our users, please include a note about it in our CHANGELOG.md. You can include it as part of the PR where you are submitting your changes.

RELEASES.MD

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Release Process
2+
3+
jsonapi can be released as often as needed for other releases, such as [go-tfe](https://github.com/hashicorp/go-tfe).
4+
5+
### Preparing a release
6+
7+
First make sure that the CHANGELOG.md is up to date with all the changes included since the last release. You can find out what changes were made since the last release by comparing the main branch with the last release tag. ([Example](https://github.com/hashicorp/jsonapi/compare/v1.4.1...main))
8+
9+
Steps to prepare the changelog for a new release:
10+
11+
1. Replace `# Unreleased` with the version you are releasing.
12+
2. Ensure there is a line with `# Unreleased` at the top of the changelog for future changes. Ideally we don't ask authors to add this line; this will make it clear where they should add their changelog entry.
13+
3. Ensure that each existing changelog entry for the new release has the author(s) attributed and a pull request linked, i.e `- Some new feature/bugfix by @some-github-user (#3)[link-to-pull-request]`
14+
4. Open a pull request with these changes titled `vX.XX.XX Changelog`. Once approved and merged, you can go ahead and create the release.
15+
16+
17+
### Creating a release
18+
19+
1. [Create a new release in GitHub](https://help.github.com/en/github/administering-a-repository/creating-releases) by clicking on "Releases" and then "Draft a new release"
20+
2. Set the `Tag version` to a new tag, using [Semantic Versioning](https://semver.org/) as a guideline.
21+
3. Set the `Target` as `main`.
22+
4. Set the `Release title` to the tag you created, `vX.Y.Z`
23+
5. Use the description section to describe why you're releasing and what changes you've made. You can copy-paste the changelog entries that belong to the new release. You can also use the following headers in the description of your release:
24+
- BREAKING CHANGES: Use this for any changes that aren't backwards compatible. Include details on how to handle these changes.
25+
- FEATURES: Use this for any large new features added,
26+
- ENHANCEMENTS: Use this for smaller new features added
27+
- BUG FIXES: Use this for any bugs that were fixed.
28+
- NOTES: Use this section if you need to include any additional notes on things like upgrading, upcoming deprecations, or any other information you might want to highlight.
29+
30+
Example:
31+
32+
```markdown
33+
FEATURES
34+
* Adds NullableRelationship generic to assist with encoding explicit null or empty values by @some-github-user (#3)[link-to-pull-request]
35+
36+
BUG FIXES
37+
* Fix description of a bug by @some-github-user (#2)[link-to-pull-request]
38+
```
39+
40+
6. Don't attach any binaries. The zip and tar.gz assets are automatically created and attached after you publish your release.
41+
7. Click "Publish release" to save and publish your release.

0 commit comments

Comments
 (0)