Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e7192de
delelete: draft
a5chin Feb 5, 2026
e68077b
fix: deploy flow
a5chin Feb 5, 2026
a1ab857
fix: name
a5chin Feb 5, 2026
b10432e
fix: GitHub Pages
a5chin Feb 5, 2026
545d8ea
add: types
a5chin Feb 5, 2026
478eeea
chore
a5chin Feb 5, 2026
4c26c39
chore
a5chin Feb 5, 2026
6dd2554
fix: GitHub Pages
a5chin Feb 5, 2026
4f90bb1
chore
a5chin Feb 5, 2026
1f39693
fix: chore
a5chin Feb 5, 2026
e0b3b37
fix: chore
a5chin Feb 5, 2026
9aaf9db
fix: chore
a5chin Feb 5, 2026
a7d026e
fix: chore
a5chin Feb 5, 2026
f5a0e2a
fix: chore
a5chin Feb 5, 2026
35e3da9
fix: chore
a5chin Feb 5, 2026
5e6d04f
fix: chore
a5chin Feb 5, 2026
33a9dcd
fix: chore
a5chin Feb 5, 2026
d8b9f41
fix: chore
a5chin Feb 5, 2026
d764505
fix: chore
a5chin Feb 5, 2026
56a2b75
Merge pull request #171 from a5chin/fix/deploy
a5chin Feb 6, 2026
e0d10cf
fix: release
a5chin Feb 6, 2026
dc4f744
Merge pull request #172 from a5chin/fix/release
a5chin Feb 6, 2026
216116f
fix: test
a5chin Feb 6, 2026
8046618
Merge pull request #173 from a5chin/fix/test
a5chin Feb 6, 2026
c4036de
add: zed
a5chin Feb 8, 2026
dd795de
add: external settings for zed
a5chin Feb 8, 2026
f033859
Revert "add: external settings for zed"
a5chin Feb 8, 2026
21b0d4a
Revert "add: zed"
a5chin Feb 8, 2026
f828209
add: zed settings
a5chin Feb 8, 2026
dcb14f3
add: external settings for zed
a5chin Feb 8, 2026
2bd1ef1
Merge pull request #174 from a5chin/feature/zed
a5chin Feb 9, 2026
2f76d9a
chore(deps): lock file maintenance
renovate[bot] Feb 9, 2026
9ba7ec8
add: checkout in approve
a5chin Feb 9, 2026
68ec8bc
Merge pull request #175 from a5chin/renovate/lock-file-maintenance
a5chin Feb 10, 2026
ac2efae
build(deps): bump cryptography in the uv group across 1 directory
dependabot[bot] Feb 11, 2026
a094c37
fix: permission for approve
a5chin Feb 12, 2026
fd43599
Merge pull request #177 from a5chin/fix/approver
a5chin Feb 12, 2026
7659398
fix: permission for approve
a5chin Feb 12, 2026
95ff262
Merge pull request #176 from a5chin/dependabot/uv/uv-d1091effbf
a5chin Feb 13, 2026
46b4233
add: permission for workflow
a5chin Feb 16, 2026
dc6862e
Merge pull request #178 from a5chin/fix/permission
a5chin Feb 18, 2026
24241e3
chore(github-actions): bump qodo-ai/pr-agent from 0.31 to 0.32
dependabot[bot] Feb 23, 2026
78a3f07
Merge pull request #180 from a5chin/dependabot/github_actions/qodo-ai…
a5chin Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/environments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Develop": {
"deployment_branch_policy": {
"protected_branches": false,
"custom_branch_policies": true
},
"reviewers": [],
"wait_timer": 0
},
"Production": {
"deployment_branch_policy": {
"protected_branches": false,
"custom_branch_policies": true
},
"reviewers": [],
"wait_timer": 0
},
"github-pages": {
"deployment_branch_policy": null,
"reviewers": [],
"wait_timer": 0
}
}
15 changes: 15 additions & 0 deletions .github/protection.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"develop": {
"allow_deletions": false,
"allow_force_pushes": false,
"enforce_admins": false,
"required_pull_request_reviews": {
"dismiss_stale_reviews": false,
"require_code_owner_reviews": false,
"required_approving_review_count": 1
},
"required_status_checks": {
"contexts": [],
"strict": true
},
"restrictions": null
},
"main": {
"allow_deletions": false,
"allow_force_pushes": false,
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ on:
types:
- opened

permissions:
pull-requests: write

jobs:
approve:
runs-on: ubuntu-latest

if: endsWith(github.actor, '[bot]')

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Approve
run: gh pr review ${{ github.event.number }} --approve
env:
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/draft.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
deploy:
runs-on: ubuntu-latest

environment: github-pages

steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: PR Agent Action Step
uses: qodo-ai/pr-agent@v0.31
uses: qodo-ai/pr-agent@v0.32
env:
CONFIG.CUSTOM_MODEL_MAX_TOKENS: 64000
CONFIG.MODEL: "gemini/gemini-2.5-flash"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish App to GHCR
on:
push:
branches:
- main
- develop
paths:
- ".github/workflows/publish-app.yml"
- ".python-version"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Devcontainer to GHCR
on:
push:
branches:
- main
- develop
paths:
- ".devcontainer/Dockerfile"
- ".github/workflows/publish-devcontainer.yml"
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,55 @@
name: Release

on:
pull_request:
push:
branches:
- develop
- main
types:
- closed

permissions:
contents: write
pull-requests: read

jobs:
publish:
if: github.event.pull_request.merged == true && contains(github.head_ref, 'release/')
develop:
if: github.ref_name == 'develop'

runs-on: ubuntu-latest

environment: Develop

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Update Draft Release
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter.yml
disable-autolabeler: true
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

production:
if: github.ref_name == 'main'

runs-on: ubuntu-latest

environment: Production

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Get PR Title for Version
id: pr
run: |
PR_TITLE=$(gh pr list --search "${{ github.sha }}" --state merged --json title --jq '.[0].title')
echo "TITLE=$PR_TITLE" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Release
uses: release-drafter/release-drafter@v6
with:
Expand All @@ -31,5 +60,5 @@ jobs:
tag: ${{ env.VERSION }}
version: ${{ env.VERSION }}
env:
VERSION: ${{ steps.pr.outputs.TITLE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.event.pull_request.title }}
98 changes: 88 additions & 10 deletions .github/workflows/setting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
pull_request:
paths:
- .github/workflows/setting.yml
- .github/environments.json
- .github/protection.json
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
delete-branch:
branch:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,10 +24,65 @@ jobs:

- name: Enable auto-delete head branches
run: |
gh repo edit ${{ github.repository }} --delete-branch-on-merge
gh repo edit ${{ github.repository }} \
--default-branch develop \
--delete-branch-on-merge
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

environments:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- environment: Develop
branch: develop
- environment: Production
branch: main
- environment: github-pages
branch: gh-pages

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_KEY }}

- name: Configure Environment
run: |
if [ ! -f ${{ env.CONFIG_FILE }} ]; then
echo "Error: ${{ env.CONFIG_FILE }} not found!"
exit 1
fi

jq -c ".\"${{ env.ENVIRONMENT_NAME }}\"" ${{ env.CONFIG_FILE }} | gh api -X PUT "${{ env.ENDPOINT }}/${{ env.ENVIRONMENT_NAME }}" --input -

CUSTOM_BRANCH_POLICIES=$(jq -r ".\"${{ env.ENVIRONMENT_NAME }}\".deployment_branch_policy.custom_branch_policies" ${{ env.CONFIG_FILE }})

if [ "$CUSTOM_BRANCH_POLICIES" != true ]; then
IDS=$(gh api "${{ env.ENDPOINT }}/${{ env.ENVIRONMENT_NAME }}/deployment-branch-policies" --jq '.branch_policies[].id' || true)
for ID in $IDS; do
gh api -X DELETE "${{ env.ENDPOINT }}/${{ env.ENVIRONMENT_NAME }}/deployment-branch-policies/$ID" --silent || true
done
exit 0
fi

gh api -X POST "${{ env.ENDPOINT }}/${{ env.ENVIRONMENT_NAME }}/deployment-branch-policies" \
-f "name=${{ env.BRANCH_NAME }}" \
-f "type=branch"
env:
CONFIG_FILE: .github/environments.json
BRANCH_NAME: ${{ matrix.branch }}
ENDPOINT: repos/${{ github.repository }}/environments
ENVIRONMENT_NAME: ${{ matrix.environment }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

pages:
runs-on: ubuntu-latest

Expand All @@ -40,18 +96,39 @@ jobs:

- name: Set GitHub Pages Source
run: |
gh api -X POST "repos/${{ github.repository }}/pages" \
gh api -X POST ${{ env.ENDPOINT }} \
-f "source[branch]=${{ env.BRANCH }}" \
-f "source[path]=${{ env.TARGET_PATH }}" --silent \
|| \
gh api -X PUT "repos/${{ github.repository }}/pages" \
gh api -X PUT ${{ env.ENDPOINT }} \
-f "source[branch]=${{ env.BRANCH }}" \
-f "source[path]=${{ env.TARGET_PATH }}"
env:
ENDPOINT: repos/${{ github.repository }}/pages
BRANCH: gh-pages
TARGET_PATH: /
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

permission:
runs-on: ubuntu-latest

steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_KEY }}

- name: Configure Actions Workflow Permissions
run: |
gh api -X PUT "${{ env.ENDPOINT }}" \
-f "default_workflow_permissions=write" \
-F "can_approve_pull_request_reviews=true"
env:
ENDPOINT: repos/${{ github.repository }}/actions/permissions/workflow
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

protection:
runs-on: ubuntu-latest

Expand All @@ -68,21 +145,22 @@ jobs:

- name: Apply Branch Protection Rules
run: |
if [ ! -f "$CONFIG_FILE" ]; then
echo "Error: $CONFIG_FILE not found!"
if [ ! -f ${{ env.CONFIG_FILE }} ]; then
echo "Error: ${{ env.CONFIG_FILE }} not found!"
exit 1
fi

BRANCHES=$(jq -r 'keys[]' "$CONFIG_FILE")
BRANCHES=$(jq -r 'keys[]' ${{ env.CONFIG_FILE }})

for BRANCH in $BRANCHES; do
if ! gh api "repos/${{ github.repository }}/branches/$BRANCH" --silent >/dev/null 2>&1; then
echo "Warning: Branch '$BRANCH' does not exist in this repository. Skipping..."
if ! gh api "${{ env.ENDPOINT }}/$BRANCH" --silent >/dev/null 2>&1; then
echo "Warning: Branch $BRANCH does not exist in this repository. Skipping..."
continue
fi

jq -c ".\"$BRANCH\"" "$CONFIG_FILE" | gh api -X PUT "repos/${{ github.repository }}/branches/$BRANCH/protection" --input -
jq -c ".\"$BRANCH\"" ${{ env.CONFIG_FILE }} | gh api -X PUT "${{ env.ENDPOINT }}/$BRANCH/protection" --input -
done
env:
CONFIG_FILE: .github/protection.json
ENDPOINT: repos/${{ github.repository }}/branches
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- "uv.lock"
push:
branches:
- develop
- main
paths:
- ".github/actions/setup-python-with-uv/action.yml"
Expand Down
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"overrides": [
{
"files": ["*.json", "*.json5", "*.jsonc"],
"options": {
"parser": "json",
"trailingComma": "none"
}
}
]
}
Loading
Loading