Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/product-id-to-segment-id
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcastr0 committed Feb 12, 2025
2 parents 72dc1b5 + d1df675 commit 0e44c78
Show file tree
Hide file tree
Showing 20 changed files with 8,365 additions and 1,963 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- develop
- main
- feature/*
- fix/*
- hotfix/*
paths-ignore:
- '.gitignore'
- '**/*.env'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- develop
- hotfix/v*
- feature/*
- fix/*
paths-ignore:
- '.gitignore'
- '**/*.md'
Expand All @@ -18,22 +19,31 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Get Commit Message (Sanitized)
id: commit_message
run: |
RAW_MESSAGE=$(git log -1 --pretty=format:%s)
SAFE_MESSAGE=$(echo "$RAW_MESSAGE" | sed 's/[^a-zA-Z0-9 :_-]//g')
echo "COMMIT_MESSAGE=$SAFE_MESSAGE" >> $GITHUB_ENV
- name: Check Commit Messages for "fix", "feat", "chore", or "release"
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
echo "Checking commit message: $COMMIT_MESSAGE"
if [[ "$COMMIT_MESSAGE" =~ ^fix ]]; then
if [[ "$COMMIT_MESSAGE" =~ ^fix: ]]; then
echo "Commit is a FIX. Proceed with color labeling!"
echo "![Fix Badge](https://img.shields.io/badge/Fix-%23FF5733)"
elif [[ "$COMMIT_MESSAGE" =~ ^feat ]]; then
elif [[ "$COMMIT_MESSAGE" =~ ^feat: ]]; then
echo "Commit is a FEATURE. Proceed with color labeling!"
echo "![Feature Badge](https://img.shields.io/badge/Feature-%234CAF50)"
elif [[ "$COMMIT_MESSAGE" =~ ^chore ]]; then
elif [[ "$COMMIT_MESSAGE" =~ ^chore: ]]; then
echo "Commit is a CHORE. Proceed with color labeling!"
echo "![Chore Badge](https://img.shields.io/badge/Chore-%23FF9800)"
elif [[ "$COMMIT_MESSAGE" =~ ^release ]]; then
elif [[ "$COMMIT_MESSAGE" =~ ^release: ]]; then
echo "Commit is a RELEASE. Proceed with color labeling!"
echo "![Release Badge](https://img.shields.io/badge/Release-%237E57C2)"
else
echo "Commit does not match 'fix', 'feat', 'chore', or 'release'. No action."
fi
env:
COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }}
24 changes: 23 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "Pre-Release"

## Flow to review the essential steps
on:
push:
branches:
- feature/*
- fix/*
- hotfix/*
pull_request:
branches:
- develop
Expand Down Expand Up @@ -90,3 +95,20 @@ jobs:
run: npm install
- name: Run Unit Tests
run: npm test

commitlint:
runs-on: ubuntu-latest
name: Run Commitlint to check commit message format
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Run Commitlint
run: |
npx --no-install commitlint --from=HEAD~1 --to=HEAD
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
# [1.6.0](https://github.com/LerianStudio/midaz-console/compare/v1.5.0...v1.6.0) (2025-02-12)


### Features

* avoid injection on commit labelling ([1587788](https://github.com/LerianStudio/midaz-console/commit/158778843bf23fea3e00fd93c04bea78bdb31355))
* control mid versions on releases ([7d16214](https://github.com/LerianStudio/midaz-console/commit/7d1621418fa0a0108a7f541260eb090acf83fb40))
* include regex on mensage flow on commit msg ([b9ce36c](https://github.com/LerianStudio/midaz-console/commit/b9ce36c7ca1986dabb46c086068bd961c7ef0165))
* include regex on mensage flow on commit msg on github ([92a2605](https://github.com/LerianStudio/midaz-console/commit/92a2605791931389ec9fdb6c7090a81098809a06))
* include regex on message flow on commit msg on github ([6003b11](https://github.com/LerianStudio/midaz-console/commit/6003b11bc434b5e53995f7f85189d71444b32137))
* increase the flow of commit labelling ([6df8c86](https://github.com/LerianStudio/midaz-console/commit/6df8c862ec409ef4f6ab9c5683fe2db6569eb061))
* increase the flows on feature, fix and hotfix branches ([7519283](https://github.com/LerianStudio/midaz-console/commit/75192836c354e44d3e0a98b88edaf1c4696341a8))
* insert commitlint on the pipeline workflow ([31dfc3f](https://github.com/LerianStudio/midaz-console/commit/31dfc3f55528911a065f979378b946164020ed36))
* set regex of commit labelling ([1ca37bd](https://github.com/LerianStudio/midaz-console/commit/1ca37bd98efe9f54c07287eb58e6e58100c0b83b))
* set regex of commit labelling ([3b64060](https://github.com/LerianStudio/midaz-console/commit/3b64060d2df7ea6ba66e1df97133d9adfd2285a3))
* set regex of commit labelling flow ([f49bcdc](https://github.com/LerianStudio/midaz-console/commit/f49bcdc1bcd8e31c5526e0f6adc5e63da82611ca))
* set regex of commit labelling flow ([b168262](https://github.com/LerianStudio/midaz-console/commit/b168262d08e6c452a37ebd6c5b3e5fdafea95ed7))
* set regex of commit labelling flow ([55be954](https://github.com/LerianStudio/midaz-console/commit/55be954c6eef7181e74aeaaea7a9bdc26cce6a3f))
* set release channel ([ea62a82](https://github.com/LerianStudio/midaz-console/commit/ea62a825a949ecc2eeea3fcabe6b83027a6489cd))
* set release version of mid versions ([a2f9e7c](https://github.com/LerianStudio/midaz-console/commit/a2f9e7c8fbc4c7a1be8f3a4e9d436ed8fd622616))
* set tagformat of releases ([466dbfb](https://github.com/LerianStudio/midaz-console/commit/466dbfb03df19a80af944ceda22eff5d29b94ffa))
* set the codeql vulnerability ([1949e1d](https://github.com/LerianStudio/midaz-console/commit/1949e1d63fbd5e1d188cd90e243d1e1d14d4abd9))
* set the commit label ([2bfdb21](https://github.com/LerianStudio/midaz-console/commit/2bfdb218941b2edd9fbbaa9cb6f517d5456c364b))
* set the commitlint flow ([33672c1](https://github.com/LerianStudio/midaz-console/commit/33672c12368d26683f9988fff2540da9c5f6653d))
* set the pre-release of workflow ([8e5020b](https://github.com/LerianStudio/midaz-console/commit/8e5020b63b1bff8c5629369a79abe285381bae8a))
* set the release channel ([bf46947](https://github.com/LerianStudio/midaz-console/commit/bf46947a70bb45841e072c5d11260e2320f28bfb))
* set the tagformat on release flow ([fa7b708](https://github.com/LerianStudio/midaz-console/commit/fa7b708decb6d0455c011ec937dade74968f53b3))
* set the types of branch ([2e272c0](https://github.com/LerianStudio/midaz-console/commit/2e272c01052258632579a7b0bcf93575b787b314))
* set the vulnerability tracked on codeql ([0fabfef](https://github.com/LerianStudio/midaz-console/commit/0fabfef85fbf2d228235a698ed7418a9c1abf798))
* set versions of alpha and beta ([8bf73fd](https://github.com/LerianStudio/midaz-console/commit/8bf73fdc499313233e86760c5e7b60fac64dda6e))
* test the build release change of flow ([1aaf866](https://github.com/LerianStudio/midaz-console/commit/1aaf866b68958ec267a974e45b536fed2c67c275))
* test the flow of build release ([fa40382](https://github.com/LerianStudio/midaz-console/commit/fa40382b8e7a5313a4b716fb6937533c3c39c6bb))

# [1.5.0](https://github.com/LerianStudio/midaz-console/compare/v1.4.0...v1.5.0) (2025-02-07)


### Bug Fixes

* delete ledgers behavior remove redirect ([c5e164a](https://github.com/LerianStudio/midaz-console/commit/c5e164aa27cac3b7d26298ac50d0132e9ecd1d70))


### Features

* added button prop ([612b06e](https://github.com/LerianStudio/midaz-console/commit/612b06e42d24aa4b334791355e2f70d982c17613))
* httpfetchmidaz on transaction create route ([b229e01](https://github.com/LerianStudio/midaz-console/commit/b229e01a7e7d4ab387fdb3fac9944970f9e74360))

# [1.4.0](https://github.com/LerianStudio/midaz-console/compare/v1.3.0...v1.4.0) (2025-02-04)


Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
1 change: 1 addition & 0 deletions locales/extracted/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"common.tooltipCopyText": "Click to copy",
"common.type": "Type",
"common.typePlaceholder": "Type...",
"common.user": "User",
"common.value": "Value",
"entity.account.currency": "Assets",
"entity.account.name": "Account Name",
Expand Down
3 changes: 2 additions & 1 deletion locales/extracted/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,6 @@
"ledgers.tab.segments": "Segmentos",
"segments.delete.description": "Você está prestes a excluir permanentemente este segmento. Essa ação não pode ser desfeita. Deseja continuar?",
"settings.tab.segments": "Segmentos",
"sideBar.accountHolders.segments": "Segmentos"
"sideBar.accountHolders.segments": "Segmentos",
"common.user": "Usuário"
}
Loading

0 comments on commit 0e44c78

Please sign in to comment.