Skip to content

Commit d09b56e

Browse files
committed
chore(ci): add changelog.yml workflow
1 parent b5cc94b commit d09b56e

3 files changed

Lines changed: 394 additions & 25 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: update-changelog
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
changelog:
10+
name: Update CHANGELOG
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
if: |
14+
!startsWith(github.event.head_commit.message, '[Release]') &&
15+
!startsWith(github.event.head_commit.message, 'chore(changelog): update CHANGELOG.md') &&
16+
github.event.head_commit.author.name != 'github-actions[bot]'
17+
steps:
18+
- uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 0
21+
- uses: jdx/mise-action@v3
22+
with:
23+
experimental: true
24+
- name: Generate CHANGELOG.md
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: git cliff --config ./cliff.toml -o ./CHANGELOG.md
28+
- name: Check for CHANGELOG changes
29+
id: changelog-changes
30+
run: |
31+
if git diff --quiet CHANGELOG.md; then
32+
echo "No changes in CHANGELOG.md"
33+
echo "has-changes=false" >> $GITHUB_OUTPUT
34+
else
35+
echo "CHANGELOG.md has changes"
36+
echo "has-changes=true" >> $GITHUB_OUTPUT
37+
fi
38+
- name: Commit CHANGELOG
39+
uses: stefanzweifel/git-auto-commit-action@v7
40+
if: steps.changelog-changes.outputs.has-changes == 'true'
41+
with:
42+
commit_message: "chore(changelog): update CHANGELOG.md"
43+
commit_options: '--no-verify'
44+
file_pattern: CHANGELOG.md
45+
commit_user_name: github-actions[bot]
46+
commit_user_email: github-actions[bot]@users.noreply.github.com

CHANGELOG.md

Lines changed: 80 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,103 @@
1-
# Change Log
1+
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
48
#### 1.x Releases
59
- `1.4.x` Releases - [1.4.0](#140)
610
- `1.3.x` Releases - [1.3.0](#130)
711
- `1.2.x` Releases - [1.2.0](#120)
812
- `1.1.x` Releases - [1.1.0](#110)
913
- `1.0.x` Releases - [1.0.0](#100)
1014

15+
---
16+
## [Unreleased]
17+
18+
### Features
19+
- Switch from Makefile to Mise
20+
- Implemented by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#19](https://github.com/space-code/flex-ui/pull/19).
21+
22+
### Miscellaneous Tasks
23+
- Add conventional-pr.yml for PR validation
24+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#20](https://github.com/space-code/flex-ui/pull/20).
25+
- Update config
26+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#26](https://github.com/space-code/flex-ui/pull/26).
27+
28+
### Uncategorized Changes
29+
- Add renovate.json
30+
- Contributed by [@renovate[bot]](https://github.com/renovate[bot]) in Pull Request [#22](https://github.com/space-code/flex-ui/pull/22).
31+
32+
### New Contributors
33+
* @renovate[bot] made their first contribution in [#28](https://github.com/space-code/flex-ui/pull/28)
34+
1135
## [1.4.0](https://github.com/space-code/flex-ui/releases/tag/1.4.0)
12-
Released on 2025-05-23.
1336

14-
#### Added
15-
- Update the `setImage(_:)` method signature.
16-
- Added in Pull Request [#12](https://github.com/space-code/flex-ui/pull/12).
17-
- Implement the `setContentHuggingPriority` & `setContentCompressionResistancePriority` methods.
18-
- Added in Pull Request [#13](https://github.com/space-code/flex-ui/pull/13).
37+
Released on 2025-05-23. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/flex-ui/milestones?state=closed&q=1.4.0).
38+
39+
### Uncategorized Changes
40+
- Release `1.4.0`
41+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#15](https://github.com/space-code/flex-ui/pull/15).
42+
- Update `CHANGELOG.md`
43+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#14](https://github.com/space-code/flex-ui/pull/14).
44+
- Implement the `setContentHuggingPriority` & `setContentCompressionResistancePriority` methods
45+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#13](https://github.com/space-code/flex-ui/pull/13).
46+
- Update the `setImage(_:)` method signature
47+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#12](https://github.com/space-code/flex-ui/pull/12).
1948

2049
## [1.3.0](https://github.com/space-code/flex-ui/releases/tag/1.3.0)
21-
Released on 2025-05-08.
2250

23-
#### Added
24-
- Implement a new `setImage` method for the `UIButton` class.
25-
- Added in Pull Request [#9](https://github.com/space-code/flex-ui/pull/9).
26-
- Implement setting an optional value as the UILabel's text.
27-
- Added in Pull Request [#8](https://github.com/space-code/flex-ui/pull/8).
51+
Released on 2025-05-08. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/flex-ui/milestones?state=closed&q=1.3.0).
52+
53+
### Uncategorized Changes
54+
- Release `1.3.0`
55+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#11](https://github.com/space-code/flex-ui/pull/11).
56+
- Update `CHANGELOG.md`
57+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#10](https://github.com/space-code/flex-ui/pull/10).
58+
- Implement a new `setImage` method for the `UIButton` class
59+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#9](https://github.com/space-code/flex-ui/pull/9).
60+
- Implement setting an optional value as the UILabel's text
61+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#8](https://github.com/space-code/flex-ui/pull/8).
2862

2963
## [1.2.0](https://github.com/space-code/flex-ui/releases/tag/1.2.0)
30-
Released on 2025-02-15.
3164

32-
#### Added
33-
- Implement the extension for the `UIControl` instance.
34-
- Added in Pull Request [#6](https://github.com/space-code/flex-ui/pull/6).
65+
Released on 2025-02-15. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/flex-ui/milestones?state=closed&q=1.2.0).
66+
67+
### Uncategorized Changes
68+
- Implement the extension for the `UIControl` instance
69+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#7](https://github.com/space-code/flex-ui/pull/7).
70+
- Implement the extension for the UIControl instance
71+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#6](https://github.com/space-code/flex-ui/pull/6).
3572

3673
## [1.1.0](https://github.com/space-code/flex-ui/releases/tag/1.1.0)
37-
Released on 2025-01-27.
3874

39-
#### Added
40-
- Implement adding an action to a `UITextField`.
41-
- Added in Pull Request [#3](https://github.com/space-code/flex-ui/pull/3).
75+
Released on 2025-01-27. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/flex-ui/milestones?state=closed&q=1.1.0).
76+
77+
### Uncategorized Changes
78+
- Release `1.1.0`
79+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#4](https://github.com/space-code/flex-ui/pull/4).
80+
- Update `ci.yml`
81+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#5](https://github.com/space-code/flex-ui/pull/5).
82+
- Implement adding an action to a `UITextField`
83+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#3](https://github.com/space-code/flex-ui/pull/3).
4284

4385
## [1.0.0](https://github.com/space-code/flex-ui/releases/tag/1.0.0)
44-
Released on 2025-01-07.
4586

46-
#### Added
47-
- Initial release of FlexUI.
48-
- Added by [Nikita Vasilev](https://github.com/ns-vasilev).
87+
Released on 2025-01-07. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/flex-ui/milestones?state=closed&q=1.0.0).
88+
89+
### Uncategorized Changes
90+
- Release `1.0.0`
91+
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#2](https://github.com/space-code/flex-ui/pull/2).
92+
- Bump actions/checkout from 2 to 4
93+
- Contributed by [@dependabot[bot]](https://github.com/dependabot[bot]) in Pull Request [#1](https://github.com/space-code/flex-ui/pull/1).
94+
95+
### New Contributors
96+
* @dependabot[bot] made their first contribution in [#1](https://github.com/space-code/flex-ui/pull/1)
97+
98+
[unreleased]: https://github.com/space-code/flex-ui/compare/1.4.0..HEAD
99+
[1.4.0]: https://github.com/space-code/flex-ui/compare/1.3.0..1.4.0
100+
[1.3.0]: https://github.com/space-code/flex-ui/compare/1.2.0..1.3.0
101+
[1.2.0]: https://github.com/space-code/flex-ui/compare/1.1.0..1.2.0
102+
[1.1.0]: https://github.com/space-code/flex-ui/compare/1.0.0..1.1.0
103+

0 commit comments

Comments
 (0)