Code Monkey home page Code Monkey logo

Comments (7)

ygoe avatar ygoe commented on June 23, 2024

I don't understand it. What is the URL of your organisation? Is that the fixed domain name of your company's web site? Why would that be dynamic? And what does it have to do with the absolute local path of the repo that was built from? (#14)

from netrevisiontool.

Korporal avatar Korporal commented on June 23, 2024

@ygoe - Hi,

I'm talking about my company's Github organization (e.g this is Microsoft's https://github.com/microsoft/ ) Making this a new command line option means that at runtime the tool can build a full URL for the commit:

e.g.

microsoft/vscode@0930016

This is the org url "https://github.com/Microsoft" and the repo name "vscode" (this is now supported) and the word "commit" and then we'd append the 8 chars of the commit ID "09300167".

Thus the tool could create this full URL and with another placeholder {commiturl} this could be included in the attribute and available to other tools.

I'm working on a shell extension tool that we can right-click-properties on a DLL here and it will display the details of the attribute it will also display (if present) this URL so the user sitting at a desktop can just click and be taken to the commit in Github !

We're are using this build stamp a lot here and its proving very useful to us in understanding and resolving questions about qa, prod etc.

This is where my pull requests are coming from, real world day to day use cases.

from netrevisiontool.

ygoe avatar ygoe commented on June 23, 2024

Okay, but what's the difference if you just put that base URL as static text in your assembly version info? What advantage does it have to provide it to NetRevisionTool instead (after all it must be provided and cannot be automatically determined – which NetRevisionTool is all about) and have it passed through in that specific way?

from netrevisiontool.

Korporal avatar Korporal commented on June 23, 2024

@ygoe - OK yes you're quite right that is a simpler way to do it, I'm looking at this now too...

from netrevisiontool.

Korporal avatar Korporal commented on June 23, 2024

@ygoe - Yep I was being dumb! This required no change (other than stuff you'll see in my pending PRs) I just edited the AssemblyInfo,cs - everything we need is already there - also when the build data is echoed to Output window, you can ctrl-click the displayed URL and VS opens its browser window at the Github commit!

from netrevisiontool.

Korporal avatar Korporal commented on June 23, 2024

@ygoe - Bascially I just added this (for example) to the assembly info

https://github.com/ygoe/{repodir}/commit/{CHASH:16}

from netrevisiontool.

ygoe avatar ygoe commented on June 23, 2024

Glad to hear it's working for you!

from netrevisiontool.

Related Issues (13)

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.