Slack bot (coming soon)
Coming soon: how to start Cloud runs from Slack by mentioning the screw-bugs bot with a site or a pull request.
Testing from Slack Coming soon
Mention @screw-bugs with a site or a pull request, and it runs a Cloud run and answers in the thread.
Waiting for Slack's approval
The app works, and is waiting for Slack Marketplace review. Until Slack approves it, only UXstudio's workspace can install it.
Connect Slack first
Runs are your screw-bugs Cloud account's, so link Slack to it once.
- Sign in to
screwbugs.devwith GitHub. - On Account (
/account), click Connect Slack and sign in with Slack.
Emails are never matched. If you haven't connected, the bot replies with a link to do it.
Ask for a run
@screw-bugs https://arlo.app check the signup flow
@screw-bugs uxstudioteam/arlo#236| You give | It does |
|---|---|
A site (with or without https://) | Tests that site |
A PR (a link or owner/repo#123) | Tests the PR's preview and plans from its change, as a PR comment does |
--url https://โฆ | With a PR: test that address instead of the preview found |
--account trial-user | Test signed in as that one of your test accounts |
| Anything else | The instructions |
- In a thread, a bare
@screw-bugstests what the thread is about: the one PR, or else the one site, earlier messages name. - In a DM, skip the mention.
- When it can't tell what to test, it asks, listing the options. Answer with a number, an address or a PR (mentioning the bot in a channel).
In the thread
- ๐ on your message.
- A status message, updated in place, with a Stop link.
- Its questions, if any (which address, or a sign-in only you can open).
- When it ends, a reply that mentions you: the summary, the top findings, the tests under a Show tests button, and the report link.
- โ when every case passed, โ otherwise, in place of ๐.
More commands
| Message | What it does |
|---|---|
@screw-bugs rerun (or retry) | In a run's thread: run it again; words after it add instructions |
@screw-bugs help | Show the help |
/screw-bugs help | Show the help, only to you. The slash command never starts runs |
Who can run what
- You must have connected Slack and be a full member of the workspace (not a guest).
- A PR: you must see the repository on GitHub, and it must have the GitHub App. The run uses the repository's preview headers only if you can push to it.
- A site that is one of a repository's PR previews: when you can push to that repository, the run is the repository's, with its preview headers.
- Any other site: tested by itself, with nothing of a repository's. Only you (or an admin) can answer its questions or stop it.
- Every run signs in only with your own test accounts, and counts against your cap.
How it works
- Slack sends mentions and DMs to
/api/slack/events. Cloud checks Slack's signature first, answers at once, and works after the answer. - Each message is acted on once; Slack's retries and edits are ignored.
- The bot reads a thread only when it is mentioned there and the message names nothing.
- A PR runs exactly as from a PR comment, and has one run at a time from either place.
Setup and details: docs/slack.md (Cloud).