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 Sep 17, 2024
1 parent 20a34e8 commit 4349524
Show file tree
Hide file tree
Showing 28 changed files with 3,974 additions and 3,044 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{cjs,cpp,cts,dart,htm,html,js,json,json5,jsx,mjs,mts,pu,puml,rb,ts,tsx,vue,yaml,yml}]
[*.{cjs,cpp,cts,dart,htm,html,js,json,json5,jsonc,jsx,mjs,mts,pu,puml,rb,ts,tsx,vue,xml,yaml,yml}]
indent_size = 2
indent_style = space

Expand Down
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ test-fixtures/
.pnp.js
dist.zip

!.keep
.env.production
*/mount/*.hash
.idea/copilot/chatSessions/
.devcontainer/
dist/
temp/
Icon[]
!.keep
test-results/

# Created by https://www.toptal.com/developers/gitignore/api/windows
# Edit at https://www.toptal.com/developers/gitignore?templates=windows

Expand Down
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* text=auto

*.lockb binary diff=lockb
*.vcproj text eol=crlf

*.cjs text eol=lf
Expand All @@ -11,6 +12,7 @@
*.js text eol=lf
*.json text eol=lf
*.json5 text eol=lf
*.jsonc text eol=lf
*.jsx text eol=lf
*.mjs text eol=lf
*.mts text eol=lf
Expand All @@ -20,9 +22,12 @@
*.ts text eol=lf
*.tsx text eol=lf
*.vue text eol=lf
*.xml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.go text eol=lf
*.gradle text eol=lf
*.py text eol=lf
*.md text eol=lf

dist/** linguist-generated=true
44 changes: 44 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Close #<IssueNumber>

## Self Check

- [ ] 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 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. ...
<!-- 日本語で記述しても大丈夫です。 -->
2 changes: 1 addition & 1 deletion .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add issue to github project
name: Add issue to GitHub project
on:
issues:
types:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/add-ready-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Add ready issue to GitHub project
on:
issues:
types:
- labeled
jobs:
add-ready-issue-to-project:
uses: WillBooster/reusable-workflows/.github/workflows/add-issue-to-project.yml@main
with:
labeled: 'ready :rocket:'
secrets:
GH_PROJECT_URL: https://github.com/orgs/WillBoosterLab/projects/5
GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }}
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ on:
branches:
- main
- wbfy
- renovate/**
paths-ignore:
- '**.md'
- '**/docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ dist.zip

# Generated by @willbooster/willboosterify

!.keep
.env.production
*/mount/*.hash
.idea/copilot/chatSessions/
.devcontainer/
dist/
temp/
Icon[]
!.keep
test-results/

# Created by https://www.toptal.com/developers/gitignore/api/windows
# Edit at https://www.toptal.com/developers/gitignore?templates=windows

Expand Down
4 changes: 1 addition & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"

run_if_changed() {
Expand All @@ -9,6 +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"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

node node_modules/.bin/lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

node node_modules/.bin/tsc --noEmit --Pretty
Loading

0 comments on commit 4349524

Please sign in to comment.