Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
🎉 first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Dec 28, 2023
0 parents commit c3ffddc
Show file tree
Hide file tree
Showing 159 changed files with 25,845 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# https://coderabbit.ai/docs/get-started/customize-coderabbit

language: "ja"
early_access: true
reviews:
request_changes_workflow: false
high_level_summary: true
poem: true
review_status: true
collapse_walkthrough: false
path_filters:
- "!**/.xml"
path_instructions:
- path: "**.ts"
instructions: "Review the TypeScript code for conformity with the Google TypeScript style guide, highlighting any deviations."
auto_review:
enabled: true
ignore_title_keywords:
- ":construction:"
drafts: false
chat:
auto_reply: true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Team 名で指定。 すべてのファイルに web-application-template-maintainers チームの全員が権限を持つ
* @albelium/web-application-template-maintainers

# GitHub や Tools 関連は @tatsutakein がオーナとなる
/.github/ @tatsutakein
/scripts/ @tatsutakein
/tools/ @tatsutakein
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Bug Report
description: バグレポートを提出する
title: "[Bug]: "
labels: [ "bug", "triage me" ]
body:
- type: markdown
attributes:
value: |
この度はバグレポートにご協力いただき、ありがとうございます。
- type: checkboxes
attributes:
label: これに対する既存の課題はありますか?
description: あなたが遭遇したバグについて、すでに課題が存在しないかどうか検索してください。
options:
- label: 既存の問題を検索してみました
required: true

- type: checkboxes
attributes:
label: この問題についての StackOverflow の質問はありますか?
description: あなたが遭遇したバグについて、すでに回答がある問題が存在する場合は [StackOverflow](https://stackoverflow.com/questions/tagged/android-jetpack) を検索してください。
options:
- label: StackOverflow を検索してみました
required: true

- type: textarea
id: what-happened
attributes:
label: 何があったんですか?
description: また、どのようなことを期待していたのか、教えてください。
placeholder: あなたが見たものを教えてください
value: "バグが起きた!?"
validations:
required: true

- type: textarea
id: logs
attributes:
label: 関連する Log の出力
description: 関連する Logcat の出力をコピーして貼り付けてください。これは自動的にコードにフォーマットされますので、バックティックは必要ありません。
render: shell
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feature request
description: 機能要望を出す
title: "[FR]: "
labels: [ "enhancement", "triage me" ]
body:
- type: markdown
attributes:
value: |
この度は機能要望にご協力いただき、ありがとうございます。
- type: checkboxes
attributes:
label: 既存の課題がありませんか?
description: この機能要求に対してすでに課題が存在するかどうか、検索してください。
options:
- label: 既存の課題を検索してみました
required: true

- type: textarea
id: describe-problem
attributes:
label: 問題を説明する
description: 機能要望は問題に関連するものですか?説明してください。
placeholder: いつも悔しい思いをするのは
validations:
required: true

- type: textarea
id: solution
attributes:
label: 解決策を説明する
description: ご希望の解決策をご記入ください。起こしてほしいことを明確に、簡潔に説明してください。
validations:
required: true

- type: textarea
id: context
attributes:
label: 追加コンテキスト
description: 機能リクエストに関する他のコンテキストやスクリーンショットをここに追加してください。
validations:
required: false
53 changes: 53 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: daily
open-pull-requests-limit: 20
reviewers:
- 'albelium/web-application-template-maintainers'
labels:
- 'dependencies'
- 'ignore-for-release'
groups:
storybook:
patterns:
- "storybook"
- "@storybook/*"
next:
patterns:
- "next"
eslint:
patterns:
- "eslint"
- "eslint-*"
typescript-eslint:
patterns:
- "@typescript-eslint/*"
react:
patterns:
- "react"
- "react-dom"
- "@types/react"
- "@types/react-dom"
radix:
patterns:
- "@radix-ui/*"
pandacss:
patterns:
- "@pandacss/*"

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: weekly
reviewers:
- 'albelium/web-application-template-maintainers'
labels:
- 'dependencies'
49 changes: 49 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 1

labels:
# Type labels
- label: "@type/feature"
title: '^(:sparkles:|:tada:|:art:).*'
- label: "@type/improve"
title: '^(:\+1:|:recycle:|:rocket:).*'
- label: "@type/fix"
title: '^:bug:.*'
- label: "@type/docs"
title: '^:books:.*'
files:
- "apps/docs/.+"
- "docs/.+"
- label: "@type/build"
title: '^(:wrench:|:up:).*'
files:
- "**/package.json"
- ".tool-versions"
- "tools/.+"
- label: "@type/ci"
title: '^:green_heart:.*'
files:
- '\.github/.+'

# Package labels
- label: "@apps/frontend"
files:
- "apps/web/.+"
- "apps/frontend/.+"
- label: "@apps/backend"
files:
- "apps/backend/.+"
- label: "@packages/eslint-config"
files:
- "packages/eslint-config-custom/.+"
- label: "@packages/prettier-config"
files:
- "packages/prettier-config/.+"
- label: "@packages/tsconfig"
files:
- "packages/tsconfig/.+"
- label: "@packages/ui"
files:
- "packages/ui/.+"

# Feature labels
# TBD
45 changes: 45 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Issue

- close #ISSUE_NUMBER 🦕

## 概要

<!-- 概要をここに記入してください。 -->

## レビュー観点

<!-- レビュアに確認してほしい事柄を記載してください -->
<!-- 特に、本 PR にてレビュー対象外の内容があれば合わせて記載してください -->

<!--
(例)
- warnings が出力されないこと
- デザインだけ組み込んだので、仕様についてはレビュー対象外として欲しい
- このコミット xxxxxxx ( commit hash ) を主にレビューして欲しい
-->

## レビューレベル

- [ ] Lv0: まったく見ないで Approve する
- [ ] Lv1: ぱっとみて違和感がないかチェックして Approve する
- [ ] Lv2: 仕様レベルまで理解して、仕様通りに動くかある程度検証して Approve する
- [ ] Lv3: 実際に環境で動作確認したうえで Approve する

## レビュー優先度

- [ ] すぐに見てもらいたい ( hotfix など ) 🚀
- [ ] 今日中に見てもらいたい 🚗
- [ ] 今日〜明日中で見てもらいたい 🚶
- [ ] 数日以内で見てもらいたい 🐢

## 参考リンク

<!-- 参考文献などがあればここに記入してください。 -->

-

## スクリーンショット

| Before | After |
| :------------------------: | :------------------------: |
| <img src="" width="300" /> | <img src="" width="300" /> |
13 changes: 13 additions & 0 deletions .github/workflows/assign-author-to-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Assign author to Pull request"

on:
pull_request:
types: [ opened ]

jobs:
assignAuthor:
name: Assign author to PR
runs-on: ubuntu-22.04
steps:
- name: Assign Author
uses: technote-space/[email protected]
58 changes: 58 additions & 0 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "Auto Format"

on:
workflow_dispatch:
schedule:
# 開発の動きがない時間を想定し、毎日午前 6 時に実施
- cron: '0 21 * * *'

jobs:
format:
runs-on: ubuntu-22.04

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/[email protected]

- name: Create GitHub App Token
uses: actions/[email protected]
id: app-token
with:
app-id: ${{ vars.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version-file: 'package.json'

- name: Setup pnpm
uses: pnpm/[email protected]

- name: Clean install using pnpm
shell: bash
run: pnpm install --no-frozen-lockfile

- name: Run prettier
shell: bash
run: pnpm run format

- name: Create pull request
uses: peter-evans/[email protected]
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: ':recycle: Auto format'
committer: GitHub <[email protected]>
author: albelium-bot[bot] <154823176+albelium-bot[bot]@users.noreply.github.com>
signoff: false
title: ':recycle: Auto Format'
body: 'This was automatically generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})'
labels: |
ignore-for-release
base: 'main'
branch: 'workflow/auto-format'
branch-suffix: 'short-commit-hash'
Loading

0 comments on commit c3ffddc

Please sign in to comment.