Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6d21baa
🐛 fix(deps): update setuptools requirement from ^78.1.0 to ^80.9.0
dependabot[bot] Jun 2, 2025
5cd6210
🐛 fix(deps): update setuptools requirement in /backend
dependabot[bot] Jun 2, 2025
2630575
🐛 fix(deps): update pytest-cov requirement in /backend
dependabot[bot] Sep 15, 2025
612a650
🐛 fix(deps): update pylint requirement from ^3.3.1 to ^4.0.4 in /backend
dependabot[bot] Dec 1, 2025
0cb96be
🐛 fix(deps): update certifi requirement in /backend
dependabot[bot] Jan 5, 2026
2a56b84
🐛 fix(deps): update black requirement in /backend
dependabot[bot] Jan 19, 2026
aa501ec
🐛 fix(deps): update black requirement from ^25.1.0 to ^26.1.0 in /bac…
JuanVilla424 Feb 21, 2026
0f4efd4
🐛 fix(deps): update certifi requirement from ^2025.1.31 to ^2026.1.4 …
JuanVilla424 Feb 21, 2026
856338b
🐛 fix(deps): update pylint requirement from ^3.3.1 to ^4.0.4 in /back…
JuanVilla424 Feb 21, 2026
069fbad
🐛 fix(deps): update pytest-cov requirement from ^6.1.1 to ^7.0.0 in /…
JuanVilla424 Feb 21, 2026
225d0c4
🐛 fix(deps): update setuptools requirement from ^78.1.0 to ^80.9.0 in…
JuanVilla424 Feb 21, 2026
6c19ab4
🐛 fix(deps): update setuptools requirement from ^78.1.0 to ^80.9.0 (#73)
JuanVilla424 Feb 21, 2026
2c71b52
🐛 fix(deps): update setuptools requirement in /backend
dependabot[bot] Feb 23, 2026
ee38a43
🐛 fix(deps): update isort requirement from ^6.0.1 to ^8.0.1 in /backend
dependabot[bot] Mar 2, 2026
0086ef3
feat(core): add inline release creation and update cicd workflows [pa…
Mar 3, 2026
0846884
📝 docs(core): update readme with release automation features [patch c…
Mar 3, 2026
8934d8a
🔖 Bump version: 1.0.13 → 1.0.14
Mar 3, 2026
db08ed5
🐛 fix(deps): update setuptools requirement from ^80.9.0 to ^82.0.0 in…
JuanVilla424 Mar 3, 2026
f9d9eb6
🐛 fix(deps): update isort requirement from ^6.0.1 to ^8.0.1 in /backe…
JuanVilla424 Mar 3, 2026
4015c42
🔖 From dev → Bump version: v1.0.14-dev into test (#85)
JuanVilla424 Mar 3, 2026
9a64172
🔖 From test → Bump version: v1.0.14-test into prod (#86)
JuanVilla424 Mar 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.13
current_version = 1.0.14
commit = True
tag = False

Expand Down
125 changes: 92 additions & 33 deletions .github/workflows/release-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v*.*.*'

permissions:
contents: write
Expand All @@ -19,59 +18,119 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
env:
REPO_NAME: ${{ github.event.repository.name }}
# set folder repository var \
# (settings->security->secrets-variables->actions->variables->repository) \
# or set default
FOLDER_TO_COMPRESS: 'docs'
REPO_FULL: ${{ github.repository }}
steps:
- name: Checkout repository
id: checkout_repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
id: setup_python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
id: install_dependencies
- name: Generate Release Notes
id: release_notes
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install poetry
poetry lock
poetry install
TAG="${GITHUB_REF_NAME}"
PREV_TAG=$(git describe --tags --abbrev=0 "${TAG}^" 2>/dev/null || echo "")

if [ -z "$PREV_TAG" ]; then
COMMITS=$(git log "$TAG" --pretty=format:"%s")
else
COMMITS=$(git log "${PREV_TAG}..${TAG}" --pretty=format:"%s")
fi

FEATURES=""
FIXES=""
DOCS=""
REFACTORS=""
PERF=""
CHORES=""
STYLES=""
TESTS=""
OTHER=""

while IFS= read -r line; do
# Skip noise commits
case "$line" in
"Bump version:"*|"Merge branch"*|"Merge pull request"*) continue ;;
esac

# Strip emoji prefix if present
clean=$(echo "$line" | sed 's/^[^a-zA-Z]* *//')

# Parse conventional commit
if echo "$clean" | grep -qE '^(feat|fix|docs|style|refactor|perf|test|chore)(\([^)]+\))?:'; then
TYPE=$(echo "$clean" | sed -E 's/^(feat|fix|docs|style|refactor|perf|test|chore).*/\1/')
DESC=$(echo "$clean" | sed -E 's/^(feat|fix|docs|style|refactor|perf|test|chore)(\([^)]+\))?:\s*//')
# Remove versioning keyword suffix
DESC=$(echo "$DESC" | sed -E 's/\s*\[(minor|major|patch) candidate\]\s*$//')
SCOPE=$(echo "$clean" | sed -nE 's/^[a-z]+\(([^)]+)\):.*/\1/p')

if [ -n "$SCOPE" ]; then
ENTRY="- **${SCOPE}**: ${DESC}"
else
ENTRY="- ${DESC}"
fi

case "$TYPE" in
feat) FEATURES="${FEATURES}${ENTRY}\n" ;;
fix) FIXES="${FIXES}${ENTRY}\n" ;;
docs) DOCS="${DOCS}${ENTRY}\n" ;;
style) STYLES="${STYLES}${ENTRY}\n" ;;
refactor) REFACTORS="${REFACTORS}${ENTRY}\n" ;;
perf) PERF="${PERF}${ENTRY}\n" ;;
test) TESTS="${TESTS}${ENTRY}\n" ;;
chore) CHORES="${CHORES}${ENTRY}\n" ;;
esac
else
if [ -n "$clean" ]; then
OTHER="${OTHER}- ${clean}\n"
fi
fi
done <<< "$COMMITS"

# Build release notes body
BODY="## What's Changed\n\n"

[ -n "$FEATURES" ] && BODY="${BODY}### Features\n${FEATURES}\n"
[ -n "$FIXES" ] && BODY="${BODY}### Bug Fixes\n${FIXES}\n"
[ -n "$DOCS" ] && BODY="${BODY}### Documentation\n${DOCS}\n"
[ -n "$REFACTORS" ] && BODY="${BODY}### Refactors\n${REFACTORS}\n"
[ -n "$PERF" ] && BODY="${BODY}### Performance\n${PERF}\n"
[ -n "$STYLES" ] && BODY="${BODY}### Styles\n${STYLES}\n"
[ -n "$TESTS" ] && BODY="${BODY}### Tests\n${TESTS}\n"
[ -n "$CHORES" ] && BODY="${BODY}### Chores\n${CHORES}\n"
[ -n "$OTHER" ] && BODY="${BODY}### Other\n${OTHER}\n"

if [ -n "$PREV_TAG" ]; then
BODY="${BODY}**Full Changelog**: https://github.com/${REPO_FULL}/compare/${PREV_TAG}...${TAG}\n"
fi

# Write to output using delimiter
{
echo "body<<RELEASE_NOTES_EOF"
echo -e "$BODY"
echo "RELEASE_NOTES_EOF"
} >> "$GITHUB_OUTPUT"
env:
REPO_FULL: ${{ env.REPO_FULL }}
- name: Package Version
id: package_version
run: |
zip -r "${REPO_NAME}-${GITHUB_REF_NAME}.zip" \
{INSTALL,SECURITY,README,ICONS,CONTRIBUTING,CODE_OF_CONDUCT}.md \
requirements.txt .github scripts frontend backend \
pyproject.toml LICENSE
# "${FOLDER_TO_COMPRESS}"
env:
REPO_NAME: ${{ env.REPO_NAME }}
GITHUB_REF_NAME: ${{ github.ref_name }}
FOLDER_TO_COMPRESS: ${{ env.FOLDER_TO_COMPRESS }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: ${{ steps.release_notes.outputs.body }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload_release
uses: actions/upload-release-asset@v1
files: "${{ env.REPO_NAME }}-${{ github.ref_name }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "${{ env.REPO_NAME }}-${{ github.ref_name }}.zip"
asset_name: "${{ env.REPO_NAME }}-${{ github.ref_name }}.zip"
asset_content_type: application/zip
130 changes: 121 additions & 9 deletions .github/workflows/version-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,25 @@ on:
- prod
- main

permissions:
contents: write
pull-requests: write

jobs:
version-controller:
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}
REPO_FULL: ${{ github.repository }}
steps:
- name: Checkout Repository
id: checkout_repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
id: setup_python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
Expand Down Expand Up @@ -65,18 +72,28 @@ jobs:
git rm -r --cached scripts || true
rm -rf scripts
git submodule add -b ${{ steps.determine_branch.outputs.current_branch }} https://github.com/JuanVilla424/scripts.git
# - name: Run Changelog Generator
# id: run_changelog
# run: |
# python scripts/generate_changelog/main.py
- name: Run Changelog Generator
id: run_changelog
run: |
python scripts/generate_changelog/main.py
- name: Commit Changelog Updates
id: commit_changelog
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md || true
git diff --cached --quiet || git commit -m "docs(core): update changelog"
- name: Check for Forbidden Character
id: check_arrow
run: |
if [[ "${{ steps.get_commit.outputs.commit_message }}" == *"→"* && "${{ steps.get_commit.outputs.commit_message }}" == *"Bump version:"* ]]; then
COMMIT_MSG="${COMMIT_MESSAGE}"
if [[ "$COMMIT_MSG" == *"→"* && "$COMMIT_MSG" == *"Bump version:"* ]]; then
echo "contains_arrow=true" >> $GITHUB_OUTPUT
else
echo "contains_arrow=false" >> $GITHUB_OUTPUT
fi
env:
COMMIT_MESSAGE: ${{ steps.get_commit.outputs.commit_message }}
- name: Create Tag
id: create_tag
if: steps.check_arrow.outputs.contains_arrow == 'true'
Expand All @@ -93,7 +110,7 @@ jobs:
run: |
git push origin "${{ steps.create_tag.outputs.tag_name }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Ensure on Current Branch
id: ensure_branch
if: steps.check_arrow.outputs.contains_arrow == 'true'
Expand All @@ -102,7 +119,7 @@ jobs:
- name: Create Pull Request
id: create_pull_request
if: steps.check_arrow.outputs.contains_arrow == 'true' && github.ref != 'refs/heads/main'
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down Expand Up @@ -141,5 +158,100 @@ jobs:
TAG_NAME="v${VERSION}"
git tag "$TAG_NAME"
git push origin "$TAG_NAME"
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Generate Release Notes
id: release_notes
if: github.ref == 'refs/heads/main' && steps.check_arrow.outputs.contains_arrow == 'true'
run: |
TAG="${{ steps.push_tag_to_main.outputs.tag_name }}"
PREV_TAG=$(git describe --tags --abbrev=0 "${TAG}^" 2>/dev/null || echo "")

if [ -z "$PREV_TAG" ]; then
COMMITS=$(git log "$TAG" --pretty=format:"%s")
else
COMMITS=$(git log "${PREV_TAG}..${TAG}" --pretty=format:"%s")
fi

FEATURES=""
FIXES=""
DOCS=""
REFACTORS=""
PERF=""
CHORES=""
STYLES=""
TESTS=""
OTHER=""

while IFS= read -r line; do
case "$line" in
"Bump version:"*|"Merge branch"*|"Merge pull request"*) continue ;;
esac

clean=$(echo "$line" | sed 's/^[^a-zA-Z]* *//')

if echo "$clean" | grep -qE '^(feat|fix|docs|style|refactor|perf|test|chore)(\([^)]+\))?:'; then
TYPE=$(echo "$clean" | sed -E 's/^(feat|fix|docs|style|refactor|perf|test|chore).*/\1/')
DESC=$(echo "$clean" | sed -E 's/^(feat|fix|docs|style|refactor|perf|test|chore)(\([^)]+\))?:\s*//')
DESC=$(echo "$DESC" | sed -E 's/\s*\[(minor|major|patch) candidate\]\s*$//')
SCOPE=$(echo "$clean" | sed -nE 's/^[a-z]+\(([^)]+)\):.*/\1/p')

if [ -n "$SCOPE" ]; then
ENTRY="- **${SCOPE}**: ${DESC}"
else
ENTRY="- ${DESC}"
fi

case "$TYPE" in
feat) FEATURES="${FEATURES}${ENTRY}\n" ;;
fix) FIXES="${FIXES}${ENTRY}\n" ;;
docs) DOCS="${DOCS}${ENTRY}\n" ;;
style) STYLES="${STYLES}${ENTRY}\n" ;;
refactor) REFACTORS="${REFACTORS}${ENTRY}\n" ;;
perf) PERF="${PERF}${ENTRY}\n" ;;
test) TESTS="${TESTS}${ENTRY}\n" ;;
chore) CHORES="${CHORES}${ENTRY}\n" ;;
esac
else
if [ -n "$clean" ]; then
OTHER="${OTHER}- ${clean}\n"
fi
fi
done <<< "$COMMITS"

BODY="## What's Changed\n\n"

[ -n "$FEATURES" ] && BODY="${BODY}### Features\n${FEATURES}\n"
[ -n "$FIXES" ] && BODY="${BODY}### Bug Fixes\n${FIXES}\n"
[ -n "$DOCS" ] && BODY="${BODY}### Documentation\n${DOCS}\n"
[ -n "$REFACTORS" ] && BODY="${BODY}### Refactors\n${REFACTORS}\n"
[ -n "$PERF" ] && BODY="${BODY}### Performance\n${PERF}\n"
[ -n "$STYLES" ] && BODY="${BODY}### Styles\n${STYLES}\n"
[ -n "$TESTS" ] && BODY="${BODY}### Tests\n${TESTS}\n"
[ -n "$CHORES" ] && BODY="${BODY}### Chores\n${CHORES}\n"
[ -n "$OTHER" ] && BODY="${BODY}### Other\n${OTHER}\n"

if [ -n "$PREV_TAG" ]; then
BODY="${BODY}**Full Changelog**: https://github.com/${REPO_FULL}/compare/${PREV_TAG}...${TAG}\n"
fi

{
echo "body<<RELEASE_NOTES_EOF"
echo -e "$BODY"
echo "RELEASE_NOTES_EOF"
} >> "$GITHUB_OUTPUT"
env:
REPO_FULL: ${{ env.REPO_FULL }}
- name: Create GitHub Release
id: create_release
if: github.ref == 'refs/heads/main' && steps.check_arrow.outputs.contains_arrow == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.push_tag_to_main.outputs.tag_name }}
name: Release ${{ steps.push_tag_to_main.outputs.tag_name }}
body: ${{ steps.release_notes.outputs.body }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading