Skip to content

Commit ae30272

Browse files
committed
[sc-30416] more testing
Signed-off-by: Jake Schurch <[email protected]>
1 parent 0cc19aa commit ae30272

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/getMessageAuthorFactory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function getMessageAuthorFactory(
2626
octokit: OctokitClient,
2727
slack: SlackClient,
2828
options: GetMessageAuthorFactoryOptions = {
29-
userMappingFilepath: undefined
29+
userMappingFilepath: ''
3030
}
3131
): GetMessageAuthor {
3232
return async (
@@ -85,6 +85,7 @@ async function getMessageAuthor(
8585

8686
let messageAuthor: MessageAuthor | null
8787
if (userMappingFilepath && userMappingFilepath !== '') {
88+
info(`message author login is ${githubSender.login}`)
8889
messageAuthor = getMessageAuthorFromUserMapping(
8990
githubSender.login,
9091
userMappingFilepath

src/githubToSlackMapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ export async function generateGithubToSlackMapping(
9797
info(`Writing mapping to ${outputPath}`)
9898
fs.mkdirSync(outputPath.split('/')[0], {recursive: true})
9999
fs.writeFileSync(outputPath, JSON.stringify(mapping, null, 2))
100+
info(JSON.stringify(mapping, null, 2))
100101
}

0 commit comments

Comments
 (0)