Releases: suzuki-shunsuke/pinact
v3.4.3
Pull Requests | Issues | v3.4.2...v3.4.3
🐛 Bug Fixes
#1201 Skip prereleases when current version is stable @mceachen
#1213 Fixed bugs of #1201
v3.4.2
Pull Requests | Issues | v3.4.1...v3.4.2
Fixes
#1103 Homebrew Cask: Restrict quarantine removal to macOS only
v3.4.1
Pull Requests | Issues | v3.4.0...v3.4.1
🐛 Bug Fixes
#1083 Fix the error message if it fails to handle a line
v3.4.0
Pull Requests | Issues | v3.3.2...v3.4.0
Features
#1082 Support fixing or excluding only specific actions
You can now fix only specific actions using the -include (-i) <regular expression> option.
You can also exclude only specific actions using the -exclude (-e) <regular expression> option.
e.g.
pinact run -i "actions/.*" -i "^aquaproj/aqua-installer$"pinact run -e "actions/.*" -e "^aquaproj/aqua-installer$"v3.3.2
Pull Requests | Issues | v3.3.1...v3.3.2
#1048 Fix Homebrew tap to remove the quarantine bit from the binary on a post install hook
v3.3.1
Pull Requests | Issues | v3.3.0...v3.3.1
#1043 Update Go to v1.24.5
#1043 Release SBOM
#1043 Add license files of Go and Go Modules to released assets
v3.3.1-0
v3.3.0
Pull Requests | Issues | v3.2.0...v3.3.0
Features
#1007 Support creating pull request reviews
#1007 Support outputting diff
#1007 Support fixing code while using -check option
Support creating pull request reviews
This pull request enables pinact to create reviews by GitHub API.
A GitHub access token with pull_requests:write permission is required.
pinact run \
-review \
-repo-owner <repository owner> \
-repo-name <repository name> \
-pr <pull request number> \
-sha <commit SHA to be reviewed>If pinact is run via GitHub Actions pull_request event, options (-repo-owner, -repo-name, -pr, -sha) are auto-completed.
Warning
GitHub can't create pull request reviews on files not changed by the pull request.
When pinact fails to create reviews, pinact outputs warning and creates GitHub Actions error messages to log instead.
You can ignore the warning like this:
WARN[0004] create a review comment error="create a review comment: POST https://api.github.com/repos/szksh-lab-2/test-github-action/pulls/317/comments: 422 Validation Failed [{Resource:PullRequestReviewComment Field:pull_request_review_thread.path Code:invalid Message:} {Resource:PullRequestReviewComment Field:pull_request_review_thread.diff_hunk Code:missing_field Message:}]" line=" - uses: suzuki-shunsuke/watch-star-action@feat/first-pr" line_number=14 pinact_version=3.3.0-5 program=pinact review_pr_number=317 review_repo_name=test-github-action review_repo_owner=szksh-lab-2 review_sha=92f0b04efdc10acb793e78bdd1f70958dd3fd9a3 workflow_file=.github/workflows/watch.yaml
Support outputting diff
Using -diff option, pinact can output diff.
pinact run -diffERROR action isn't pinned
.github/workflows/test.yaml:14
- - uses: aquaproj/[email protected]
+ - uses: aquaproj/aqua-installer@9ebf656952a20c45a5d66606f083ff34f58b8ce0 # v4.0.0
Fix code by -fix option
If -check or -diff option is set, pinact doesn't fix code by default.
By setting -fix option, you can fix code.
pinact run -check -fixpinact run -diff -fix📝 -diff, -check, -fix options
The behaviour of pinact run command is changed by command line options -diff, -check, and -fix.
This is a table how the behaviour is changed by these options.
| options | Fix files | Exit with code 1 if actions aren't pinned | Output changes |
|---|---|---|---|
| No option | o | ||
| -check | o | ||
| -diff | o | ||
| -check -diff | o | o | |
| -check -fix | o | o | o |
| -fix -diff | o | o |

