feat: change push behavior from opt-out to opt-in with GitHub token auth

## CHANGES

- Change `NoPush` config field to `Push` boolean
- Update CLI flag from `--no-push` to `--push`
- Add GitHub token authentication for push operations
- Import `os` and HTTP transport packages
- Reverse push logic to require explicit enable
- Update documentation for new push behavior
- Add automatic GitHub repository detection for auth
This commit is contained in:
Kayvan Sylvan
2025-07-20 20:33:23 -07:00
parent e56ecfb7ae
commit b0d096d0ea
6 changed files with 59 additions and 15 deletions

View File

@@ -89,7 +89,7 @@ graph TD
4. **Auto-commit**:
- Commit file with message: `chore: incoming 1672 changelog entry`
- Push to current branch
- Optionally push to current branch (use `--push` flag)
(The PR is now completely ready to be merged with integrated CHANGELOG entry updating)
@@ -274,8 +274,11 @@ Update `.github/workflows/update-version-and-create-tag.yml`.
1. **During Development**:
```bash
# After PR is ready for review
generate_changelog --incoming-pr 1672
# After PR is ready for review (commit locally only)
generate_changelog --incoming-pr 1672 --ai-summarize
# Or to automatically push to remote
generate_changelog --incoming-pr 1672 --ai-summarize --push
```
2. **Validation**: