Skip to content

Commit 2452210

Browse files
committed
target_commitish fails when set to the tag name
Octokit::UnprocessableEntity: POST https://api.github.com/repos/oneclick/rubyinstaller2/releases: 422 - Validation Failed (Octokit::UnprocessableEntity) Error summary: resource: Release code: invalid field: target_commitish // See: https://docs.github.com/rest/releases/releases#create-a-release
1 parent 25bbbbc commit 2452210

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/ruby_installer/build/release.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def upload_to_github(tag:, repo:, token: nil, files:)
9797
release = client.update_release(release.url, name: headline, body: body)
9898
else
9999
release = client.create_release(repo, tag,
100-
target_commitish: tag,
101100
name: headline,
102101
body: body,
103102
draft: true,

0 commit comments

Comments
 (0)