Skip to content

Commit

Permalink
chore: willboosterify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBooster-bot committed Oct 16, 2024
1 parent f341d60 commit 3330da7
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,43 @@ Close #<IssueNumber>

## Self Check

- [ ] I've confirmed `All checks have passed` on PR page. (You may leave this box unchecked due to long workflows.)
- [ ] I've confirmed `All checks have passed` on this page. (このページで `All checks have passed` が表示されていることを確認した。)
- You may leave this box unchecked due to long workflows.
- PR title follows [Angular's commit message format](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format).
- PR title doesn't have `WIP:`.
- All tests are passed.
- Test command (e.g., `yarn test`) is passed.
- Lint command (e.g., `yarn lint`) is passed.
- [ ] I've reviewed my changes on PR's diff view.
- [ ] I've reviewed my changes on GitHub PR's diff view. (GitHub上で自分の変更内容を確認した。)
- [ ] I've written the steps to test. (テスト手順を記載した。)
- [ ] I've added screenshots. (UIを変更した場合、スクリーンショットを追加した。)
- You may leave this box unchecked if you didn't modify the UI.

<!-- Please add screenshots if you modify the UI.
| Current | In coming |
| ------------------------ | ------------------------ |
| <img src="" width="400"> | <img src="" width="400"> |
-->

## Steps to Test

1. Open http://localhost-exercode.willbooster.net:3000/ja-JP/courses/_example/lessons/_example_a_plus_b/problems/_example_a_plus_b after login.
2. Select the language `C`.
3. Write the following code:

```c
#include <stdio.h>

int main(void) {
int a, b;

scanf("%d %d", &a, &b);
printf("%d", a + b);
return 0;
}
```
4. Push `Submit` button.
5. ...
<!-- 日本語で記述しても大丈夫です。 -->
3 changes: 3 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ run_if_changed() {
fi
}

run_if_changed "\..+-version" "awk '{print \$1}' .tool-versions | xargs -I{} asdf plugin add {}"
run_if_changed "\..+-version" "asdf plugin update --all"
run_if_changed "\..+-version" "asdf install"
run_if_changed "package\.json" "yarn"
11 changes: 11 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
11 changes: 11 additions & 0 deletions packages/shared-lib-blitz-next/.lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
11 changes: 11 additions & 0 deletions packages/shared-lib-node/.lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
11 changes: 11 additions & 0 deletions packages/shared-lib-react/.lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
11 changes: 11 additions & 0 deletions packages/shared-lib/.lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
11 changes: 11 additions & 0 deletions packages/wb/.lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};

0 comments on commit 3330da7

Please sign in to comment.