threadlines 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/check.js +2 -1
- package/dist/utils/metadata.js +1 -1
- package/package.json +1 -1
package/dist/commands/check.js
CHANGED
|
@@ -333,7 +333,8 @@ async function checkCommand(options) {
|
|
|
333
333
|
commitAuthorName: metadata.commitAuthorName,
|
|
334
334
|
commitAuthorEmail: metadata.commitAuthorEmail,
|
|
335
335
|
prTitle: metadata.prTitle,
|
|
336
|
-
environment: environment
|
|
336
|
+
environment: environment,
|
|
337
|
+
cliVersion: CLI_VERSION
|
|
337
338
|
});
|
|
338
339
|
// 7. Display results (with filtering if --full not specified)
|
|
339
340
|
displayResults(response, options.full || false);
|
package/dist/utils/metadata.js
CHANGED
|
@@ -145,7 +145,7 @@ async function getCommitAuthorForEnvironment(environment, repoRoot, commitSha) {
|
|
|
145
145
|
}
|
|
146
146
|
try {
|
|
147
147
|
const eventData = JSON.parse(fs.readFileSync(eventPath, 'utf-8'));
|
|
148
|
-
// For push
|
|
148
|
+
// For push events, use head_commit.author
|
|
149
149
|
if (eventData.head_commit?.author) {
|
|
150
150
|
return {
|
|
151
151
|
name: eventData.head_commit.author.name,
|