Skip to content

Commit

Permalink
Fixing report seated PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralfaro-dotcms committed Sep 21, 2024
1 parent cbe25d0 commit 253b09a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cicd_scheduled_notify-seated-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
return;
}
console.log(`Detected PR [${pr.number}] has been seated enough`);
console.log(`Detected PR [${pr.number}] ([${pr.user.login}) has been seated enough`);
let userPrs = seatedPrs.find(pr => pr.login === login);
if (!userPrs) {
Expand Down Expand Up @@ -173,8 +173,8 @@ jobs:
const seatedPrs = ${{ needs.resolve-seated-prs.outputs.seated_prs }}
const mappings = ${{ needs.slack-channel-resolver.outputs.mappings_json }};
const members = ${{ needs.resolve-seated-prs.outputs.members_json }}
const channels = ${{ needs.slack-channel-resolver.outputs.channel_ids }}
const members = ${{ needs.resolve-seated-prs.outputs.members_json }};
const channels = ${{ needs.slack-channel-resolver.outputs.channel_ids }};

const foundMapping = mappings.find(mapping => mapping.slack_id === member)
if (!foundMapping) {
Expand All @@ -184,8 +184,8 @@ jobs:
core.setOutput('guthub_user', foundMappin.github_user);

console.log(`Members: ${JSON.stringify(members, null, 2)}`);
console.log(`Channels: ${JSON.stringify(channels, null, 2)`);
console.log(`Found mapping: ${JSON.stringify(foundMapping, null, 2)`);
console.log(`Channels: ${JSON.stringify(channels, null, 2)}`);
console.log(`Found mapping: ${JSON.stringify(foundMapping, null, 2)}`);

const login = foundMapping.github_user;
const userPrs = seatedPrs.find(pr => pr.login === login);
Expand Down

0 comments on commit 253b09a

Please sign in to comment.