From d2380a4f88504077e98fbff8bd7d111edd229bce Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Sat, 24 Feb 2024 12:22:27 -0600 Subject: [PATCH] Adding issue and PR template configs. --- .github/PULL_REQUEST_TEMPLATE.md | 18 ++++++++++++++++++ .github/label-commenter-config.yml | 11 +++++++++++ .github/workflows/label-commenter.yml | 20 ++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/label-commenter-config.yml create mode 100644 .github/workflows/label-commenter.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..1362156 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,18 @@ +**Description** +A clear and concise description of what was changed. + +**Issues** +A list of GitHub issues related to this PR. + +**Type of Change** +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) + +**Testing Done** +A clear and concise description of the new tests added to validate the change as well as any manual testing done. + +**Checklist** +- [ ] I have added tests that prove my change works as expected, and `make test` passes with no new errors or warnings +- [ ] I have performed a self-review of my own code +- [ ] I have commented my code in particularly hard-to-understand areas diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 0000000..9bc03e6 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,11 @@ +labels: + - name: invalid-forum + labeled: + issue: + body: | + This is a bug tracker and not a support forum. + + While we'd love to be able to support every person on their projects, that would simply be infeasible. Luckily, that's what the helpful developer community over at Stack Overflow is for! Please [create a question there](https://stackoverflow.com/questions/ask?tags=python) if what you're looking for is a programming question or you need help with an integration. + + If you [support the project](https://github.com/sponsors/alexdlaird), contact me directly and I'd be happy to help you troubleshoot. + action: close \ No newline at end of file diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 0000000..05c338c --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,20 @@ +name: "Label Commenter" + +on: + issues: + types: + - labeled + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: main + + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1.5.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + config_file: .github/label-commenter-config.yml