diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index 4bb0897a86..3662ae9e53 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -19,7 +19,7 @@ jobs: - name: Create the Mattermost Message run: | echo "{\"text\":\"'${{ steps.list.outputs.prs }}'\"}" > mattermost.json - #- name: Send to Mattermost - # uses: mattermost/action-mattermost-notify@master - # env: - # MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} \ No newline at end of file + - name: Send to Mattermost + uses: mattermost/action-mattermost-notify@master + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} \ No newline at end of file diff --git a/scripts/gh-pr.js b/scripts/gh-pr.js index b891725c3d..d16de8eae7 100644 --- a/scripts/gh-pr.js +++ b/scripts/gh-pr.js @@ -4,15 +4,13 @@ module.exports = async ({ github, context, core }) => { repo: context.repo.repo, state: "open" }); - console.log(prs.data) + const prsReadyToReview = prs.data.filter(pr => pr.labels.some(label => label.name === "ready for review") ); - console.log(prsReadyToReview) - const output = prsReadyToReview - .map(pr => `- ${pr.title} (${pr.html_url})`) + .map(pr => `- ${pr.title} | [PR ${pr.number}](${pr.html_url})`) .join("\n"); console.log(output)