Skip to content

feat: added support for Discord Webhooks #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dannyhammer
Copy link
Contributor

@dannyhammer dannyhammer commented Oct 22, 2024

Extends the idea in this PR for producing a Discord message via webhook when a test completes.

To use, create a file named webhooks.json in the working directory of the project and format it like so:

{
    "USERNAME": "WEBHOOK"
}

where USERNAME is the OpenBench username of the person that wants to be notified and WEBHOOK is the Discord Webhook URL. When a test authored by USERNAME completes, it will send a Discord message to the appropriate channel with the test results.

You can specify multiple users and webhooks in the webhooks.json file. This is so that, on a shared OB instance, you can avoid being notified for tests that you did not author.

Example:
image

@dannyhammer
Copy link
Contributor Author

In light of recent changes to my OB instance, I've made some changes to this PR and updated the content original post. Now, you can specify multiple webhooks and multiple users, allowing you to only have your webhook notified when a test that you authored completes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant