pull-request

Preserve pull requests when moving repository between Azure DevOps projects

佐手、 提交于 2020-06-28 02:39:45
问题 I have two Azure DevOps projects within the same account, and I'd like to move a repository from one to the other. The page Explore how to move git repositories between Team Projects with full-fidelity history gives a great explanation of how to move the repository while preserving the full history of all branches. However, all information about pull requests (the comments in them, who approved, etc.) is lost. Is there any way to preserve pull request info when moving a repo from one Azure

TFS error: Merge must finish before the Pull Request can be completed

可紊 提交于 2020-06-25 04:27:26
问题 We have a PR in TFS which cannot be completed or abandoned, because the button is grayed out/disabled. The tooltip on hover says: Merge must finish before the Pull Request can be completed Merge in progress ... [Abandon] [Restart Merge] Screenshot (notice the grayed out button): How do we complete it? Is there an unfinished merge in git? If so, how was the branch pushed in the first place? And why can't it be Abandoned at least? Googling with the full error text doesn't yield any results, it

How do you recreate the GitHub pull request diff on the commandline?

戏子无情 提交于 2020-06-24 20:28:53
问题 While working on a branch that I've opened a pull request on, I would like to see the exact same diff that GitHub displays on the commandline. What is the particular git diff command that replicates the list of changes GitHub displays for a pull request? 回答1: If you don't want to do any git fetch and update a local PR branch, you simply can use cli/cli , the command-line interface for GitHub. The release 0.9.0 includes gh pr diff 回答2: The closest thing is to diff with the common ancestor

How to do code review for google cloud git repo

拟墨画扇 提交于 2020-05-25 09:45:19
问题 We are hosting git repo on the google cloud platform. I know for github.com, we can use pull requests for code reviews, but google cloud does not seem to provide that. How do I perform code review for repos on google cloud platform? 回答1: One possibility (not ideal, I know, but still something) would be to have your cloud repo connected to a GitHub or BitBucket repo which you could use for code reviews instead. From Connecting a Hosted Repository: You can connect a Cloud Source Repository to a

Azure DevOps API SDK - Is there a route to get Pull Request difference in detail?

故事扮演 提交于 2020-04-11 17:25:51
问题 When I'm looking at a PR in the browser, the line-by-line differences are returned from this API: dev.azure.com/myproject/_apis/Contribution/dataProviders/query/project/{projectId} With response containing this kind of data: I'd like to get this same data via their API SDK. There are some routes for Pull Request data in the SourceControl.WebApi but I don't find anything that shows line differences in detail, per line. (https://docs.microsoft.com/en-us/dotnet/api/microsoft.teamfoundation

HTTP 403 on GitHub pull request

主宰稳场 提交于 2020-04-10 21:06:55
问题 I want to submit my first (ever) GitHub pull request and am running into some difficulty doing so. According to this article I must first create a branch. So I: git clone https://github.com/theuser/therepo.git git branch mybranch git checkout mybranch Make my changes git commit -a -m "Closes theuser/therepo/#100" My thinking here (please correct me if it was wrong) was to clone the repo, make the branch and commit changes to that branch. If I'm reading that article (linked above) correctly,

github: code review without pull request?

大憨熊 提交于 2020-04-10 08:00:06
问题 Using a shared repository model. In short: we want to be able to review code changes but, we don't want pull requests to hold up integration at all I've used a workflow like this in the past with Code Collaborator, but I don't think it was with Git(?). The point is to allow quicker code integration, while at the same time providing some review of code changes. If the review finds issues, the developer just fixes the issues and integrates, updating the code review in the process. Once the code

List all files changed in a pull request in Git/GitHub

走远了吗. 提交于 2020-04-07 17:39:49
问题 Is there a way (from the command line) to list the names of all files changed in a PR in Git/GitHub? This would be used to find what tests need to be run in a Travis CI build for that PR. The CI build runs these commands before it calls our script: git clone --depth=50 git://github.com/jekyll/jekyll.git jekyll/jekyll cd jekyll/jekyll git fetch origin +refs/pull/2615/merge git checkout -qf FETCH_HEAD 回答1: In general, you can list the files changed between any two commits with git diff --name

Azure DevOps : Pull Request across the Repositories?

南楼画角 提交于 2020-03-25 19:05:42
问题 I am not sure if people usually maintain the Production branch and other Development/Developer specific branches in the same Repository, but I want to have separate Production only Repository. Now, in that case, how do I keep updating the code in my Production repository/branch? If it is the same Repository, then I can create a Pull request across branches and keep the branch / code up to date or in sync. But, how do I keep pushing the new code modifications to the branch in a different

Azure DevOps : Pull Request across the Repositories?

六月ゝ 毕业季﹏ 提交于 2020-03-25 19:04:34
问题 I am not sure if people usually maintain the Production branch and other Development/Developer specific branches in the same Repository, but I want to have separate Production only Repository. Now, in that case, how do I keep updating the code in my Production repository/branch? If it is the same Repository, then I can create a Pull request across branches and keep the branch / code up to date or in sync. But, how do I keep pushing the new code modifications to the branch in a different