Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.31 KB

Instructions.md

File metadata and controls

45 lines (30 loc) · 1.31 KB

calibri/20

  1. Create Branch Policy
  2. Deploy Azure Function
  3. Add Web Hook
  4. Pull Request Web Hook

Add a web hook that will get called when a PR is changed:

  1. Click on project settings (gear icon in lower left)
  2. Click on 'Service Hooks'
  3. Click the 'Create subscription' button
  4. Scroll down to 'Web Hooks'
  5. Click 'Next'

image.png

Set up the web hook Trigger:

  1. Choose the event type
  2. Choose the repository
  3. Choose the target branch
  4. Optionally set the Change type, Requester group, and/or Reviewer

image.png

Set up the web hook Action:

  1. Enter the URL of the Pull Request Changed function (including the function key)
  2. Put the Build ID in the header (instructions below)
  3. Put an Azure PAT with build permissions in the header (instructions below)

image.png

How to find the build ID:

  1. Open the build pipeline editor
  2. Click on the variables tab
  3. The build ID is the system.definitionid

image.png

How to set up a personal access token (PAT):