Skip to content

Commit

Permalink
Merge branch 'layer5io:master' into slider-responsive#5670
Browse files Browse the repository at this point in the history
  • Loading branch information
upsaurav12 committed Jul 28, 2024
2 parents 8a30198 + dfe8a5c commit 2862fa7
Show file tree
Hide file tree
Showing 2,714 changed files with 48,268 additions and 4,466 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ updates:
schedule:
interval: monthly
reviewers:
- Nikhil-Ladha

126 changes: 81 additions & 45 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,99 @@
area/docs:
- "readme.md"
- "contributing.md"
- changed-files:
- any-glob-to-any-file:
- "readme.md"
- "contributing.md"
area/ci:
- ".github/**/*"
- ".husky/**/*"
- changed-files:
- any-glob-to-any-file:
- ".github/**/*"
- ".husky/**/*"
area/blog:
- "src/collections/blog/**/*"
- "src/pages/blog/**/*"
- "src/templates/blog-*.js"
- changed-files:
- any-glob-to-any-file:
- "src/collections/blog/**/*"
- "src/pages/blog/**/*"
- "src/templates/blog-*.js"
area/careers:
- "src/collections/careers/**/*"
- "src/collections/programs/**/*"
- "src/templates/career-*.js"
- "src/pages/careers/*"
- changed-files:
- any-glob-to-any-file:
- "src/collections/careers/**/*"
- "src/collections/programs/**/*"
- "src/templates/career-*.js"
- "src/pages/careers/*"
area/community:
- "src/collections/members/**/*"
- "src/pages/community/**/*"
- "src/templates/member-*.js"
- changed-files:
- any-glob-to-any-file:
- "src/collections/members/**/*"
- "src/pages/community/**/*"
- "src/templates/member-*.js"
area/events:
- "src/collections/events/**/*"
- "src/templates/event*.js"
- changed-files:
- any-glob-to-any-file:
- "src/collections/events/**/*"
- "src/templates/event*.js"
area/handbook:
- "src/components/HandbookCard/**/*"
- "src/components/Handbook-navigation/**/*"
- "src/sections/Community/Handbook/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/components/HandbookCard/**/*"
- "src/components/Handbook-navigation/**/*"
- "src/sections/Community/Handbook/**/*"
area/landscape:
- "src/sections/Landscape/**/*"
- "src/components/Landscape-Table/**/*"
- "src/collections/landscape/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/sections/Landscape/**/*"
- "src/components/Landscape-Table/**/*"
- "src/collections/landscape/**/*"
area/learn:
- "content-learn"
- "src/components/Learn-Components/**/*"
- "src/collections/service-mesh-books/**/*"
- "src/collections/service-mesh-learn/**/*"
- "src/collections/service-mesh-workshops/**/*"
- "src/templates/book-*.js"
- "src/templates/course-*.js"
- "src/templates/lab-*.js"
- "src/templates/learn-*.js"
- "src/templates/workshop-*.js"
- changed-files:
- any-glob-to-any-file:
- "content-learn"
- "src/components/Learn-Components/**/*"
- "src/collections/service-mesh-books/**/*"
- "src/collections/service-mesh-learn/**/*"
- "src/collections/service-mesh-workshops/**/*"
- "src/templates/book-*.js"
- "src/templates/course-*.js"
- "src/templates/lab-*.js"
- "src/templates/learn-*.js"
- "src/templates/workshop-*.js"
area/news:
- "src/collections/news/**/*"
- "src/templates/news-*.js"
- changed-files:
- any-glob-to-any-file:
- "src/collections/news/**/*"
- "src/templates/news-*.js"
area/partners:
- "src/collections/partners/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/collections/partners/**/*"
area/resources:
- "src/collections/resources/**/*"
- "src/templates/resource-*.js"
- changed-files:
- any-glob-to-any-file:
- "src/collections/resources/**/*"
- "src/templates/resource-*.js"
area/projects:
- "src/collections/projects/**/*"
- "src/pages/projects/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/collections/projects/**/*"
- "src/pages/projects/**/*"
area/core-styles:
- "src/sections/app.style.js"
- "src/theme/app/*"
- changed-files:
- any-glob-to-any-file:
- "src/sections/app.style.js"
- "src/theme/app/*"
area/site-config:
- "gatsby-*.js"
- changed-files:
- any-glob-to-any-file:
- "gatsby-*.js"
area/packages:
- "package-*.js"
- changed-files:
- any-glob-to-any-file:
- "package-*.js"
project/meshery:
- "src/collections/integrations/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/collections/integrations/**/*"
project/meshmap:
- "src/sections/Meshmap/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/sections/Meshmap/**/*"
25 changes: 25 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Checks
on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]


jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 1

- name: NPM Install
run: npm install

- name: Build
run: npm run build

- name: Run Eslint
run: npm run checklint
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1 change: 0 additions & 1 deletion .github/workflows/meshmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
run: |
export pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
echo "PULL_NO=$pull_number" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
path: action
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run checklint
npx lint-staged
14 changes: 13 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We are beyond excited to see that you want to contribute! We would love to accep

⚠️ Cloning this repository ⚠️

Cloning the repo with all its history results in a ~6 GB download. If you don't need the whole history you can use the depth parameter to significantly reduce download size.
Cloning the repo with all its history results in a ~6 GB download. To contribute to this site, you don't need its entire history. Use the `--depth=1` flag to significantly reduce the footprint this repo creates in your environment.

```bash
git clone --depth=1 https://github.com/layer5io/layer5.git
Expand Down Expand Up @@ -558,6 +558,18 @@ git push -u origin <your_branch_name>

**15.** Once you’ve committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. Please ensure that you compare your feature branch to the desired branch of the repo you are supposed to make a PR to. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes in your development branch and update it.

### Lint Rules

Layer5 uses ESLint to maintain code quality and consistency in our UI code. Use this command to trigger a lint check:

```sh
make lint
```

> Note:
> - Eslint in Gatsby requires generating config files from CLI. Run `gatsby build` or `gatsby develop` if you face this error during linting.

## Signing-off on Commits

To contribute to this project, you must agree to the **Developer Certificate of
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ build:
clean:
gatsby clean && make site

.PHONY: setup build site clean site-fast
## Run Eslint on your local machine.
lint:
npm run lint

.PHONY: setup build site clean site-fast lint
Loading

0 comments on commit 2862fa7

Please sign in to comment.