diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..77713ce --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,23 @@ +--- +name: πŸ› Report Bug +about: Report Bug. +title: '[BUG] Report bug' +labels: 'bug' +assignees: +--- + +### πŸ› Bug description + + + + +### 🏞 Desired result + + + + +### πŸš‘ Other information + + + + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..dde0747 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,23 @@ +--- +name: '❓ Question or need help' +about: Question or need help +title: '[Question] Help' +labels: 'question' +assignees: '' +--- + +### 🧐 Problem Description + + + + +### πŸ’» Sample code + + + + +### πŸš‘ Other information + + + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..8a8dbcc --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,49 @@ + + +### πŸ€” What is the nature of this change? + +- [ ] New feature +- [ ] Fix bug +- [ ] Style optimization +- [ ] Code style optimization +- [ ] Performance optimization +- [ ] Build optimization +- [ ] Refactor code or style +- [ ] Test related +- [ ] Other + +### πŸ”— Related Issue + + + +### πŸ’‘ Background or solution + + + +### πŸ“ Changelog + + + +| Language | Changelog | +| ---------- | --------- | +| πŸ‡ΊπŸ‡Έ English | | +| πŸ‡¨πŸ‡³ Chinese | | + +### β˜‘οΈ Self Check before Merge + +⚠️ Please check all items below before review. ⚠️ + +- [ ] Doc is updated/provided or not needed +- [ ] Demo is updated/provided or not needed +- [ ] TypeScript definition is updated/provided or not needed +- [ ] Changelog is provided or not needed + + diff --git a/.github/workflows/issue-reply.yml b/.github/workflows/issue-reply.yml new file mode 100644 index 0000000..5402b81 --- /dev/null +++ b/.github/workflows/issue-reply.yml @@ -0,0 +1,27 @@ +name: Issue Reply + +on: + issues: + types: [labeled] + +jobs: + reply-helper: + runs-on: ubuntu-latest + steps: + - name: help wanted + if: github.event.label.name == 'help wanted' + uses: actions-cool/issues-helper@v2.1.1 + with: + actions: 'create-comment' + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution! + + - name: need reproduction + if: github.event.label.name == 'need reproduction' + uses: actions-cool/issues-helper@v2.1.1 + with: + actions: 'create-comment' + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. In order to facilitate location and troubleshooting, we need you to provide a realistic example. Please forking these link [codesandbox](https://codesandbox.io/) or provide your GitHub repository.