Skip to content

Commit e8647a9

Browse files
add standard GitHub workflows, issue templates, and configuration files
Signed-off-by: AbhijeetDev102 <mns102720@gmail.com>
1 parent 4b1c66f commit e8647a9

File tree

10 files changed

+199
-0
lines changed

10 files changed

+199
-0
lines changed

.github/config.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#-------------------------------------------------------------------------------
2+
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
3+
# Comment to be posted to on first time issues
4+
newIssueWelcomeComment: >
5+
Thanks for opening this issue. A contributor will be by to give feedback soon. In the meantime, please review the [Layer5 Community Welcome Guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit?usp=sharing) and sure to join the [community Slack](http://slack.layer5.io/).
6+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
7+
# Comment to be posted to on PRs from first time contributors in your repository
8+
newPRWelcomeComment: >
9+
Yay, your first pull request! :thumbsup: A contributor will be by to give feedback soon. In the meantime, please review the [Layer5 Community Welcome Guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit?usp=sharing) and sure to join the [community Slack](http://slack.layer5.io/).
10+
11+
Be sure to double-check that you have signed your commits. Here are instructions for [making signing an implicit activity while peforming a commit](../CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin).
12+
13+
14+
#-------------------------------------------------------------------------------
15+
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
16+
# Comment to be posted to on pull requests merged by a first time user
17+
firstPRMergeComment: >
18+
&nbsp; &#9; &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; Thank you for contributing to the Layer5 community! :tada:
19+
\
20+
\
21+
![Congrats!](https://github.com/layer5io/layer5/blob/master/.github/welcome/Layer5-celebration.png)
22+
\
23+
\
24+
&nbsp; &#9; &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; :star: Please leave a [star on the project](../stargazers). :smile:
25+
26+
27+
#-------------------------------------------------------------------------------
28+
# Configuration for request-info - https://github.com/behaviorbot/request-info
29+
# Comment to reply with
30+
requestInfoReplyComment: >
31+
Thanks for opening this issue. We welcome all input! If you could provide a little more information, this will greatly aide in its resolution. :thumbsup:
32+
# *OPTIONAL* Add a list of people whose Issues/PRs will not be commented on
33+
# keys must be GitHub usernames
34+
#requestInfoUserstoExclude:
35+
# - layer5io/maintainers
36+
37+
38+
#-------------------------------------------------------------------------------
39+
# Configuration for sentiment-bot - https://github.com/behaviorbot/sentiment-bot
40+
# *Required* toxicity threshold between 0 and .99 with the higher numbers being the most toxic
41+
# Anything higher than this threshold will be marked as toxic and commented on
42+
sentimentBotToxicityThreshold: .9
43+
44+
# *Required* Comment to reply with
45+
sentimentBotReplyComment: >
46+
Please be sure to review the code of conduct and be respectful of other users. // @layer5io/maintainers
47+

.github/label-commenter-config.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
comment:
2+
# header: "Please note the following requirement:"
3+
footer: "\
4+
---\n\n
5+
> &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; Be sure to [join the community](https://slack.meshery.io), if you haven't yet and please leave a :star: [star on the project](../stargazers) :smile:
6+
"
7+
8+
labels:
9+
- name: issue/design required
10+
labeled:
11+
issue:
12+
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.
13+
action: open
14+
- name: issue/remind
15+
labeled:
16+
issue:
17+
body: Checking in... it has been awhile since we&#39;ve heard from you on this issue. Are you still working on it? Please let us know and please don&#39;t hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance.
18+
action: open
19+
pr:
20+
body: Checking in... it has been awhile since we&#39;ve heard from you on this issue. Are you still working on it? Please let us know and please don&#39;t hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance.
21+
action: open
22+
- name: issue/dco
23+
labeled:
24+
issue:
25+
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
26+
To amend the commits in this PR with your signoff using the instructions provided in the DCO check. \n\n
27+
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)."
28+
action: open
29+
pr:
30+
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
31+
To amend the commits in this PR with your signoff using the instructions provided in the DCO check. \n\n
32+
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)."
33+
action: open
34+
- name: component/ui
35+
labeled:
36+
issue:
37+
body: This issue has been labeled with 'component/ui'. 🧰 Here are docs on [Contributing to Meshery UI](https://docs.meshery.io/project/contributing/contributing-ui). 🎨 Here is the [Meshery UI Figma File](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI?node-id=4%3A0) File. Lastly, here are docs on [Contributing to Meshery's End-to-End Tests Using Cypress](https://docs.meshery.io/project/contributing/contributing-cypress).
38+
action: open
39+
pr:
40+
body: This PR has been labeled with 'component/ui'. 🧰 Here are docs on [Contributing to Meshery UI](https://docs.meshery.io/project/contributing/contributing-ui). 🎨 Here is the [Meshery UI Figma File](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI?node-id=4%3A0) File. Lastly, here are docs on [Contributing to Meshery's End-to-End Tests Using Cypress](https://docs.meshery.io/project/contributing/contributing-cypress)
41+
action: open
42+
- name: component/mesheryctl
43+
labeled:
44+
issue:
45+
body: This issue has been labeled with 'component/mesheryctl'. Note that after making changes you need to update it in the [mesheryctl command tracker](https://docs.google.com/spreadsheets/d/1q63sIGAuCnIeDs8PeM-0BAkNj8BBgPUXhLbe1Y-318o/edit#gid=0) spreadsheet.
46+
action: open
47+
pr:
48+
body: This PR has been labeled with 'component/mesheryctl'. Note that after making changes you need to update it in the [mesheryctl command tracker](https://docs.google.com/spreadsheets/d/1q63sIGAuCnIeDs8PeM-0BAkNj8BBgPUXhLbe1Y-318o/edit#gid=0) spreadsheet.
49+
action: open
50+
- name: issue/welcome
51+
labeled:
52+
issue:
53+
body: Thanks for opening this issue. A contributor will be by to give feedback soon. In the meantime, please review the [Layer5 Contributors' Welcome Guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit?usp=sharing) and sure to join the [community Slack](https://slack.layer5.io/).
54+
action: open
55+
pr:
56+
body: >
57+
<p align="center">Thank you for contributing to the Layer5 community! :tada: </p>
58+
<p align="center"><img src="https://raw.githubusercontent.com/meshery/meshery/refs/heads/master/.github/assets/images/Meshery-celebration-Dark.svg" width="80%" /></p><br />
59+
action: open
60+

.github/labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
area/learning-paths:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "content/en/learning-paths/**/*"
5+
area/challenges:
6+
- changed-files:
7+
- any-glob-to-any-file:
8+
- "content/en/challenges/**/*"
Lines changed: 1 addition & 0 deletions
Loading
48.2 KB
Loading
4.53 KB
Loading
6.45 KB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Label Commenter
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
8+
pull_request_target:
9+
types:
10+
- labeled
11+
12+
permissions:
13+
contents: read
14+
issues: write
15+
pull-requests: write
16+
17+
jobs:
18+
comment:
19+
runs-on: ubuntu-22.04
20+
steps:
21+
- name: Checkout repo 🛎️
22+
uses: actions/checkout@master
23+
with:
24+
ref: master # Set your default branch
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Label Commenter
28+
uses: peaceiris/actions-label-commenter@v1.10.0

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/labeler@v4
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/slack.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Slack Notify
2+
3+
on:
4+
watch:
5+
types: [started]
6+
issues:
7+
types: [labeled]
8+
9+
jobs:
10+
star-notify:
11+
if: github.event_name == 'watch'
12+
name: Notify Slack on star
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Get current star count
16+
run: |
17+
echo "STARS=$(curl --silent 'https://api.github.com/repos/${{ github.repository }}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
18+
19+
- name: Notify Slack
20+
uses: slackapi/slack-github-action@v2.1.1
21+
with:
22+
method: chat.postMessage
23+
token: ${{ secrets.SLACK_BOT_TOKEN }}
24+
payload: |
25+
channel: CSK7N9TGX
26+
type: "mrkdwn"
27+
text: "<https://github.com/${{ github.actor }}|${{ github.actor }}> just starred <https://github.com/${{ github.repository }}/stargazers|${{ github.repository }}> bringing the total ⭐️ count up to: ${{ env.STARS }}"
28+
29+
good-first-issue-notify:
30+
if: github.event_name == 'issues' && (github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only')
31+
name: Notify Slack for new good-first-issue
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Notify Slack
35+
uses: slackapi/slack-github-action@v2.1.1
36+
with:
37+
method: chat.postMessage
38+
token: ${{ secrets.SLACK_BOT_TOKEN }}
39+
payload: |
40+
channel: C019426UBNY
41+
text: ":new: Good first issue up for grabs: <${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>"

0 commit comments

Comments
 (0)