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: nurirppan/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: 'nurirppan'
ghrepo: 'X-Microservice'
pull_number: ${{github.event.number}}
branch_name: ${{ github.ref }}
forked from RezaNum1/pr-update-work-item-state
-
Notifications
You must be signed in to change notification settings - Fork 0
License
nurirppan/Library-CICD-pr-update-work-item-state
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Code of conduct
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%