Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Claude Code Weekly
name: Generate Changelog

on:
schedule:
Expand All @@ -7,8 +7,8 @@ on:
workflow_dispatch: # Allow manual triggering

jobs:
run-claude-code:
name: Run Claude Code
generate-changelog:
name: Generate Changelog
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -39,16 +39,16 @@ jobs:

- name: Create branch
run: |
BRANCH_NAME="claude-code/weekly-$(date +%Y-%m-%d)"
BRANCH_NAME="changelog/$(date +%Y-%m-%d)"
git checkout -b "$BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV

- name: Run Claude Code with custom prompt
- name: Generate changelog with Claude Code
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
claude -p "$(cat .github/prompts/weekly-automation.md)" --allowedTools "Bash(git*)" "Bash(gh*)" "Bash(date*)" "Bash(ls*)" "Read" "Write" "Edit" "Glob" "Grep"
claude -p "$(cat .github/prompts/generate-changelog.md)" --allowedTools "Bash(git*)" "Bash(gh*)" "Bash(date*)" "Bash(ls*)" "Read" "Write" "Edit" "Glob" "Grep"

- name: Check for changes
id: check-changes
Expand All @@ -59,13 +59,17 @@ jobs:
echo "has_changes=false" >> $GITHUB_OUTPUT
fi

- name: Run lint fix
if: steps.check-changes.outputs.has_changes == 'true'
run: bun run lint:fix

- name: Commit and push changes
if: steps.check-changes.outputs.has_changes == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "chore: weekly Claude Code automation $(date +%Y-%m-%d)"
git commit -m "docs: generate weekly changelog $(date +%Y-%m-%d)"
git push origin "$BRANCH_NAME"

- name: Create Pull Request
Expand All @@ -75,12 +79,12 @@ jobs:
run: |
CURRENT_DATE=$(date +%Y-%m-%d)
gh pr create \
--title "chore: Weekly changelog - $CURRENT_DATE" \
--title "docs: weekly changelog - $CURRENT_DATE" \
--body "## Summary
This PR was automatically generated by Claude Code running the weekly changelog automation.
This PR was automatically generated by Claude Code to create the weekly changelog.

## Details
- **Prompt file**: \`.github/prompts/weekly-automation.md\`
- **Prompt file**: \`.github/prompts/generate-changelog.md\`
- **Generated on**: $CURRENT_DATE

## Review Checklist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function FileTreeItem({
"flex items-center gap-1 px-1 cursor-pointer select-none",
"hover:bg-accent/50 transition-colors",
item.isSelected() && "bg-accent",
)}
)}
onClick={handleClick}
onDoubleClick={handleDoubleClick}
onKeyDown={handleKeyDown}
Expand Down