Skip to content

Commit 12da1d5

Browse files
authored
Merge branch 'master' into issue-1115
2 parents 5982338 + 7eafdfa commit 12da1d5

17 files changed

+466
-411
lines changed

.github/workflows/docspublish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,44 @@ on:
66
- master
77

88
jobs:
9+
update-cli-screenshots:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15+
fetch-depth: 0
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install -U pip poetry
23+
poetry --version
24+
poetry install
25+
- name: Update CLI screenshots
26+
run: |
27+
poetry run python scripts/gen_cli_help_screenshots.py
28+
- name: Commit and push updated CLI screenshots
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git add docs/images/cli_help
33+
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
34+
git push
35+
936
publish-documentation:
1037
runs-on: ubuntu-latest
38+
needs: update-cli-screenshots
1139
steps:
1240
- uses: actions/checkout@v4
1341
with:
1442
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
1543
fetch-depth: 0
44+
- name: Pull latest changes
45+
run: |
46+
git pull origin master
1647
- name: Set up Python
1748
uses: actions/setup-python@v5
1849
with:

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ repos:
2121
exclude: "tests/((commands|data)/|test_).+"
2222
- id: trailing-whitespace
2323
args: [ --markdown-linebreak-ext=md ]
24+
exclude: '\.svg$'
2425
- id: debug-statements
2526
- id: no-commit-to-branch
2627
- id: check-merge-conflict
@@ -46,7 +47,7 @@ repos:
4647
exclude: "poetry.lock"
4748

4849
- repo: https://github.com/commitizen-tools/commitizen
49-
rev: v3.25.1 # automatically updated by Commitizen
50+
rev: v3.26.0 # automatically updated by Commitizen
5051
hooks:
5152
- id: commitizen
5253
- id: commitizen-branch

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v3.26.0 (2024-05-18)
2+
3+
### Feat
4+
5+
- **ci/cd**: automates the generation of CLI screenshots
6+
17
## v3.25.1 (2024-05-15)
28

39
### Refactor

commitizen/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.25.1"
1+
__version__ = "3.26.0"

docs/images/cli_help/cz___help.svg

Lines changed: 88 additions & 84 deletions
Loading

0 commit comments

Comments
 (0)