From 40c703b810f3fcddd0aea00b5f266292c39cde34 Mon Sep 17 00:00:00 2001 From: Krishnan Mahadevan Date: Thu, 14 Mar 2024 11:29:16 +0530 Subject: [PATCH] Adding issue management workflows We can now add the below labels to issues And the workflow will automatically add the required text that will be instructions to the issue submitter. * `needs-sample` * `question` * `help-wanted` These labels should be added to the repository And we can perhaps get rid of the other labels that intend to convey the same thing. More details available at: https://github.com/peaceiris/actions-label-commenter --- .github/label-commenter-config.yml | 35 +++++++++++++++++++++++++++ .github/workflows/label-commenter.yml | 18 ++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/label-commenter-config.yml create mode 100644 .github/workflows/label-commenter.yml diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 000000000..080476546 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,35 @@ +# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter +labels: + - name: needs-sample + labeled: + issue: + body: | + Hi, @{{ issue.user.login }}. + We need more information to reproduce the issue. + + Please help share a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) that can be used to recreate the issue. + + In addition to sharing a sample, please also add the following details: + + * TestNG version being used. + * JDK version being used. + * How was the test run (IDE/Build Tools)? + * How does your build file (`pom.xml` | `build.gradle` | `build.gradle.kts`) look like ? + + It would be better if you could share a sample project that can be directly used to reproduce the problem. + Reply to this issue when all information is provided, thank you. + - name: question + labeled: + issue: + body: | + 💬 Please ask questions at: + * 📫 The [TestNG user group](https://groups.google.com/forum/#!forum/testng-users) + * 📮 [StackOverflow](https://stackoverflow.com/questions/tagged/testng) + action: close + - name: help-wanted + labeled: + issue: + body: | + This issue is looking for contributors. + + Please comment below if you are interested. diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 000000000..ef8cacfe5 --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,18 @@ +name: Label Commenter + +on: + issues: + types: [labeled] + +permissions: + contents: read + issues: write + +jobs: + comment: + if: github.repository_owner == 'testng-team' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1