Skip to content

Releases: suzuki-shunsuke/pinact

v3.4.3

15 Nov 03:48
Immutable release. Only release title and notes can be modified.
v3.4.3
6abf461

Choose a tag to compare

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

18 Aug 06:25
v3.4.2
e4d7338

Choose a tag to compare

Pull Requests | Issues | v3.4.1...v3.4.2

Fixes

#1103 Homebrew Cask: Restrict quarantine removal to macOS only

v3.4.1

12 Aug 23:58
v3.4.1
53d6307

Choose a tag to compare

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

12 Aug 23:10
v3.4.0
2fa36d1

Choose a tag to compare

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

17 Jul 00:51
v3.3.2
bcce145

Choose a tag to compare

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

15 Jul 04:33
v3.3.1
5b7a8a3

Choose a tag to compare

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

15 Jul 04:26
v3.3.1-0
6031c15

Choose a tag to compare

v3.3.1-0 Pre-release
Pre-release

v3.3.0

14 Jun 09:35
v3.3.0
fc5a7ac

Choose a tag to compare

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

review

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

error-message-log

Support outputting diff

Using -diff option, pinact can output diff.

pinact run -diff
ERROR action isn't pinned
.github/workflows/test.yaml:14
-       - uses: aquaproj/[email protected]
+       - uses: aquaproj/aqua-installer@9ebf656952a20c45a5d66606f083ff34f58b8ce0 # v4.0.0
image

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 -fix
pinact 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

v3.3.0-5

14 Jun 09:17
v3.3.0-5
4fbb4e3

Choose a tag to compare

v3.3.0-5 Pre-release
Pre-release

v3.3.0-4

14 Jun 08:29
v3.3.0-4
9a46a48

Choose a tag to compare

v3.3.0-4 Pre-release
Pre-release