Stop Vercel Git Hub Comments
This stops Vercel's GitHub Bot from commenting on your PRs and commits, and so also stops the emails you get when that happens. This does not stop Vercel creating deploys for PRs and commits.
To use, add the following to your project's vercel.json
, or create the file if
you haven't already. Unlike some of the other Vercel
Project Configuration options,
this options must be added to the vercel.json
even in a Next.js project.
{
"github": {
"silent": true
}
}
See the documentation for this config option here.
Examples
Here are a few examples from some of my projects, with and without other options
in the vercel.json
:
Easy Usage
Warning
This only works correctly if you don't already have a vercel.json
in your
folder.
Copy the following snippet and run in your shell from the root of the git repo / app. It will:
- Create a
vercel.json
file with the above JSON. - Commit and push it to your git repo.
cat > vercel.json <<EOF
{
"github": {
"silent": true
}
}
EOF
git add vercel.json
git commit -m "stop vercel's github bot comment on commits"
git push