Skip to content

Commit 50b4be2

Browse files
committed
Update @s0/ghcommit
1 parent a8a756b commit 50b4be2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.changeset/ninety-poems-explode.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@changesets/action": patch
3+
---
4+
5+
Update to latest version of ghcommit

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@changesets/read": "^0.5.3",
4242
"@manypkg/get-packages": "^1.1.3",
4343
"@octokit/plugin-throttling": "^5.2.1",
44-
"@s0/ghcommit": "^1.1.0",
44+
"@s0/ghcommit": "^1.2.0",
4545
"fs-extra": "^8.1.0",
4646
"mdast-util-to-string": "^1.0.6",
4747
"remark-parse": "^7.0.1",

src/run.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,9 @@ export async function runVersion({
391391

392392
await commitChangesFromRepo({
393393
octokit,
394-
owner: github.context.repo.owner,
395-
repository: github.context.repo.repo,
394+
...github.context.repo,
396395
branch: versionBranch,
397-
// TODO: switch this to use direct string input when supported
398-
message: {
399-
headline: finalCommitMessage.split("\n", 2)[0].trim(),
400-
body: finalCommitMessage.split("\n", 2)[1]?.trim(),
401-
},
396+
message: finalCommitMessage,
402397
base: {
403398
commit: github.context.sha,
404399
},

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1618,10 +1618,10 @@
16181618
dependencies:
16191619
"@octokit/openapi-types" "^17.2.0"
16201620

1621-
"@s0/ghcommit@^1.1.0":
1622-
version "1.1.0"
1623-
resolved "https://registry.yarnpkg.com/@s0/ghcommit/-/ghcommit-1.1.0.tgz#789858feb3a9e9a799a6ce7abada988cd925c21f"
1624-
integrity sha512-1jEUzrfa9QvEdCaFicv2oc5ep9zFG4HE60vU48dIp+W1JzeOmPHOxNt9y5rE5TvXzTGAdLpoCvPnRrR6jCwFyw==
1621+
"@s0/ghcommit@^1.2.0":
1622+
version "1.2.0"
1623+
resolved "https://registry.yarnpkg.com/@s0/ghcommit/-/ghcommit-1.2.0.tgz#27b7e474653f98fb8126e249db929180b025082c"
1624+
integrity sha512-v3HlIX/OYWG32mT97JLPJQ2iCFI7hWtC2OONFoEAeiySAnbLhiToC1xlbT7fdlUcXTT2FktEJosfNbEbS9LniQ==
16251625
dependencies:
16261626
isomorphic-git "^1.27.1"
16271627

0 commit comments

Comments
 (0)