Skip to content

Commit 58666af

Browse files
authored
chore: update version to 0.22.0 (#1520)
* chore: update version to 0.22.0 Signed-off-by: yangw <[email protected]> * generate docs Signed-off-by: yangw <[email protected]> --------- Signed-off-by: yangw <[email protected]>
1 parent 935adb7 commit 58666af

File tree

9 files changed

+34
-16
lines changed

9 files changed

+34
-16
lines changed

.github/workflows/auto-release.yaml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,35 @@ jobs:
4545
- name: Create release notes
4646
id: release_notes
4747
if: steps.check_release.outputs.exists == 'false'
48+
env:
49+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4850
run: |
4951
PREVIOUS_TAG=$(git describe --tags --abbrev=0 ${{ steps.get_version.outputs.VERSION }}^ 2>/dev/null || git rev-list --max-parents=0 HEAD)
50-
52+
5153
CHANGELOG=""
54+
declare -A SEEN_PRS
55+
5256
while IFS= read -r line; do
5357
commit_hash=$(echo "$line" | cut -d' ' -f1)
5458
commit_msg=$(echo "$line" | cut -d' ' -f2-)
55-
author_login=$(gh api repos/${{ github.repository }}/commits/$commit_hash --jq '.author.login' 2>/dev/null || echo "unknown")
56-
if [ "$author_login" != "null" ] && [ "$author_login" != "unknown" ]; then
57-
CHANGELOG="$CHANGELOG* $commit_msg (@$author_login)"$'\n'
59+
60+
# Prefer author login from associated PR
61+
pr_json=$(gh api repos/${{ github.repository }}/commits/$commit_hash/pulls -H "Accept: application/vnd.github+json" 2>/dev/null || true)
62+
pr_number=$(echo "$pr_json" | jq -r '.[0].number // empty')
63+
if [ -n "$pr_number" ] && [ -z "${SEEN_PRS[$pr_number]+x}" ]; then
64+
pr_title=$(echo "$pr_json" | jq -r '.[0].title // empty')
65+
pr_author=$(echo "$pr_json" | jq -r '.[0].user.login // empty')
66+
if [ -z "$pr_author" ] || [ "$pr_author" = "null" ]; then
67+
pr_author="unknown"
68+
fi
69+
CHANGELOG="$CHANGELOG* ${pr_title:-$commit_msg} (#$pr_number) (@$pr_author)"$'\n'
70+
SEEN_PRS[$pr_number]=1
5871
else
59-
author_name=$(git show --pretty=format:"%an" -s $commit_hash)
60-
CHANGELOG="$CHANGELOG* $commit_msg (@$author_name)"$'\n'
72+
# No PR associated: include commit message without PR info
73+
CHANGELOG="$CHANGELOG* $commit_msg"$'\n'
6174
fi
6275
done < <(git log --pretty=format:"%H %s" ${PREVIOUS_TAG}..${{ steps.get_version.outputs.VERSION }})
63-
76+
6477
cat > release_notes.md << EOF
6578
## Changes
6679
${CHANGELOG}
@@ -70,7 +83,7 @@ jobs:
7083
if: steps.check_release.outputs.exists == 'false'
7184
uses: softprops/action-gh-release@v2
7285
with:
73-
name: Release ${{ steps.get_version.outputs.VERSION }}
86+
name: ${{ steps.get_version.outputs.VERSION }}
7487
body_path: release_notes.md
7588
draft: true
7689
prerelease: false

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Release History
2+
3+
> **NOT MAINTAINED**. Please refer to the [Release History](https://github.com/OT-CONTAINER-KIT/redis-operator/releases) for recent release notes.
4+
15
### v0.21.0
26
##### June 2025 Latest
37

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ===========================
44

55
# Current Operator version
6-
VERSION ?= 0.21.0
6+
VERSION ?= 0.22.0
77

88
# Default bundle image tag
99
BUNDLE_IMG ?= controller-bundle:$(VERSION)

charts/redis-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v2
3-
version: 0.21.2
4-
appVersion: "0.21.0"
3+
version: 0.22.0
4+
appVersion: "0.22.0"
55
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
66
engine: gotpl
77
maintainers:

charts/redis-operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ kubectl create secret tls <webhook-server-cert> --key tls.key --cert tls.crt -n
111111
| redisOperator.automountServiceAccountToken | bool | `true` | |
112112
| redisOperator.env | list | `[]` | |
113113
| redisOperator.extraArgs | list | `[]` | |
114-
| redisOperator.imageName | string | `"ghcr.io/ot-container-kit/redis-operator/redis-operator"` | |
114+
| redisOperator.imageName | string | `"quay.io/opstree/redis-operator"` | |
115115
| redisOperator.imagePullPolicy | string | `"Always"` | |
116116
| redisOperator.imagePullSecrets | list | `[]` | |
117117
| redisOperator.imageTag | string | `""` | |

charts/redis-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
redisOperator:
33
name: redis-operator
4-
imageName: ghcr.io/ot-container-kit/redis-operator/redis-operator
4+
imageName: quay.io/opstree/redis-operator
55
# Overrides the image tag whose default is the chart appVersion.
66
imageTag: ""
77
imagePullPolicy: Always

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: quay.io/opstree/redis-operator
16-
newTag: v0.21.0
16+
newTag: v0.22.0

docs/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ gcs_engine_id = "016691298986124624340:x7qv2dywdao"
8383
# current release branch. Never is rc.
8484
release_branch = "release-1.27.0"
8585
# the main version. Never is rc.
86-
release_version = "0.21.0"
86+
release_version = "0.22.0"
8787

8888
# shown for production
8989
supported_k8s = "1.23"

docs/content/en/docs/Release History/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ date: 2025-07-25T00:00:00Z
66
description: >
77
Release versions and their description about Redis Operator
88
---
9-
The most up to date release notes can be found on [GitHub](https://github.com/OT-CONTAINER-KIT/redis-operator/releases)
9+
10+
> **NOT MAINTAINED**. Please refer to the [Release History](https://github.com/OT-CONTAINER-KIT/redis-operator/releases) for recent release notes.
1011
1112
### v0.21.0
1213
#### June 2025

0 commit comments

Comments
 (0)