diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml new file mode 100644 index 0000000..1456061 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -0,0 +1,55 @@ +name: Bug Report +description: Create a bug report to help us improve +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for taking time to fill out this bug report! We reserve this repository issues for bugs with reproducible problems. + + * Please add a :+1: or comment on a similar existing bug report instead of opening a new one. + * Please check whether the bug can be reproduced with the latest release. + - type: textarea + id: specifications + attributes: + label: Specifications + description: Describe the steps to reproduce the bug. + value: | + * Client Version: + * InfluxDB Version: + * Platform: + validations: + required: true + - type: textarea + id: reproduce + attributes: + label: Steps to reproduce + description: Describe the steps to reproduce the bug. + value: | + 1. + 2. + 3. + ... + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + description: Describe what you expected to happen when you performed the above steps. + validations: + required: true + - type: textarea + id: actual-behavior + attributes: + label: Actual behavior + description: Describe what actually happened when you performed the above steps. + validations: + required: true + - type: textarea + id: additional-info + attributes: + label: Additional info + description: Include gist of relevant config, logs, etc. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..5502569 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,27 @@ +--- +name: Feature request +about: Opening a feature request kicks off a discussion +--- + + + +__Proposal:__ +Short summary of the feature. + +__Current behavior:__ +Describe what currently happens. + +__Desired behavior:__ +Describe what you want. + +__Alternatives considered:__ +Describe other solutions or features you considered. + +__Use case:__ +Why is this important (helps with prioritizing requests)? diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..bd74d64 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,21 @@ +name: PR + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: "Auto-assign issue" + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} + assignees: thulasirajkomminar + numOfAssignee: 1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..3cf80d5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,39 @@ +name: PR + +on: + pull_request: + branches: + - main + paths-ignore: + - .github/** + +permissions: + contents: write + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install go + uses: actions/setup-go@v5 + with: + go-version: 1.22 + cache: false + + - name: Disarm go:embed directives to enable lint + continue-on-error: true + run: | + git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g' + + - name: Prepare Upstream + continue-on-error: true + run: make upstream + + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: v1.55.2