Comments (4)
Hi!
Well, I think this would only be relevant for pull request descriptions and tags. Both comments and statuses contains a bit more of a complex data structure that would be hard to expose in a good way. This could of course just be exposed directly as the JSON content returned, but then I think a custom script would be more appropriate and not an extension for extracting the needed data. Very large response objects here could also be difficult to expose correctly.
In the current extension state, I can add this for tags/labels and description, but I will need to do some more research and thinking before considering it for statuses and comments.
from azuredevopsextensions.
Yeah I agree, we only needed it for the description initially, not sure if would get used much beyond tags/description
from azuredevopsextensions.
I will take a look at it over the weekend. The extension already fetches the description and processes it, so will only need to expose this out. Will probably be done the same way as tag check by setting a custom variable.
from azuredevopsextensions.
Hi,
I added a new action, view
, to PullRequestDescription
that can now be used to load the description of the pull request into a variable. You can find this in [email protected]
- [email protected]
.
steps:
- task: PullRequestDescription@0
name: setDescriptionVariable
inputs:
action: 'view'
outputVariable: 'PullRequest.DescriptionContent'
isOutput: true
stripIdentifiers: false
- script: echo $(setDescriptionVariable.PullRequest.DescriptionContent)
PullRequestDescription
uses some interal modifiers to know where to append content to. If you wish to remove these before setting the variable, set stripIdentifiers
to true. See extension page for information.
from azuredevopsextensions.
Related Issues (9)
- [BUG] [Pull Request Utils]: Installation on DevOps Server 2020 with erros HOT 4
- [Question]: How could we close/update previous PR comments ? HOT 9
- [BUG] [<EnvTransform>]: Task unable to process fields where value is empty HOT 2
- [FEATURE]: Be able to specify pr id when checking tags HOT 5
- [BUG] [Pull Request Utils]: Unable to create a comment with "Resolved" status HOT 3
- [BUG] [PullRequestUtils]: Support link is 404 HOT 5
- [FEATURE]: Provide PullRequestUtils also for Azure DevOps Server HOT 3
- [FEATURE]: additional option policy type for PullRequestStatus HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuredevopsextensions.