The Pull Request Notifier is logic app workflow that fetches open PRs using the Azure DevOps REST API from an Azure DevOps project and send out reminder emails to prompt developers to review PRs ready for review.
The Recurrence triggers the workflow to begin executing at specific times of the day on each weekday (Mon-Fri).
Draft PRs and PRs with "WIP" prefixed to the title are filtered out from the bulletin in case the authors are not ready or still working on their PRs.
- Azure Subscription.
- Azure account that can deploy to the subscription.
- Azure CLI installed.
-
Ensure that your Azure CLI is logged into your tenant and subscription is set.
az login --tenant <TENANT_ID> az account set --subscription <NAME_OF_SUBSCRIPTION>
-
Create your project specific configuration:
- Duplicate the
prnotifier.bicepparam.template
file. - Rename the new file and remove the
.template
from the name. - Set the parameters in file:
Parameter Description resource_prefix
Prefix added to all resources deployed. azdo_project_url
URL of the Azure DevOps project. azdo_access_token
Personal Access Token used to call the Azure DevOps API. azdo_repository_names
(Optional) An array of repository names to watch. If empty, all repositories in the project are watched. teams_channel_webhook_url
URL to the Teams channel webhook where the PR notification will be posted to. Follow instructions here to create one. email_addresses
An array of recipient email addresses that the PR notification will be sent to. email_subject_prefix
Prefix for the email subject line. E.g. [YOUR_PREFIX_HERE] (1): Friday, October 11, 2024 11:11 PM
. Defaults toPull Requests
.
- Duplicate the
-
Deploy the PR Notifier with the following command:
az deployment sub create \ --name pr-notifier-deployment \ --location uksouth \ --parameters file/from/previous/step.bicepparam