Comments (7)
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.
@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.
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.
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.
@ygoe - OK yes you're quite right that is a simpler way to do it, I'm looking at this now too...
from netrevisiontool.
@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.
@ygoe - Bascially I just added this (for example) to the assembly info
https://github.com/ygoe/{repodir}/commit/{CHASH:16}
from netrevisiontool.
Glad to hear it's working for you!
from netrevisiontool.
Related Issues (13)
- Blog post HOT 1
- Supporting SmartGit HOT 1
- Time Zone HOT 5
- Possible Bug HOT 3
- Repo name HOT 3
- Support .NET Core projects HOT 2
- Exited with code 100 HOT 2
- Ability to get serial number HOT 4
- Create additional file instead of patching AssemblyInfo.cs HOT 4
- Create NuGet package HOT 1
- Empty commit ID, missing output values. HOT 5
- Consider adding {mname} HOT 1
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 netrevisiontool.