pull-request

Setup pull requests with git flow and azure pipelines

丶灬走出姿态 提交于 2019-12-25 18:47:45
问题 I'm trying to setup a library project using DevOps. The branching strategy choosed is git-flow in order to have use git version and follow semver with releases and hotfixes. So i tried was to protect both develop and release branches by activating pull requests. Everything works fine unless a release is going to be closed. Here I see two problems: In git-flow the system try to realign develop from master, but devops doesn't know this is git-flow and just merges release to master. Develop

can I make a pull request without fork?

这一生的挚爱 提交于 2019-12-24 12:17:44
问题 On Coursera course Version Control with Git, I encounterd a problem below: Which one of these statements is true? a) A pull request must be made from a forked repository. b) A pull request can be made only when a branch is being merged. c) A pull request can act as a form of review and approval. From my perspective, both A and C are correct. There's no discussion about this problem on the course forum. So I turn to stack overflow for help. Can someone point out which choice is correct, which

How to programmatically set an AzureDevOps PullRequest to complete Automatically?

試著忘記壹切 提交于 2019-12-24 08:03:26
问题 When creating a pull request as my code below shows, I also would like to set it to complete automatically. Meaning when all the completion conditions on it are met, the pull request completes automatically, so that the author does not have to manually complete it through the vsts interface. Any suggestions how this can be performed? It seems at the time of pull request creation I do not have any possibility for this. In other words the interface for creating a pull request does not show any

Why does my GitHub pull request have two commits?

天大地大妈咪最大 提交于 2019-12-24 07:35:39
问题 I've forked a project on GIT, and started contributing. From what I've understood, that project has a pending pull request at the time I cloned the project, and later that commit of a 3rd person was refused by the project owner. I've done my change (adding a single new file), and I wanted to push it to the master branch of the project. So I've pushed it to my github master branch, and then I wanted to make a pull request. In case I'm not clear, I've done this: Clone the project add a file &

Share (pull request) ONLY SOME commits with upstream repository

浪尽此生 提交于 2019-12-24 05:30:14
问题 We face a situation where we are customising a webapp for our company (GA) and need to send SOME changes to the git upstream repo via pull requests. The upstream webapp is "AUS". The changes will be in specific files and are known about before the work is done. All work (even for AUS) is to be captured in GA. How do we go about this without duplicate commits (from cherry-pick and rebase ) and to keep it clean and easy to follow? I worked out a 'recipe' for this and wanted to share it. 回答1: I

Merging a pull request to my fork

做~自己de王妃 提交于 2019-12-24 04:06:06
问题 I have created a fork of jimson gem repository. How I can merge this pull request to my fork 回答1: git pull lets you give a URL for a repository, so you can use something like: git pull https://github.com/mitfik/jimson.git next 来源: https://stackoverflow.com/questions/29799602/merging-a-pull-request-to-my-fork

How to do a pull request from my current state

喜你入骨 提交于 2019-12-24 01:29:08
问题 Steps already taken I found a github repository from user X I clicked "open in visual studio" I made some changes and did a commit. It committed to my local repository. I installed github extension for Visual Studio 2017 I created a fork in my own github repository directly from user X's repository. Question I want my changes to appear as a pull request in the repository of user X. What are the exact steps in Visual Studio (not command line) that I need to take to do that, given where I am

Why is the reference for a package to be installed from a pull request different for Yarn and original NPM client?

喜夏-厌秋 提交于 2019-12-24 00:48:21
问题 As discussed here the way we identify a PR from which to install a Node.js package is different when using Yarn client and different when using original NPM command line client, e.g.: npm install json-schema-faker/json-schema-faker#pull/129/head and yarn add json-schema-faker/json-schema-faker#129/head Note that in Yarn's case there is no pull/ segment in the package identifier. Trying it other way around results in the following: $ npm install json-schema-faker/json-schema-faker#129/head npm

Associate Work Items to a Pull Request Programmatically

早过忘川 提交于 2019-12-23 20:19:56
问题 I can get (https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests#get-a-pull-request) a pull request, manage reviewers and complete it. The branch has a policy requiring work items and it fails as the pull request does not automatically add the work items associated with the underlying commits. Poking at the PATCH against the pull request with bad parameters nets a "You can only update reviewers, descriptions, titles, merge status, and status" I can get a list of work items

Apply github commit / pull request as a patch

假如想象 提交于 2019-12-23 15:14:54
问题 How can I apply the patch from github? I tried to compile minisat, but I came across two issues from the compilation with clang. The first issue is solved in this github commit, it's forked from the original github. As the change is minute, I could easily patched the code to work manually. The second issue is solved in this github (https://github.com/niklasso/minisat/pull/17), but the patch is not applied to the original source. I could manually update the code by copying the modified files,