From 2a3e4e94af827612e7bb2a1f1b8d1c27d837adce Mon Sep 17 00:00:00 2001 From: ruhi09 Date: Tue, 21 Sep 2021 18:56:13 +0530 Subject: [PATCH 1/2] Added the workflow Signed-off-by: ruhi09 --- .github/label-commenter-config.yml | 28 +++++++++++++++++++++++++++ .github/workflows/label-commenter.yml | 26 +++++++++++++++++++++++++ 2 files changed, 54 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 00000000..b24e7b61 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,28 @@ +comment: + # header: "Please note the following requirement:" + footer: "\ + ---\n\n + >         Be sure to [join the community](http://slack.layer5.io), if you haven't yet and please leave a :star: [star on the project](../stargazers) :smile: + " + +labels: + - name: issue/design required + labeled: + issue: + body: This issue has been labeled with 'design-required'. Note that prior to commencing on implementation, a design specification needs to be created and reviewed for approval. See [Creating a Functional Specification](https://docs.google.com/document/d/1RP3IWLc-MiQS-QYasqCoVuCH7--G87p5ezE5f_nOzB8/edit?usp=sharing) to create a design spec. + action: open + - name: issue/remind + labeled: + issue: + body: Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance. + action: open + - name: issue/dco + labeled: + pr: + body: "🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. _A what?_ A commit sign-off (your email address).\n\n + To amend the commits in this PR with your signoff using the instructions provided in the DCO check above. \n\n + To configure your dev environment to automatically signoff on your commits in the future, see [these instructions](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)." + action: open + + + \ 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 00000000..290ce8cc --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,26 @@ +name: Label Commenter + +on: + issues: + types: + - labeled + + pull_request_target: + types: + - labeled + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + with: + ref: master # Set your default branch + + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1 \ No newline at end of file From cb325257d5c9d28834e0652154140e7a782ce9df Mon Sep 17 00:00:00 2001 From: ruhi09 Date: Tue, 21 Sep 2021 19:53:20 +0530 Subject: [PATCH 2/2] Updated the changes Signed-off-by: ruhi09 --- .github/label-commenter-config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml index b24e7b61..a1eb337b 100644 --- a/.github/label-commenter-config.yml +++ b/.github/label-commenter-config.yml @@ -16,13 +16,20 @@ labels: issue: body: Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance. action: open + pr: + body: Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance. + action: open - name: issue/dco labeled: - pr: body: "🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. _A what?_ A commit sign-off (your email address).\n\n To amend the commits in this PR with your signoff using the instructions provided in the DCO check above. \n\n To configure your dev environment to automatically signoff on your commits in the future, see [these instructions](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)." action: open + pr: + body: "🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. _A what?_ A commit sign-off (your email address).\n\n + To amend the commits in this PR with your signoff using the instructions provided in the DCO check above. \n\n + To configure your dev environment to automatically signoff on your commits in the future, see [these instructions](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)." + action: open \ No newline at end of file