Skip to content

Commit

Permalink
Update @s0/ghcommit
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Aug 25, 2024
1 parent 1d9e84e commit a369cc5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-poems-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": patch
---

Update to latest version of ghcommit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@changesets/read": "^0.5.3",
"@manypkg/get-packages": "^1.1.3",
"@octokit/plugin-throttling": "^5.2.1",
"@s0/ghcommit": "^1.1.0",
"@s0/ghcommit": "^1.2.0",
"fs-extra": "^8.1.0",
"mdast-util-to-string": "^1.0.6",
"remark-parse": "^7.0.1",
Expand Down
9 changes: 2 additions & 7 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,9 @@ export async function runVersion({

await commitChangesFromRepo({
octokit,
owner: github.context.repo.owner,
repository: github.context.repo.repo,
...github.context.repo,
branch: versionBranch,
// TODO: switch this to use direct string input when supported
message: {
headline: finalCommitMessage.split("\n", 2)[0].trim(),
body: finalCommitMessage.split("\n", 2)[1]?.trim(),
},
message: finalCommitMessage,
base: {
commit: github.context.sha,
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1618,10 +1618,10 @@
dependencies:
"@octokit/openapi-types" "^17.2.0"

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

Expand Down

0 comments on commit a369cc5

Please sign in to comment.