Skip to content

Commit

Permalink
chore(version): v0.1.2 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao authored Nov 21, 2023
1 parent 55fd0ad commit 49b6fa8
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/cocogitto-changelog-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{# Using a literal newline to set the newline variable -#}
{% set newline = "
" -%}

{% set commit_base_url = repository_url ~ "/commit/" -%}
{% set compare_base_url = repository_url ~ "/compare/" -%}
{% set pr_base_url = repository_url ~ "/pull/" -%}

{% if version.tag -%}
## {{ version.tag | trim_start_matches(pat="v") }} ({{ date | date(format="%Y-%m-%d") }})
{% else -%}
{% set from = from.id -%}
{% set to = version.id -%}

{% set from_shorthand = from.id | truncate(length=7, end="") -%}
{% set to_shorthand = version.id | truncate(length=7, end="") -%}

## Unreleased ([`{{ from_shorthand ~ ".." ~ to_shorthand }}`]({{ compare_base_url ~ from_shorthand ~ ".." ~ to_shorthand }}))
{% endif -%}

{% for type, typed_commits in commits | sort(attribute="type") | group_by(attribute="type") %}
{# The `striptags` removes the HTML comments added while grouping -#}
### {{ type | striptags | trim | upper_first }}
{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") %}
- {{ "**" ~ scope ~ ":" ~ "**" -}}
{% for commit in scoped_commits | sort(attribute="date") -%}
{% set shorthand = commit.id | truncate(length=7, end="") -%}
{% set commit_link = commit_base_url ~ commit.id -%}
{# Replace PR numbers in commit message with PR link -#}
{% set pr_number = commit.summary | split(pat="(#") | last | trim_end_matches(pat=")") -%}
{% set pr_link = "[#" ~ pr_number ~ "](" ~ pr_base_url ~ pr_number ~ ")" -%}
{% if scoped_commits | length != 1 %}{{ newline ~ " - " }}{% else %}{{ " " }}{% endif -%}
{{ commit.summary | upper_first | trim | replace(from="#" ~ pr_number, to=pr_link) }} ([`{{ shorthand }}`]({{ commit_link }}))
{%- endfor -%}
{% endfor -%}

{% for commit in typed_commits | unscoped | sort(attribute="date") -%}
{% set shorthand = commit.id | truncate(length=7, end="") -%}
{% set commit_link = commit_base_url ~ commit.id -%}
{# Replace PR numbers in commit message with PR link -#}
{% set pr_number = commit.summary | split(pat="(#") | last | trim_end_matches(pat=")") -%}
{% set pr_link = "[#" ~ pr_number ~ "](" ~ pr_base_url ~ pr_number ~ ")" -%}
{{ newline ~ "- "}}{{ commit.summary | upper_first | trim | replace(from="#" ~ pr_number, to=pr_link) }} ([`{{ shorthand }}`]({{ commit_link }}))
{%- endfor %}
{% endfor %}
{% if version.tag and from.tag -%}
**Full Changelog:** [`{{ from.tag ~ "..." ~ version.tag }}`]({{ compare_base_url ~ from.tag ~ "..." ~ version.tag }})
{%- elif version.tag and from.id -%}
**Full Changelog:** [`{{ from.id ~ "..." ~ version.tag }}`]({{ compare_base_url ~ from.id ~ "..." ~ version.tag }})
{%- else -%}
{% set from = from.id -%}
{% set to = version.id -%}
{% set from_shorthand = from.id | truncate(length=7, end="") -%}
{% set to_shorthand = version.id | truncate(length=7, end="") -%}
**Full Changelog:** [`{{ from_shorthand ~ "..." ~ to_shorthand }}`]({{ compare_base_url ~ from_shorthand ~ "..." ~ to_shorthand }})
{%- endif %}
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Changelog

All notable changes to hyperswitch-card-vault will be documented here.

- - -

## 0.1.2 (2023-11-21)

### Features

- **card+config:** Add cards API and config pulling feature ([`1c9569c`](https://github.com/juspay/hyperswitch-card-vault/commit/1c9569ce163ac862a42d63f14df4e3dce978baaa))
- **cargo:** Add limiting and release build improvements ([`22bdcdd`](https://github.com/juspay/hyperswitch-card-vault/commit/22bdcdd57d2cfaa8d3a39aa72b6147735e48b1b0))
- **db:** Add variable pool size ([#45](https://github.com/juspay/hyperswitch-card-vault/pull/45)) ([`0f6ee81`](https://github.com/juspay/hyperswitch-card-vault/commit/0f6ee8147a4dc3d2566cfce7e2af3778cd5ac7a7))
- **docker:**
- Add Dockerfile ([`107f53b`](https://github.com/juspay/hyperswitch-card-vault/commit/107f53b31b3bb27029eefbaa924cee0f8159599b))
- Add docker file and test it ([`031d813`](https://github.com/juspay/hyperswitch-card-vault/commit/031d81359185936b7149fcfe04465018fa22cf61))
- **hash:** Add support for detecting data duplication ([`6a23a7d`](https://github.com/juspay/hyperswitch-card-vault/commit/6a23a7d48f78daed8e4abc26217984c1de72bbd0))
- **key_custodian:** Encrypt master key with 2 custodian keys ([`064dcca`](https://github.com/juspay/hyperswitch-card-vault/commit/064dccaf99451a5fb88f3596090362cef84a9350))
- **kms:**
- Integrate kms feature ([`ead558d`](https://github.com/juspay/hyperswitch-card-vault/commit/ead558db2268d00c33c731252c0bc0002d7a8b0e))
- Integrate kms feature ([`00bf1ae`](https://github.com/juspay/hyperswitch-card-vault/commit/00bf1ae4af0b0c35fc2d49428e23ae79d508f13d))
- **loadtest:** Add support for loadtesting ([`fcb0428`](https://github.com/juspay/hyperswitch-card-vault/commit/fcb042839070b40740ddd555ca1e59585526cea4))
- **logging:** Add logging framework ([`427db97`](https://github.com/juspay/hyperswitch-card-vault/commit/427db97b597aa1e7f25322bda4dbb17872ef3dc1))
- **ratelimit:** Add rate limit to delete api ([`845296e`](https://github.com/juspay/hyperswitch-card-vault/commit/845296e0ad3fa23c5d05cdba79d18a416a37e38d))
- **trace:** Add tracing middleware for tracing requests ([`2b00866`](https://github.com/juspay/hyperswitch-card-vault/commit/2b00866b42d9c9a7ab0112b07346f3b0b2f42fad))
- **utils:** Add utils binary for key generation ([`c3edc13`](https://github.com/juspay/hyperswitch-card-vault/commit/c3edc136b8c41c1cbc1f6f0111904ece810c54bc))

### Bug Fixes

- **error:** Rewrite the error framework with custom change contexts ([`af78b58`](https://github.com/juspay/hyperswitch-card-vault/commit/af78b588ad627094d9db24a9e00f43ba5451bc5e))
- **loadtest:** Add jwe to loadtest ([`afcfd8c`](https://github.com/juspay/hyperswitch-card-vault/commit/afcfd8c56d4f39eabd60f5a31230d500cfe90434))
- **validation:** Add key validation and card number validation ([`250ebfa`](https://github.com/juspay/hyperswitch-card-vault/commit/250ebfae1970a1cfa9b776682b5636fb58e89fc9))
- Fix clippy errors in main ([`93d9eb4`](https://github.com/juspay/hyperswitch-card-vault/commit/93d9eb4da975305e5d0f29d243192a2cf115768c))
- Clippy lints ([`083e2f2`](https://github.com/juspay/hyperswitch-card-vault/commit/083e2f2ed22ea683476a5a70d301e1c30c9141ca))

### Refactors

- **kms:** Enable kms feature for configs ([`18fb1fa`](https://github.com/juspay/hyperswitch-card-vault/commit/18fb1fa38ac37b61b2651e7b2a41c1e1c955a84f))
- Address requested changes ([`39b53c6`](https://github.com/juspay/hyperswitch-card-vault/commit/39b53c6d8fcf7062c86e35fddaf094bd23372186))
- Add logs to existing routes ([`6525abe`](https://github.com/juspay/hyperswitch-card-vault/commit/6525abe6814cddbdf6d7c9f7b0d667b4424d1e30))
- Address requested changes ([`3ae7a9c`](https://github.com/juspay/hyperswitch-card-vault/commit/3ae7a9c87650cd11812d57711bc825dc02ec438b))
- Hex decode master_key ([`b85d656`](https://github.com/juspay/hyperswitch-card-vault/commit/b85d65613a3a669aa1a803d588151747de5d83d7))

### Testing

- **crypto:** Add tests for jwe ([`8744683`](https://github.com/juspay/hyperswitch-card-vault/commit/874468364870867542962d09f8518b62c0b72415))

### Documentation

- **openapi:** Add openapi spec to docs ([`9b58830`](https://github.com/juspay/hyperswitch-card-vault/commit/9b58830de33d1a039b549ca9148de4d361a792f0))
- **setup:** Add setup guide for locker ([`6f30ce6`](https://github.com/juspay/hyperswitch-card-vault/commit/6f30ce6f7e9b660d68948d34bd2a2fa70241ee0d))
- Create LICENSE ([#44](https://github.com/juspay/hyperswitch-card-vault/pull/44)) ([`e7f7db4`](https://github.com/juspay/hyperswitch-card-vault/commit/e7f7db47d411a7dd6797bdd0fefe87ac7c48250e))

### Miscellaneous Tasks

- Minor fixes ([`d23284b`](https://github.com/juspay/hyperswitch-card-vault/commit/d23284b98a5628bd5ade8e471b6982cfe2687bfc))
- Fmt check ([`40ce145`](https://github.com/juspay/hyperswitch-card-vault/commit/40ce1453a8fdcb2a21028465d0bf2a0491acc9e4))
- Minor fixes ([`6755d82`](https://github.com/juspay/hyperswitch-card-vault/commit/6755d829ac0edabd0f0407688c58d898adce51ad))
- Remove unnecessary clones from routes ([`b4bdb10`](https://github.com/juspay/hyperswitch-card-vault/commit/b4bdb102fad4a5eeabda60fc484ffe52bee8875d))
- Fix clippy + fmt errors ([`94c93c3`](https://github.com/juspay/hyperswitch-card-vault/commit/94c93c32cd709c78fc3c19b7368ad5e962c77a23))
- Fix dockerfile ([`3794d99`](https://github.com/juspay/hyperswitch-card-vault/commit/3794d99945134ab4f232775d69563c75dd7e822a))
- Fix error message and and custom status code mapping ([`e29650f`](https://github.com/juspay/hyperswitch-card-vault/commit/e29650ffa0fd81e032a353c26dc4e7aec0806488))
- Fix minor bugs after adding stricter linting ([`f8d7ac0`](https://github.com/juspay/hyperswitch-card-vault/commit/f8d7ac0b636819d0883fad3f6aac51108339e720))
- Address comments and fix cargo hack ([`88ca5ee`](https://github.com/juspay/hyperswitch-card-vault/commit/88ca5eecd8fed18f17aec74f632e9ca52b783999))
- Format yaml files ([`678ae44`](https://github.com/juspay/hyperswitch-card-vault/commit/678ae441a7cbea34ac2806dd78d634a81f3027a1))
- Remove commented code ([`f16c841`](https://github.com/juspay/hyperswitch-card-vault/commit/f16c841121d54580de33dd575c55b98c57d6aece))
- Remove redundant keys ([`5898755`](https://github.com/juspay/hyperswitch-card-vault/commit/58987557cf63277fe55ef4c0d63f4052218422e3))
- Remove cargo.toml changes ([`f548350`](https://github.com/juspay/hyperswitch-card-vault/commit/f5483501466f75617a9976e214f5ab1ffca3df30))
- Add formatting for markdown ([`c67b4c1`](https://github.com/juspay/hyperswitch-card-vault/commit/c67b4c17bebff0b51ba3dc263960e643a755e86e))
- Remove commented code and println ([`d2b5873`](https://github.com/juspay/hyperswitch-card-vault/commit/d2b5873968c3a0090043ecd814e3d368f22e9e95))
- Update README.md ([`65cc26d`](https://github.com/juspay/hyperswitch-card-vault/commit/65cc26d0ecda25a2be44fd6bd246493a5e9ea7fd))
- Add semi-colon in migrations to make it work ([`5c10107`](https://github.com/juspay/hyperswitch-card-vault/commit/5c101079f9749d5a7510fdd0b7ff5000b3079245))
- Remove default changes ([`34c376c`](https://github.com/juspay/hyperswitch-card-vault/commit/34c376cb8777d26f051f631262177ca0f6a6bb2c))
- Add env variables in setup.md ([`ef998a2`](https://github.com/juspay/hyperswitch-card-vault/commit/ef998a2d087fbf33600be761c8d20d6ce232c1f3))
- Move allow blocks to functions ([`379ad8a`](https://github.com/juspay/hyperswitch-card-vault/commit/379ad8a9b35f593d12aebc3049b5efd6501d8007))
- Add example config ([`fe8ea20`](https://github.com/juspay/hyperswitch-card-vault/commit/fe8ea20329b9f2f27262c80364c6e9a178345ec9))
- Fix merge conflicts ([`c5c57f6`](https://github.com/juspay/hyperswitch-card-vault/commit/c5c57f687f2a641595bb5d2322417a4bc50ce799))

**Full Changelog:** [`69979a0ae15c8fe3180aea17949fce9fc0ee2335...v0.1.2`](https://github.com/juspay/hyperswitch-card-vault/compare/69979a0ae15c8fe3180aea17949fce9fc0ee2335...v0.1.2)
21 changes: 21 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
tag_prefix = "v"
ignore_merge_commits = true

# the HTML comments (`<!-- N -->`) are a workaround to have sections in custom order, since they are alphabetically sorted
[commit_types]
feat = { changelog_title = "<!-- 0 -->Features" }
fix = { changelog_title = "<!-- 1 -->Bug Fixes" }
perf = { changelog_title = "<!-- 2 -->Performance" }
refactor = { changelog_title = "<!-- 3 -->Refactors" }
test = { changelog_title = "<!-- 4 -->Testing" }
docs = { changelog_title = "<!-- 5 -->Documentation" }
chore = { changelog_title = "<!-- 6 -->Miscellaneous Tasks" }
build = { changelog_title = "<!-- 7 -->Build System / Dependencies" }
ci = { changelog_title = "Continuous Integration", omit_from_changelog = true }

[changelog]
path = "CHANGELOG.md"
template = ".github/cocogitto-changelog-template"
remote = "github.com"
owner = "juspay"
repository = "hyperswitch-card-vault"

0 comments on commit 49b6fa8

Please sign in to comment.