Giter Club home page Giter Club logo

workitemprchecker's Introduction

Work Items Related PR Commits Checker

Usage

The Azure function that can detect the pull requests linked to work items has any commit dependency loss on the target branch.

Set-Up

Environment

  1. Following the official document to set up an HTTP Triggered function example in VSCode. Here we use .NET 6.0 as this project’s developing environment.
  2. Create & deploy the function in Azure, and retrieve the URL of the function.
  3. Go to the Azure DevOps project setting page and create webhooks when pull requests are raised and updated. Use the URL from the previous steps as the target URL so that it will invoke the function every time there are new PRs.
  4. Go to User setting / Personal access tokens page to create a PAT that has the following authorization:
    1. Code: Status
    2. Pull Request Threads: Read & Write
    3. Work Items: Read
  5. Go to the Azure Function App / Configuration / Applicaiton settings section to add the PAT into environment variable for the function app.

Setting trigger branch groups and target branches

Go to Function App / Configuration / Applicaiton settings and set up the variable likes:

    "GROUP_1_TRIGGER":"sit-r22, rc-043",
    "GROUP_1_TARGET": "sit-r22, rc-043, sit-r23, rc-044, master, sit",
    "GROUP_2_TRIGGER":"sit-r23, rc-044",
    "GROUP_2_TARGET": "sit-r23, rc-044, master, sit",
    "GROUP_OTHER_BRANCHES": "master, sit"

Design Detail

design.png

API Documents

workitemprchecker's People

Watchers

Frank Chen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.