🆕 New in this release
✨ Features
• Optional Pull Request Support
• Added an open_pr input to allow changes to be pushed via a pull request instead of directly committing to the current branch.
• When enabled, the action:
• Creates a new branch
• Commits lint fixes
• Pushes the branch
• Opens a pull request using the GitHub CLI (gh)
⚙️ Improved Git Commit Handling
• Skips commit and push if no changes were made (to avoid empty commits).
• Uses the configured author and committer fields for git identity.
🧹 Refined Defaults
• commit_message now defaults to:
'Chore: Fix Nix code with Statix'
📝 Inputs Summary
| Input | Description | Default |
|---|---|---|
| flags | Command-line flags to Statix | fix |
| author | Author name and email | ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |
| committer | Committer name and email | GitHub noreply@github.com |
| directory | Directory to scan | . |
| commit_message | Git commit message | Chore: Fix Nix code with Statix |
| open_pr | Whether to create a pull request instead | false |
Let me know if you’d like a version of this for CHANGELOG.md, GitHub Releases, or as inline comments in a pull request.