-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
2,648 additions
and
2,612 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
version: 2 | ||
updates: | ||
# GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: "daily" | ||
interval: daily | ||
commit-message: | ||
prefix: ⬆ | ||
# Python | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: "daily" | ||
interval: daily | ||
commit-message: | ||
prefix: ⬆ |
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 |
---|---|---|
@@ -1,12 +1,25 @@ | ||
docs: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.md' | ||
- all: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.md' | ||
- all-globs-to-all-files: | ||
- '!frontend/**' | ||
- '!backend/**' | ||
- '!.github/**' | ||
- '!scripts/**' | ||
- '!.gitignore' | ||
- '!.pre-commit-config.yaml' | ||
|
||
internal: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/**/* | ||
- scripts/**/* | ||
- .gitignore | ||
- .pre-commit-config.yaml | ||
- all: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/** | ||
- scripts/** | ||
- .gitignore | ||
- .pre-commit-config.yaml | ||
- all-globs-to-all-files: | ||
- '!./**/*.md' | ||
- '!frontend/**' | ||
- '!backend/**' |
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,57 @@ | ||
name: Generate Client | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
generate-client: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
# For PRs from forks | ||
- uses: actions/checkout@v4 | ||
# For PRs from the same repo | ||
- uses: actions/checkout@v4 | ||
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.FULL_STACK_FASTAPI_TEMPLATE_REPO_TOKEN }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.15" | ||
enable-cache: true | ||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: frontend | ||
- run: uv sync | ||
working-directory: backend | ||
- run: uv run bash scripts/generate-client.sh | ||
env: | ||
VIRTUAL_ENV: backend/.venv | ||
- name: Add changes to git | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "github-actions" | ||
git add frontend/src/client | ||
# Same repo PRs | ||
- name: Push changes | ||
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) | ||
run: | | ||
git diff --staged --quiet || git commit -m "✨ Autogenerate frontend client" | ||
git push | ||
# Fork PRs | ||
- name: Check changes | ||
if: ( github.event_name == 'pull_request' && github.secret_source != 'Actions' ) | ||
run: | | ||
git diff --staged --quiet || (echo "Changes detected in generated client, run scripts/generate-client.sh and commit the changes" && exit 1) |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Issue Manager | |
|
||
on: | ||
schedule: | ||
- cron: "13 4 * * *" | ||
- cron: "21 17 * * *" | ||
issue_comment: | ||
types: | ||
- created | ||
|
@@ -16,6 +16,7 @@ on: | |
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
issue-manager: | ||
|
@@ -26,7 +27,7 @@ jobs: | |
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- uses: tiangolo/[email protected].0 | ||
- uses: tiangolo/[email protected].1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: > | ||
|
@@ -35,8 +36,12 @@ jobs: | |
"delay": 864000, | ||
"message": "Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs." | ||
}, | ||
"changes-requested": { | ||
"waiting": { | ||
"delay": 2628000, | ||
"message": "As this PR had requested changes to be applied but has been inactive for a while, it's now going to be closed. But if there's anyone interested, feel free to create a new PR." | ||
"message": "As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR." | ||
}, | ||
"invalid": { | ||
"delay": 0, | ||
"message": "This was marked as invalid and will be closed now. If this is an error, please provide additional details." | ||
} | ||
} |
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 |
---|---|---|
|
@@ -12,9 +12,9 @@ on: | |
description: PR number | ||
required: true | ||
debug_enabled: | ||
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" | ||
required: false | ||
default: 'false' | ||
default: "false" | ||
|
||
jobs: | ||
latest-changes: | ||
|
@@ -30,12 +30,11 @@ jobs: | |
with: | ||
# To allow latest-changes to commit to the main branch | ||
token: ${{ secrets.LATEST_CHANGES }} | ||
- uses: docker://tiangolo/latest-changes:0.3.0 | ||
# - uses: tiangolo/latest-changes@main | ||
- uses: tiangolo/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
latest_changes_file: ./release-notes.md | ||
latest_changes_header: '## Latest Changes' | ||
end_regex: '^## ' | ||
latest_changes_header: "## Latest Changes" | ||
end_regex: "^## " | ||
debug_logs: true | ||
label_header_prefix: '### ' | ||
label_header_prefix: "### " |
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: Lint Backend | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
lint-backend: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.15" | ||
enable-cache: true | ||
- run: uv run bash scripts/lint.sh | ||
working-directory: backend |
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.