Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 21, 2024
1 parent 6831047 commit f0d8e4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pr-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
assignees: pr.assignees.map(assignee => assignee.login)
}));
return JSON.stringify(prDetails, null, 2)
const formattedPRs = pullRequests.map(pr => {
const assignees = pr.assignees.length > 0 ? `Assignees: ${pr.assignees.join(', ')}` : 'No assignees';
return `*Title*: ${pr.title}\n*Link*: <${pr.link}>\n${assignees}\n`;
}).join('\n');
return formattedPRs
- name: Send Slack Reminder
if: steps.pr-list.outputs.result != ''
Expand Down

0 comments on commit f0d8e4c

Please sign in to comment.