Bots Mattermost pour l'équipe Cozy
This GH Action posts to the Meta - Pull Request channel and list the current PRs summary for the cozy organisation
To run it in local, run META_PULL_REQUEST_GITHUB_API_KEY=XXX MATTERMOST_META_PULL_REQUESTS_HOOK=YYY yarn bot_pull_request
Where:
XXXis a Github token with the following rights:repo:statuspublic_reporead:org
YYYis a Mattermost hook URL to theMeta - Pull Requestchannel
For debugging purpose you can set env variable INPUT_MATTERMOST_TO_FILE=true to output summary into .md files instead of mattermost
META_PULL_REQUEST_GITHUB_API_KEY=XXX INPUT_MATTERMOST_TO_FILE=true yarn bot_pull_request
Warning In this configuration, the CI will willingly fail as the
getLatestExecutionSuccessDateis used to get the last CI success when the result has been sent to Mattermost
You can use Fixtures by commenting prJson and membersJson comments in index.js