Pull request intro comment

The comment codev posts on a new pull request, and the project setting that decides who gets it and what it says.

When a pull request is opened or marked ready for review, codev posts an intro comment on it: a greeting and the tables of /codev commands. codev posts it once per pull request, and not while the pull request is a draft. GitHub and Azure DevOps pull requests behave the same.

Each project decides who gets the comment and what it says. A project that has not changed the setting gets the full intro on every new pull request.

Changing the setting

The setting is in Settings > Projects, on the project's Pull requests tab, in the Intro comment card. The card saves on its own with Save intro comment, separately from the page's Save changes. Reset to default removes the setting, so every new pull request gets the full intro again.

Only project owners can change the setting. Other members see it read-only.

The Pull requests tab of a project's settings, with the Intro comment card set to New or returning contributors, returning after 30 days, and the Short message
The Intro comment card — who gets the comment, and what it says.

Who gets it

OptionWhat codev does
AlwaysPosts the intro on every new pull request. This is the default.
New or returning contributorsPosts the intro only when the author has no other pull request in the repository. With Returning after (days) set, it also posts when the author has opened no other pull request in that many days.
NeverPosts no intro comment.

With New or returning contributors, codev asks GitHub or Azure DevOps for the author's other pull requests in the repository. The pull request being opened never counts. When codev cannot get an answer, for example because of a provider rate limit, it posts the intro.

Returning after (days) accepts 1 to 365. Leave it empty to post the intro on an author's first pull request only.

Never stops only the comment. Labels, validation and analysis run as before.

What it says

OptionComment
Full command listA greeting and every /codev command, grouped in tables. This is the default.
ShortA greeting and a pointer to /codev help.
Custom messageYour own markdown, up to 8,000 characters.

A custom message can use two placeholders:

  • {{author}} becomes the author's GitHub login or Azure DevOps display name. Write @{{author}} to mention the author on GitHub.
  • {{commands}} becomes the full command tables.

Listing the commands on demand

Comment /codev help or /codev commands on a pull request, and codev replies with the same command tables as the full intro, plus the approval commands. A project that turns the intro off or shortens it can point authors to this command. Like every /codev command, it answers commenters whose Git account is linked to a member of the codev instance.

From the CLI

The setting is stored in the project's configuration as prIntroComment, and the project update command sets it:

sfp server project update -r <owner/repo> -p configuration.prIntroComment -v '{"when":"never"}'
FieldValues
whenalways, newcomers or never
returningAfterDays1–365, with newcomers only
contentfull, short or custom
customMarkdownThe markdown for custom

On this page