Git Product home page Git Product logo

Comments (4)

joachimdalen avatar joachimdalen commented on June 3, 2024

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.

  • Example of PR status structure: Examples
  • Example of PR thread structure: Examples

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.

JoeGandy avatar JoeGandy commented on June 3, 2024

Yeah I agree, we only needed it for the description initially, not sure if would get used much beyond tags/description

from azuredevopsextensions.

joachimdalen avatar joachimdalen commented on June 3, 2024

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.

joachimdalen avatar joachimdalen commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.