Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.61 KB

README.md

File metadata and controls

30 lines (26 loc) · 1.61 KB

BuildPulse-Discord

A Github Action for reporting test information from BuildPulse to a Discord channel using a Discord Webhook

- name: Send Digest
  uses: Rabatta-ApS/[email protected]
  with:
    buildPulse-api-token: ${{ secrets.BUILDPULSE_API_TOKEN }}
    discord-webhook: ${{ secrets.DISCORD_BUILDPULSE_WEBHOOK }}

Repository

By default the action fetches tests from the repository that it is being run in. Alternatively, you can specify another repository using the repository input.

- name: Send Digest
  uses: Rabatta-ApS/[email protected]
  with:
    buildPulse-api-token: ${{ secrets.BUILDPULSE_API_TOKEN }}
    discord-webhook: ${{ secrets.DISCORD_BUILDPULSE_WEBHOOK }}
    repository: facebook/react

API Token

You can generate a BuildPulse API token for your organization at https://buildpulse.io/account/@<organization>/api-token.

For example, if your organization on GitHub is https://github.com/facebook, then you'd visit https://buildpulse.io/account/@facebook/api-token to generate your API token.

Example

See the most disruptive tests so you know exactly where to focus first for maximum impact.

Screenshot of message posted by BuildPulse-Discord action

The disruptiveness ratio shows the proportion of test runs that failed due to a flaky outcome. For the first test shown above, we see that 41% of the test runs failed due to flakiness.