Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,29 @@ on:
### Add a step
```yaml
- name: Get azdo wi link step
uses: solidify/github-action-azdo-link@master
with:
organization: 'Org Name'
projectName: 'Team Project Name'
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
```
uses: solidify/github-action-azdo-link@master
with:
organization: 'Org Name'
projectName: 'Team Project Name'
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
```

### Only get link in output do not place comment
```yaml
- name: Get devops link step
id: devopslink
uses: solidify/github-action-azdo-link@master
with:
outputOnly: true
organization: 'Org Name'
projectName: 'Team Project Name'
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: message
uses: thollander/actions-comment-pull-request@v3
with:
message: Your link is here (workitem link)[${{ steps.devopslink.outputs.workItemLink }}]
```


## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: "Azure DevOps Project name"
required: true
default: ""
outputOnly:
description: "Set link in output, do not write comment"
required: false
default: false
outputs:
workItemLink: # id of output
description: "The link to the Azure Boards work item"
Expand Down
Loading