I am researching on extending visual studio services by adding a code hub. With the help of the online samples and documentation, I am able to add a hub under code hub group. But now the issue is that i am not able find any way in my hub page to know the currently selected repository. Please guide me on this. I am specifically targeting git repositories in my hub.
Edited:
Screenshot Showing the project dropdown , repository dropdown and new custom Code Hub named "Git Graph"
What I need is an option to know which repository is selected while the user is in the custom code hub. the method getWebContext() only lists the information till the project level. Where as it should give me the current repository too.
Related
I want to create a workflow for moving issues in GitHub project boards such as:
When someone creates an issue it moves to the project board "To do".
Once the developer creates a branch with issue name then the issue should move to the different project board "In Progress"
Once the developer finished his work and merge it with the master branch then it should move to project board "Done"
I got some workflow for creating a branch for issues and move-in boards but I am unable to create the flow.
Github API
There is a full project section in the Github API with endpoints you could use to customize your workflows.
Note: here is a similar question
Github Actions
There is also a Github automate project action on the Github marketplace, to use directly in your workflow if it match your context.
Note: There may be others on the github marketplace
In our project, we are using Azure git for the repo and we are doing the commit in Visual studio 2019.
I have a requirement to show the Jira numbers in the "related work item section" while committing the code. Please help
Visual Studio Related Work Item
I am afraid the Jira numbers cannot be shown in the related work item section of VS2019. This feature is intergrated with azured devop. The field related work item section can only show the work items in your azure devops project.
If you want to link the code commit to a jira issue. You can use the the Git Integration for Jira Cloud app, or Azure Git Listener for Jira app to connect your azure repo to your Jira cloud. Then you just need to include jira issue numbers in your commit comment. You can check this thread for more information.
If you want manage jira issues from VS 2019 you can check out Atlassian Connector for Visual Studio.
You can also check out the official extension Jira and Bitbucket for VSCode.
You can also try syncing your Jira issue with azure devops. Please check out the detailed steps here. Then you will be able to view the work items in the related work item section field of VS2019, but these work items are synced to azure devops from Jira, they are not the originAL Jira issue from Jira cloud
We're looking at moving from TFS to VSTS. However, one of the features I rely on is the ability to see which developers have got code checked out, when it's getting checked in, and to which branch. I need to see this at the collection level, not per project. Does this functionality exist in VSTS?
Tks
No such built-in features in Azure DevOps (VSTS).
However you can try below workarounds:
To see which developers have got code checked out, you can use the
tool Team Foundation Sidekicks which can retrieve the status
locked/checked out by other users. But the latest version is Version 6.0 only for Visual Studio 2015. Based on my test it's also available for VSTS. Please reference my answers in below threads:
Is there a way in Visual Studio and TFS to view items checked out to local workspaces?
List of checked out files
For when it's getting checked in, and to which branch, you have to
navigate to the specific repository to check the changesets which
include the history. You can also try calling the REST API
(Changesets - Get) to get the information.
I have developed a tiny library that I chose to host on GitHub. The code is being built by a VSTS build and published as a NuGet package.
I have written a README.md file and I am trying to include a Build badge on it, as described in the Microsoft documentation. Consequently, I have added the following line in the MD file and replaced the placeholders accordindly:
![Build status](https://{my-organisation}.visualstudio.com/{my-project}/_apis/build/status/{my-build-definition-name}?branch=master)
The problem is that the link is not accessible to anyone that is not logged-in on VSTS and I end up with a 'broken' link on my readme page:
Question
What must be done to make the VSTS Build Badge available to a GitHub repo?
I suppose you must include an authentication token of sorts in order to have at least read-access to the VSTS build from your GitHub page.
Note that the documentation lists also multiple pending issues, including MicrosoftDocs/vsts-docs issue 1499:
Build status badge added to GitHub readme doesn't show up.
So this is still in progress.
On that last issue, it says:
This is due to public vs. private projects.
If you make your project public the image URL will render.
There are other potential workarounds we are looking at for the doc.
See "Change the project visibility, public or private".
I already have 2 automatic builds on hub.docker with Dockerfiles hosted on github. They are working great. My problem is now I want to use a Dockerfile in an github repository which is not my own but I am admin and member and have full access to. I can see several other repositories on the hub.docker page when I try to create a new automatic build. They are very similar to the one I want to use but the one I want to use is not listed there, although I have full access to it. I ready through do documentation from hub.docker and I also logged in and out. Further more I also delinked my github account and relinked it. (with write persissions). So my question is how can I make the other repository visible on hub.docker in order to create an automatic build?