Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 3b58159

Browse files
Freyskeydhadjiszs
andauthored
release: v0.1.0 (#479)
Co-authored-by: Monir Hadji <[email protected]>
1 parent b8cd730 commit 3b58159

File tree

9 files changed

+238
-9
lines changed

9 files changed

+238
-9
lines changed

.github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44
push:
55
branches:
66
- main
7+
- "!release/**"
78
paths: crates/**
89
pull_request:
910
types: [opened, synchronize, reopened, ready_for_review]
1011
paths: crates/**
11-
branches-ignore:
12-
- "release/**"
1312
workflow_dispatch:
1413

1514
jobs:
1615
codecov:
1716
name: Code coverage
1817
runs-on: ubuntu-latest-16-core
18+
if: ${{ ! startsWith(github.head_ref, 'release') }}
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/docker_build_push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
workflow_file_name: topos:integration-tests.yml
3838
ref: main
3939
wait_interval: 60
40-
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "main" }'
40+
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}" }'
4141

4242
frontend-erc20-e2e:
4343
runs-on: ubuntu-latest
@@ -59,4 +59,4 @@ jobs:
5959
workflow_file_name: frontend:erc20-messaging.yml
6060
ref: main
6161
wait_interval: 60
62-
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "main" }'
62+
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}" }'

.github/workflows/sequencer_topos_core_contract_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
workflow_file_name: topos:sequencer-contracts.yml
2020
ref: main
2121
wait_interval: 60
22-
client_payload: '{ "topos-ref": "${{ github.head_ref }}", "topos-smart-contracts-ref": "main" }'
22+
client_payload: '{ "topos-ref": "${{ github.head_ref }}" }'

CHANGELOG.md

+118
Large diffs are not rendered by default.

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ members = [
55
"crates/*"
66
]
77

8+
[workspace.package]
9+
version = "0.1.0"
10+
811
[workspace.lints.rust]
912
# Deny
1013
missing_docs = "allow"

cliff.toml

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# git-cliff ~ configuration file
2+
# https://git-cliff.org/docs/configuration
3+
#
4+
# Lines starting with "#" are comments.
5+
# Configuration options are organized into tables and keys.
6+
# See documentation for more information on available options.
7+
8+
[changelog]
9+
# changelog header
10+
header = """
11+
![topos](./.github/assets/topos_logo_dark.png)
12+
"""
13+
# template for the changelog body
14+
# https://keats.github.io/tera/docs/#introduction
15+
body = """
16+
{%- macro remote_url() -%}
17+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
18+
{%- endmacro -%}
19+
20+
{% macro print_commit(commit) -%}
21+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
22+
{% if commit.breaking %}[**breaking**] {% endif %}\
23+
{{ commit.message | upper_first }} - \
24+
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
25+
{% endmacro -%}
26+
27+
{% if version %}\
28+
{% if previous.version %}\
29+
## [{{ version | trim_start_matches(pat="v") }}]\
30+
({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
31+
{% else %}\
32+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
33+
{% endif %}\
34+
{% else %}\
35+
## [unreleased]
36+
{% endif %}\
37+
38+
{% for group, commits in commits | group_by(attribute="group") %}
39+
### {{ group | striptags | trim | upper_first }}
40+
{% for commit in commits
41+
| filter(attribute="scope")
42+
| sort(attribute="scope") %}
43+
{{ self::print_commit(commit=commit) }}
44+
{%- endfor -%}
45+
{% raw %}\n{% endraw %}\
46+
{%- for commit in commits %}
47+
{%- if not commit.scope -%}
48+
{{ self::print_commit(commit=commit) }}
49+
{% endif -%}
50+
{% endfor -%}
51+
{% endfor %}\n
52+
"""
53+
# template for the changelog footer
54+
footer = """
55+
"""
56+
# remove the leading and trailing whitespace from the templates
57+
trim = true
58+
# postprocessors
59+
postprocessors = [
60+
{ pattern = '<REPO>', replace = "https://github.com/topos-protocol/topos" }, # replace repository URL
61+
]
62+
63+
[git]
64+
# parse the commits based on https://www.conventionalcommits.org
65+
conventional_commits = true
66+
# filter out the commits that are not conventional
67+
filter_unconventional = true
68+
# process each line of a commit as an individual commit
69+
split_commits = false
70+
# regex for preprocessing the commit messages
71+
commit_preprocessors = [
72+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
73+
# Check spelling of the commit with https://github.com/crate-ci/typos
74+
# If the spelling is incorrect, it will be automatically fixed.
75+
{ pattern = '.*', replace_command = 'typos --write-changes -' },
76+
]
77+
# regex for parsing and grouping commits
78+
commit_parsers = [
79+
{ message = "^feat", group = "<!-- 0 -->⛰️ Features" },
80+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
81+
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
82+
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
83+
{ message = "^refactor\\(clippy\\)", skip = true },
84+
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
85+
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
86+
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
87+
{ message = "^chore\\(release\\): prepare for", skip = true },
88+
{ message = "^chore\\(deps.*\\)", skip = true },
89+
{ message = "^chore\\(pr\\)", skip = true },
90+
{ message = "^chore\\(pull\\)", skip = true },
91+
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
92+
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
93+
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
94+
]
95+
# protect breaking changes from being skipped due to matching a skipping commit_parser
96+
protect_breaking_commits = false
97+
# filter out the commits that are not matched by commit parsers
98+
filter_commits = false
99+
# regex for matching git tags
100+
tag_pattern = "v[0-9].*"
101+
# regex for skipping tags
102+
skip_tags = "beta|alpha"
103+
# regex for ignoring tags
104+
ignore_tags = "rc|v2.1.0|v2.1.1"
105+
# sort the tags topologically
106+
topo_order = false
107+
# sort the commits inside sections by oldest/newest order
108+
sort_commits = "newest"

crates/topos-sequencer-subnet-client/src/subnet_contract.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use tracing::info;
1212

1313
abigen!(
1414
IToposCore,
15-
"npm:@topos-protocol/[email protected]-rc.1/artifacts/contracts/interfaces/\
16-
IToposCore.sol/IToposCore.json"
15+
"npm:@topos-protocol/[email protected]/artifacts/contracts/interfaces/IToposCore.\
16+
sol/IToposCore.json"
1717
);
1818

1919
pub(crate) fn create_topos_core_contract_from_json<T: Middleware>(

crates/topos/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "topos"
3-
version = "0.0.11"
3+
version = "0.1.0"
44
edition = "2021"
55

66
[lints]

0 commit comments

Comments
 (0)