-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use commit author for changelog attribution
- Loading branch information
Showing
3 changed files
with
321 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/dist/changesets-get-github-info.cjs.js b/dist/changesets-get-github-info.cjs.js | ||
index a74df59f8a5988f458a3476087399f5e6dfe4818..ce5e60ef9916eb0cb76ab1e9dd422abcad752bf6 100644 | ||
--- a/dist/changesets-get-github-info.cjs.js | ||
+++ b/dist/changesets-get-github-info.cjs.js | ||
@@ -251,18 +251,13 @@ async function getInfo(request) { | ||
b = new Date(b.mergedAt); | ||
return a > b ? 1 : a < b ? -1 : 0; | ||
})[0] : null; | ||
- | ||
- if (associatedPullRequest) { | ||
- user = associatedPullRequest.author; | ||
- } | ||
- | ||
return { | ||
user: user ? user.login : null, | ||
pull: associatedPullRequest ? associatedPullRequest.number : null, | ||
links: { | ||
commit: `[\`${request.commit.slice(0, 7)}\`](${data.commitUrl})`, | ||
pull: associatedPullRequest ? `[#${associatedPullRequest.number}](${associatedPullRequest.url})` : null, | ||
- user: user ? `[@${user.login}](${user.url})` : null | ||
+ user: user ? `@${user.login}` : null | ||
} | ||
}; | ||
} | ||
diff --git a/dist/changesets-get-github-info.esm.js b/dist/changesets-get-github-info.esm.js | ||
index 27e5c972ab1202ff16f5124b471f4bbcc46be2b5..3940a8fe86e10cb46d8ff6436dea1103b1839927 100644 | ||
--- a/dist/changesets-get-github-info.esm.js | ||
+++ b/dist/changesets-get-github-info.esm.js | ||
@@ -242,18 +242,13 @@ async function getInfo(request) { | ||
b = new Date(b.mergedAt); | ||
return a > b ? 1 : a < b ? -1 : 0; | ||
})[0] : null; | ||
- | ||
- if (associatedPullRequest) { | ||
- user = associatedPullRequest.author; | ||
- } | ||
- | ||
return { | ||
user: user ? user.login : null, | ||
pull: associatedPullRequest ? associatedPullRequest.number : null, | ||
links: { | ||
commit: `[\`${request.commit.slice(0, 7)}\`](${data.commitUrl})`, | ||
pull: associatedPullRequest ? `[#${associatedPullRequest.number}](${associatedPullRequest.url})` : null, | ||
- user: user ? `[@${user.login}](${user.url})` : null | ||
+ user: user ? `@${user.login}` : null | ||
} | ||
}; | ||
} |
Oops, something went wrong.