Discord adds comments to GitHub pull requests for CSS code that breaks browser compatibility.
Follow these instructions to add Discord to your GitHub repository.
- Navigate to Settings > Webhooks and Services
- Add a webhook
- Enter
http://mdn-discord.herokuapp.com/hook
as the Payload URL - Choose to select individual events. Ensure only Pull Request is selected.
- Leave all other settings at their default values
- Enter
When you push code to your repository, Discord scans CSS files in the new commits.
Discord runs doiuse against the CSS files in the pull request and adds a comment with the report results.
To target specific browsers, add a .doiuse
file to the root of your repository
with autoprefixer-like format. For example:
ie >= 8, > 1%
Criteria can be separated by commas, newlines, or both.
Stylesheets will be tested against browsers that match any of the criteria.
If the .doiuse
file is empty or not present, Discord will default to testing
against the two most recent versions of all supported browsers.
See TESTING.md for more information.
Discord is under heavy development. Please report any problems on GitHub.