diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..4ffe872 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,93 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: '' +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: textarea + id: description + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + validations: + required: true + - type: textarea + id: reproduce + attributes: + label: To Reproduce + description: Steps to reproduce the behavior + placeholder: | + 1. Use function/method '...' + 2. With parameters '...' + 3. See error + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + validations: + required: true + - type: textarea + id: code + attributes: + label: Code Example + description: If applicable, add a minimal code example to help explain your problem. + render: go + placeholder: | + // Your code here + validations: + required: false + - type: input + id: go-version + attributes: + label: Go Version + description: Which Go version are you using? + placeholder: e.g., 1.21.0 + validations: + required: true + - type: input + id: package-version + attributes: + label: Package version + placeholder: e.g., v1.0.0 + validations: + required: true + - type: input + id: go-redis-version + attributes: + label: go-redis Version + description: Which version of go-redis are you using? + placeholder: e.g., v9.0.5 + validations: + required: true + - type: input + id: redis-server-version + attributes: + label: Redis Server Version + description: Which Redis server version are you using? + placeholder: e.g., 7.2.1 + validations: + required: true + - type: textarea + id: environment + attributes: + label: Additional environment details + description: Any other relevant environment information (OS, configuration, etc.) + placeholder: More details about your environment + validations: + required: false + - type: textarea + id: context + attributes: + label: Additional context + description: Add any other context about the problem here. + validations: + required: false +--- diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..957b420 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,9 @@ +blank_issues_enabled: false +contact_links: + - name: Documentation + url: https://github.com/redis/go-redis-entraid/blob/main/README.md + about: Check if your issue is already addressed in the documentation. + - name: go-redis repository + url: https://github.com/redis/go-redis + about: For issues related to the Redis client itself, please file an issue in the go-redis repository. + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..3841ac8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,45 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "[FEATURE]" +labels: enhancement +assignees: '' +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to suggest a new feature! + - type: textarea + id: problem + attributes: + label: Is your feature request related to a problem? + description: A clear and concise description of what the problem is. + placeholder: I'm always frustrated when [...] + validations: + required: true + - type: textarea + id: solution + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Describe alternatives you've considered + description: A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + - type: textarea + id: context + attributes: + label: Additional context + description: Add any other context or code examples about the feature request here. + placeholder: | + ```go + // Optional code example + ``` + validations: + required: false +--- diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..8a25760 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,46 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + labels: + - 'chore' + - 'documentation' + - 'refactor' + - 'test' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +version-resolver: + major: + labels: + - 'major' + - 'breaking' + minor: + labels: + - 'minor' + - 'feature' + - 'enhancement' + patch: + labels: + - 'patch' + - 'bug' + - 'bugfix' + - 'fix' + - 'chore' + - 'documentation' + default: patch +template: | + ## Changes + + $CHANGES + + ## Contributors + + $CONTRIBUTORS diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..9ac0fd0 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,26 @@ +name: Release Drafter + +on: + push: + branches: + - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + pull-requests: write + + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/version.go b/version.go deleted file mode 100644 index fbcb668..0000000 --- a/version.go +++ /dev/null @@ -1,8 +0,0 @@ -package entraid - -const version = "0.0.1" - -// Version is the current release version. -func Version() string { - return version -} diff --git a/version_test.go b/version_test.go deleted file mode 100644 index 8351bea..0000000 --- a/version_test.go +++ /dev/null @@ -1,11 +0,0 @@ -package entraid - -import ( - "testing" -) - -func TestVersion(t *testing.T) { - if Version() != version { - t.Errorf("Version() = %s; want %s", Version(), version) - } -}