Skip to content

fix(action): support auto-commits from pull requests - #5

Open
emrocode wants to merge 6 commits into
mainfrom
fix/pr-auto-commit
Open

emrocode wants to merge 6 commits into
mainfrom
fix/pr-auto-commit

Conversation

@emrocode

Copy link
Copy Markdown
Owner
  • chore(deps): bump simple-icons to 16.37.0
  • fix(commit): skip auto-commit when HEAD is detached
  • refactor(run): validate integer inputs with warnings
  • ci: check out PR branches for auto-commits
  • chore(build): update production bundle
  • docs: simplify README emphasis

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Approval should be deferred because the workflow’s PR-branch writes and PR-head execution depend on event, token, fork, branch-protection, and concurrency behavior that requires validation in live GitHub Actions runs.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This pull request enables auto-commits to same-repository pull-request branches, safely skips commits from detached checkouts, improves numeric input validation, and refreshes dependencies and documentation.

Changes:

  • Checks out same-repository pull-request branches for auto-commits while preserving safe behavior for fork pull requests.
  • Detects detached HEAD states before committing and pushing generated changes.
  • Validates icon_size and per_row inputs with warnings and fallback defaults.
  • Updates Simple Icons, transitive dependencies, lockfiles, and README formatting.
File Description
src/​utils/​commit.ts Detects detached HEAD states and derives the push target from the checked-out branch.
src/​core/​run.ts Adds warning-based validation and fallback handling for positive integer inputs.
README.md Simplifies emphasis formatting in the usage documentation.
pnpm-lock.yaml Refreshes the dependency lockfile and transitive package resolutions.
package.json Updates the Simple Icons dependency.
.github/​workflows/​ci.yml Adjusts checkout behavior to support auto-commits from same-repository pull requests while handling fork pull requests safely.

Review effort: Lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants