Skip to content

Commit

Permalink
chore: Sunset towncrier release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenev committed Oct 11, 2023
1 parent c443ee8 commit 145abea
Show file tree
Hide file tree
Showing 207 changed files with 17 additions and 628 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ jobs:
steps:
- checkout
- install-depends
- run:
name: Validate release notes entry
command: ./newsfragments/validate_files.py
- run:
name: Run rustfmt
command: cargo fmt --all -- --check
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
### To-Do

[//]: # (Stay ahead of things, add list items here!)
- [ ] Clean up commit history
- [ ] Clean up commit history and use conventional commits
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ lint-unstable:
cargo fmt --all -- --check
RUSTFLAGS="-W unused_crate_dependencies" cargo build

notes:
towncrier --yes --version $(version)
git commit -m "Compile release notes"

release:
# First run `make notes version=<version>` before this
./newsfragments/validate_files.py is-empty
cargo release $(version) --all --execute

create-docker-image:
docker build -t ethpm/trin:latest -t ethpm/trin:$(version) -f ./Dockerfile .

Expand Down
20 changes: 13 additions & 7 deletions book/src/developers/contributing/git/commits.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@ written. Once things are complete, you can `git reset master` to unstage all
of the changes you've made, and then re-commit them in small chunks using `git
add -p`.

## Commit Messages
### Commit Messages

We don't care much about commit messages other than that they be sufficiently
descriptive of what is being done in the commit.
We use conventional commits for our commit messages. This means that your
commit messages should be of the form:

The *correct* phrasing of a commit message.
```text
<type>[optional scope]: <description>
```

- `fix bug #1234` (correct)
- `fixes bug #1234` (wrong)
- `fixing bug #1234` (wrong)
To learn more about conventional commits please check out the [conventional commits website](https://www.conventionalcommits.org/en/v1.0.0/).

Examples:

- `fix: Update metrics strategy to support multiple subnetworks`
- `refactor(light-client): Refactor light-client crate to use `ethportal-api` consensus types`
- `feat(rpc): Return header to eth_getBlockByHash`

One way to test whether you have it right is to complete the following sentence.

Expand Down
4 changes: 3 additions & 1 deletion book/src/developers/contributing/git/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Release notes

Every pull request should include a Newsfragment markdown file to describe the contents of the pull request. These files are automatically formatted & collected upon each new release. The format for creating a Newsfragment file can be found in the [README](../newsfragments/README.md).
We use conventional commits to generate release notes.

Check the [commits guide](commits.md) for more information on how to write commit messages.
2 changes: 0 additions & 2 deletions book/src/developers/quick_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ This is a single page that aims to cover everything required to get Trin running

**Trin is currently in unstable alpha, and should not be used in production. If you run into any bugs while using Trin, please file an Issue!**

**Check out the `./newsfragments` directory to see the latest changes.**

## Building on Debian Based Systems

### Prerequisites
Expand Down
258 changes: 0 additions & 258 deletions docs/contributing.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/release_notes.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/228.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/241.added.md

This file was deleted.

3 changes: 0 additions & 3 deletions newsfragments/248.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/248.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/250.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/252.doc.md

This file was deleted.

2 changes: 0 additions & 2 deletions newsfragments/256.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/258.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/261.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/265.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/266.removed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/269.doc.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/270.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/271.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/275.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/276.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/278.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/282.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/283.added.md

This file was deleted.

3 changes: 0 additions & 3 deletions newsfragments/286.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/288.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/292.added.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/293.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/294.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/295.fixed.md

This file was deleted.

Loading

0 comments on commit 145abea

Please sign in to comment.