-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from ai16z/main
merge from main
- Loading branch information
Showing
143 changed files
with
3,155 additions
and
5,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: PR Title Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize] | ||
|
||
jobs: | ||
check-pr-title: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate PR title | ||
id: validate | ||
run: | | ||
PR_TITLE=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH") | ||
echo "PR Title: $PR_TITLE" | ||
if [[ ! "$PR_TITLE" =~ ^(feat|fix|docs|style|refactor|test|chore):\ .+ ]]; then | ||
echo "PR title does not match the required pattern." | ||
exit 1 | ||
fi | ||
- name: Set status | ||
if: failure() | ||
run: | | ||
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat: add new feature')." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM node:23.1.0 | ||
# Install pnpm globally | ||
RUN npm install -g pnpm@9.4.0 | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Add configuration files and install dependencies | ||
ADD pnpm-workspace.yaml /app/pnpm-workspace.yaml | ||
ADD package.json /app/package.json | ||
ADD .npmrc /app/.npmrc | ||
ADD tsconfig.json /app/tsconfig.json | ||
ADD pnpm-lock.yaml /app/pnpm-lock.yaml | ||
RUN pnpm i | ||
|
||
# Add the documentation | ||
ADD docs /app/docs | ||
RUN pnpm i | ||
|
||
# Add the rest of the application code | ||
ADD packages /app/packages | ||
RUN pnpm i | ||
|
||
# Add the environment variables | ||
ADD scripts /app/scripts | ||
ADD characters /app/characters | ||
ADD .env /app/.env | ||
|
||
# Command to run the container | ||
CMD ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.