- Maintains a FIFO review queue.
- Welcomes first-time contributors (first PR anywhere in the org) with a link to the contributor guide.
- Tells returning contributors about important changes (a new policy, say), once each.
- Warns draft PRs aren't added to the review queue.
- Warns PRs with red CI aren't added to the review queue (only if CI is still red 1h after it went red; a build that's merely still running doesn't count).
- Probably more in the future.
Each repo can have a .github/embassy-bot.yaml on its default branch. The same
file in the org's .github repo sets defaults for every repo; the app has to be
installed on that repo for the bot to see it.
# Posted on an author's first PR to the repo. Replaces the org's welcome.
# Without one anywhere, the built-in welcome links to the repo's CONTRIBUTING.md.
welcome: |
👋 Welcome, @{{.Author}}, and thanks for opening your first pull request here!
Please give the [contributor guide](https://github.com/embassy-rs/embassy/blob/main/CONTRIBUTING.md) a read.
# Posted once to each returning contributor, on their next PR. First-time
# contributors get the welcome instead and are marked as having seen these.
# The org's notices and the repo's add up; a repo notice with an org notice's id
# replaces it.
notices:
- id: ai-policy-2026
message: |
Heads up: we've adopted a new [AI contribution policy](https://...). In short: ...Messages are Go templates; {{.Author}} is the PR author's login.
Who has seen a notice is recorded per org, by id: a contributor sees it once
however many of the org's repos they open PRs on. To retire a notice, delete it
from the file. Never reuse an id, or nobody who saw the old notice gets the new
one.
The file is read when a PR is opened, so changes apply immediately. If it can't be parsed (that includes unknown keys and templates that don't render), the error is logged and the file is ignored.
Reading it needs the app's Contents: read permission.