Skip to content

Gets the work item state in Azure DevOps based on the work item id.

Notifications You must be signed in to change notification settings

CanarysAutomations/wit_states

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This action gets the state of the work item in Azure DevOps based on the work item id.

User to provide the following inputs.

  • Azure DevOps Organization
  • Work Item Id
  • Work Item state to compare to
  • Azure DevOps Token
  env:  
    ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}'
    ado_organization: '${{ secrets.ADO_ORGANIZATION}}'
    ado_state: 'Work Item State'
    close_state: 'ADO Closed Work Item State to check against'

The input state is compared against the work item's state, if they are not equal the action fails.

Sample Input Format

  name: get work item state

  on:
   push:
    branches: [ master ]
  
  jobs:
    alert:
     runs-on: ubuntu-latest
     name: Test workflow
     steps:       
     - uses: CanarysDevOps/wit_states@master
     env:  
      ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}'
      ado_organization: '${{ secrets.ADO_ORGANIZATION}}'
      ado_state: 'Work Item State'
      close_state: 'ADO Closed Work Item State to check against'
  

About

Gets the work item state in Azure DevOps based on the work item id.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published