Skip to content

Commit b2c911f

Browse files
authored
refactor(release): refactoring release process a big. (#3)
* refactor(release): refactoring release process a big. Add issue templates Add release drafter Remove version files * refactor(github): remove discussions link
1 parent 8ff1c69 commit b2c911f

File tree

7 files changed

+219
-19
lines changed

7 files changed

+219
-19
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
- type: textarea
13+
id: description
14+
attributes:
15+
label: Describe the bug
16+
description: A clear and concise description of what the bug is.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: reproduce
21+
attributes:
22+
label: To Reproduce
23+
description: Steps to reproduce the behavior
24+
placeholder: |
25+
1. Use function/method '...'
26+
2. With parameters '...'
27+
3. See error
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: expected
32+
attributes:
33+
label: Expected behavior
34+
description: A clear and concise description of what you expected to happen.
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: code
39+
attributes:
40+
label: Code Example
41+
description: If applicable, add a minimal code example to help explain your problem.
42+
render: go
43+
placeholder: |
44+
// Your code here
45+
validations:
46+
required: false
47+
- type: input
48+
id: go-version
49+
attributes:
50+
label: Go Version
51+
description: Which Go version are you using?
52+
placeholder: e.g., 1.21.0
53+
validations:
54+
required: true
55+
- type: input
56+
id: package-version
57+
attributes:
58+
label: Package version
59+
placeholder: e.g., v1.0.0
60+
validations:
61+
required: true
62+
- type: input
63+
id: go-redis-version
64+
attributes:
65+
label: go-redis Version
66+
description: Which version of go-redis are you using?
67+
placeholder: e.g., v9.0.5
68+
validations:
69+
required: true
70+
- type: input
71+
id: redis-server-version
72+
attributes:
73+
label: Redis Server Version
74+
description: Which Redis server version are you using?
75+
placeholder: e.g., 7.2.1
76+
validations:
77+
required: true
78+
- type: textarea
79+
id: environment
80+
attributes:
81+
label: Additional environment details
82+
description: Any other relevant environment information (OS, configuration, etc.)
83+
placeholder: More details about your environment
84+
validations:
85+
required: false
86+
- type: textarea
87+
id: context
88+
attributes:
89+
label: Additional context
90+
description: Add any other context about the problem here.
91+
validations:
92+
required: false
93+
---

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Documentation
4+
url: https://github.com/redis/go-redis-entraid/blob/main/README.md
5+
about: Check if your issue is already addressed in the documentation.
6+
- name: go-redis repository
7+
url: https://github.com/redis/go-redis
8+
about: For issues related to the Redis client itself, please file an issue in the go-redis repository.
9+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE]"
5+
labels: enhancement
6+
assignees: ''
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to suggest a new feature!
12+
- type: textarea
13+
id: problem
14+
attributes:
15+
label: Is your feature request related to a problem?
16+
description: A clear and concise description of what the problem is.
17+
placeholder: I'm always frustrated when [...]
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: solution
22+
attributes:
23+
label: Describe the solution you'd like
24+
description: A clear and concise description of what you want to happen.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: alternatives
29+
attributes:
30+
label: Describe alternatives you've considered
31+
description: A clear and concise description of any alternative solutions or features you've considered.
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: context
36+
attributes:
37+
label: Additional context
38+
description: Add any other context or code examples about the feature request here.
39+
placeholder: |
40+
```go
41+
// Optional code example
42+
```
43+
validations:
44+
required: false
45+
---

.github/release-drafter.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '🧰 Maintenance'
14+
labels:
15+
- 'chore'
16+
- 'documentation'
17+
- 'refactor'
18+
- 'test'
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
version-resolver:
21+
major:
22+
labels:
23+
- 'major'
24+
- 'breaking'
25+
minor:
26+
labels:
27+
- 'minor'
28+
- 'feature'
29+
- 'enhancement'
30+
patch:
31+
labels:
32+
- 'patch'
33+
- 'bug'
34+
- 'bugfix'
35+
- 'fix'
36+
- 'chore'
37+
- 'documentation'
38+
default: patch
39+
template: |
40+
## Changes
41+
42+
$CHANGES
43+
44+
## Contributors
45+
46+
$CONTRIBUTORS

.github/workflows/release-drafter.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
# write permission is required to create a github release
17+
contents: write
18+
# write permission is required for autolabeler
19+
pull-requests: write
20+
21+
runs-on: ubuntu-latest
22+
steps:
23+
# Drafts your next Release notes as Pull Requests are merged into "main"
24+
- uses: release-drafter/release-drafter@v5
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

version.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

version_test.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)