Skip to content

[c++] added few c++ snippets #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/src/ @psychlone77 @saminjay

# Snippets maintainers
/public/data @Mathys-Gasnier
/snippets @Mathys-Gasnier


# ---------- What is a maintainer ----------
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check-snippets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Checks snippets syntax

on:
pull_request:
paths:
- 'snippets/**'

jobs:
check-snippets:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Check if snippets are formated correctly
run: |
node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
8 changes: 4 additions & 4 deletions .github/workflows/consolidate-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Consolidate JSON Files
on:
push:
paths:
- "public/data/**"
- "snippets/**"

permissions:
contents: write
Expand All @@ -25,14 +25,14 @@ jobs:
run: |
npm install

- name: Consolidate JSON files
- name: Consolidate Snippets
run: |
node utils/consolidate.js # Run the script located in the utils/ folder
node utils/consolidateSnippets.js # Run the script located in the utils/ folder

- name: Commit and push changes
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git add public/consolidated/all_snippets.json
git add public/consolidated/*
git commit -m "Update consolidated snippets"
git push
File renamed without changes.
Loading