Skip to content

Commit 30c7e91

Browse files
committed
Initial commit
0 parents  commit 30c7e91

21 files changed

+834
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug/issue report
3+
about: Report an issue to help improve the project.
4+
title: ''
5+
labels: 'kind/bug'
6+
assignees: ''
7+
---
8+
**Description**
9+
<!-- A brief description of the issue. -->
10+
11+
**Expected Behavior**
12+
<!-- A brief description of what you expected to happen. -->
13+
14+
**Screenshots**
15+
<!-- Add screenshots, if applicable, to help explain your problem. -->
16+
17+
**Environment:**
18+
- OS: [e.g. Ubuntu]
19+
- Browser: [e.g. Chrome, Safari]
20+
- Version: [e.g. 22]
21+
- Device: [e.g. laptop, iPhone 8]
22+
23+
---
24+
[Optional] **To Reproduce**
25+
Steps to reproduce the behavior:
26+
1. Go to '...'
27+
2. Click on '....'
28+
3. Scroll down to '....'
29+
4. See error
30+
31+
[Optional] **Additional Context**
32+
<!-- Add any other context about the problem here. -->
33+
34+
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Documentation issue
3+
about: Issues related to documentation.
4+
title: '[Docs]'
5+
labels: 'area/docs'
6+
assignees: ''
7+
---
8+
**Current State:**
9+
10+
11+
**Desired State:**
12+
13+
14+
---
15+
**Contributor Resources**
16+
- [Meshery documentation site](https://meshery.layer5.io/docs/)
17+
- [Meshery documentation source](https://github.com/layer5io/meshery/tree/master/docs)
18+
- [Instructions for contributing to documentation](https://github.com/layer5io/meshery/blob/master/CONTRIBUTING.md#documentation-contribution-flow)
19+
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an enhancement to this project.
4+
title: ''
5+
labels: 'kind/enhancement'
6+
assignees: ''
7+
---
8+
9+
**Current Behavior**
10+
<!-- A brief description of what the problem is. (e.g. I need to be able to...) -->
11+
12+
13+
**Desired Behavior**
14+
<!-- A brief description of the enhancement. -->
15+
16+
17+
---
18+
**Resources**
19+
<!-- Helpful tools and reference information. -->
20+
21+
**Alternatives / Additional Context**
22+
<!-- A brief description of any alternative solutions or features you've considered or other context that might be helpful. -->

.github/ISSUE_TEMPLATE/question.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: General question
3+
about: Request information about the project; clarify behavior of the software
4+
title: '[Question]'
5+
labels: 'kind/question'
6+
assignees: ''
7+
---
8+
9+
**How can we help?**
10+
<!-- A brief description of what question(s) you have and how we can help clarify. -->
11+

.github/PULL_REQUEST_TEMPLATE.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Description**
2+
3+
This PR fixes #
4+
5+
**Notes for Reviewers**
6+
7+
8+
**[Signed commits](../CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)**
9+
- [ ] Yes, I signed my commits.
10+
11+
12+
<!--
13+
Thank you for contributing to Meshery!
14+
15+
Contributing Conventions:
16+
17+
1. Include descriptive PR titles with [<component-name>] prepended.
18+
2. Build and test your changes before submitting a PR.
19+
3. Sign your commits
20+
21+
By following the community's contribution conventions upfront, the review process will
22+
be accelerated and your PR merged more quickly.
23+
-->

.github/config.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
Thanks for your contribution to the Layer5 community! :tada:
19+
20+
![Congrats!](welcome/Layer5-celebration.png)
21+
22+
23+
#-------------------------------------------------------------------------------
24+
# Configuration for request-info - https://github.com/behaviorbot/request-info
25+
# Comment to reply with
26+
requestInfoReplyComment: >
27+
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:
28+
# *OPTIONAL* Add a list of people whose Issues/PRs will not be commented on
29+
# keys must be GitHub usernames
30+
#requestInfoUserstoExclude:
31+
# - layer5io/maintainers
32+
33+
34+
#-------------------------------------------------------------------------------
35+
# Configuration for sentiment-bot - https://github.com/behaviorbot/sentiment-bot
36+
# *Required* toxicity threshold between 0 and .99 with the higher numbers being the most toxic
37+
# Anything higher than this threshold will be marked as toxic and commented on
38+
sentimentBotToxicityThreshold: .9
39+
40+
# *Required* Comment to reply with
41+
sentimentBotReplyComment: >
42+
Please be sure to review the code of conduct and be respectful of other users. // @layer5io/maintainers
43+
29.3 KB
Loading

.github/readme/images/community.svg

+1
Loading

.github/readme/images/slack-128.png

4.53 KB
Loading

.github/release-drafter.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name-template: 'v$NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'kind/feature'
7+
- 'kind/enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'kind/bug'
13+
- title: '🧰 Maintenance'
14+
labels:
15+
- 'kind/chore'
16+
- 'chore'
17+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
template: |
19+
## What's New
20+
$CHANGES
21+
22+
## Contributors
23+
24+
Thank you to our contributors for making this release possible:
25+
$CONTRIBUTORS

.github/stale.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 45
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 10
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- issue/willfix
8+
# Label to use when marking an issue as stale
9+
staleLabel: issue/stale
10+
# Comment to post when marking an issue as stale. Set to `false` to disable
11+
markComment: >
12+
This issue has been automatically marked as stale because it has not had
13+
recent activity. It will be closed if no further activity occurs. Thank you
14+
for your contributions.
15+
# Comment to post when closing a stale issue. Set to `false` to disable
16+
closeComment: >
17+
This issue is being automatically closed due to inactivity.
18+
However, you may choose to reopen this issue.
50.2 KB
Loading

.github/workflows/ci.yml

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
name:
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
tags:
7+
- 'v*'
8+
pull_request:
9+
branches:
10+
- 'master'
11+
12+
jobs:
13+
golangci:
14+
name: golangci-lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: golangci-lint
19+
uses: golangci/golangci-lint-action@v1
20+
with:
21+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
22+
version: v1.29
23+
24+
# Optional: working directory, useful for monorepos
25+
# working-directory: somedir
26+
27+
# Optional: golangci-lint command line arguments.
28+
# args: --issues-exit-code=0
29+
30+
# Optional: show only new issues if it's a pull request. The default value is `false`.
31+
# only-new-issues: true
32+
server-tests:
33+
needs: [tests-ui, golangci, build-backend, build-ui]
34+
name: Server tests
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Check out code
38+
uses: actions/checkout@master
39+
with:
40+
fetch-depth: 1
41+
- name: Setup Go
42+
uses: actions/setup-go@v1
43+
with:
44+
go-version: ${{ secrets.GO_VERSION }}
45+
- name: Setup Cache
46+
uses: actions/cache@v1
47+
with:
48+
path: ~/go/pkg/mod
49+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
50+
restore-keys: |
51+
${{ runner.os }}-go-
52+
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go test -tags draft ./...
53+
build-backend:
54+
name: Backend build
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Check out code
58+
uses: actions/checkout@master
59+
with:
60+
fetch-depth: 1
61+
- name: Setup Go
62+
uses: actions/setup-go@v1
63+
with:
64+
go-version: ${{ secrets.GO_VERSION }}
65+
- name: Setup Cache
66+
uses: actions/cache@v1
67+
with:
68+
path: ~/go/pkg/mod
69+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
70+
restore-keys: |
71+
${{ runner.os }}-go-
72+
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go build -tags draft ./cmd/main.go
73+
build-ui:
74+
name: UI build
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Check out code
78+
uses: actions/checkout@master
79+
with:
80+
fetch-depth: 1
81+
- uses: actions/setup-node@v1
82+
with:
83+
node-version: ${{ secrets.NODE_VERSION }}
84+
- uses: actions/cache@v1
85+
with:
86+
path: ~/.npm
87+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
88+
restore-keys: |
89+
${{ runner.os }}-node-
90+
- run: |
91+
cd ui
92+
npm i
93+
npm run build && npm run export
94+
cd ..
95+
cd provider-ui
96+
npm i
97+
npm run build && npm run export
98+
tests-ui:
99+
name: UI tests
100+
runs-on: ubuntu-latest
101+
steps:
102+
- name: Check out code
103+
uses: actions/checkout@master
104+
with:
105+
fetch-depth: 1
106+
- uses: actions/setup-node@v1
107+
with:
108+
node-version: ${{ secrets.NODE_VERSION }}
109+
- uses: actions/cache@v1
110+
with:
111+
path: ~/.npm
112+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
113+
restore-keys: |
114+
${{ runner.os }}-node-
115+
- run: |
116+
cd ui
117+
npm i
118+
npm test
119+
cd ..
120+
cd provider-ui
121+
npm i
122+
npm test
123+
cd ..
124+
mesheryctl_build:
125+
name: Mesheryctl build & release
126+
runs-on: macos-latest
127+
needs: [server-tests]
128+
steps:
129+
- name: Check out code
130+
uses: actions/checkout@master
131+
- name: Unshallow
132+
run: git fetch --prune --unshallow
133+
- name: Set up Go
134+
uses: actions/setup-go@v1
135+
with:
136+
go-version: ${{ secrets.GO_VERSION }}
137+
- name: Setup Cache
138+
uses: actions/cache@v1
139+
with:
140+
path: ~/go/pkg/mod
141+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
142+
restore-keys: |
143+
${{ runner.os }}-go-
144+
- name: goreleaser WITHOUT tag
145+
uses: goreleaser/goreleaser-action@v1
146+
if: success() && startsWith(github.ref, 'refs/tags/') == false
147+
with:
148+
version: latest
149+
args: release --snapshot --skip-publish --rm-dist

.github/workflows/release-drafter.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# our release branch
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
with:
16+
config-name: release-drafter.yml
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/slack.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Slack Notify on Star
2+
on: watch
3+
jobs:
4+
star-notify:
5+
name: Notify Slack on star
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Get current star count
9+
run: |
10+
echo ::set-env name=STARS::$(curl --silent 'https://api.github.com/repos/layer5io/meshery' -H 'Accept: application/vnd.github.preview' | jq '.watchers_count')
11+
- name: Notify slack
12+
env:
13+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
14+
uses: pullreminders/slack-action@master
15+
with:
16+
args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"Someone just starred <new-repo>! (https://github.com/layer5io/meshery/stargazers) Total ⭐️: ${{env.STARS}}\"}'

0 commit comments

Comments
 (0)