Skip to content

RezaNum1/pr-update-work-item-state

Repository files navigation

Sample WorkFlow File

name: Update work item state when PR is merged, opened, closed or when branch is created

on:
   pull_request:
    branches: [main]
    types: [opened, closed, edited]
   push:
    branches: [main]

jobs:
  alert:
    runs-on: ubuntu-latest
    name: Test workflow
    steps:       
    - uses: RezaNum1/pr-update-work-item-state@main
      env: 
        gh_token : '${{ secrets.GH_TOKEN }}'   
        ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}'
        ado_organization: '${{ secrets.ADO_ORGANIZATION }}'
        ado_project: '${{ secrets.ADO_PROJECT }}'
        closedstate: 'Done'
        propenstate: 'Ready'
        inprogressstate: 'In Progress' 
        ghrepo_owner: 'RezaNum1'
        ghrepo: 'X-Microservice'
        pull_number: ${{github.event.number}} 
        branch_name: ${{ github.ref }}

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published