Questions tagged [pull-request]

1

votes
2

answer
21

Views

How can I create a pull request from a fork without having created a branch on the fork?

I created a fork on Github, worked on the fork and now I want to create pull request for the original project to take my changes. All the documentation I can find here, GitHub and Google refers to a branch being selected for the pull request, but I did not create one. How can I proceed?
rob
1

votes
1

answer
44

Views

Github pull request shows wrong diff

I am having two branches: - master and - develop. I am trying to merge branch develop into master branch. I have checked with Tower and Araxis merge, those two branches are identical. But when I do a pull request on Github, I am seeing that there are 381 files changed, like files are not on master a...
be-codified
1

votes
2

answer
1.3k

Views

Git how to pull only some commits

I have some commits that i have made to my own forked repo from the master, now I would like to create a pull request for only some of my commits (some are reverted in my repo). I don't want to clutter up the pull request with my unnecessary commits, what should I do.
zehata
1

votes
1

answer
206

Views

How to programmatically get the list of all the Completed PullRequests in AzureDevOps?

I am using the following code to get the list of All the completed pull requests on a VSTS repository. However, the list of pull requests that is fetched, contains only a limited list of the pull requests, and not all of them. Any idea what am I doing wrong? Here is the code: /// /// Gets all the...
PiJei
1

votes
1

answer
505

Views

how to deal with multiple pull requests merge

Suppose I'm working on feature 1 branch, pushed my code to origin/feature1 branch and put a pull request to develop branch.Another person is working on feature 2 branch, pushed his code origin/feature 2 branch and raised a pull request at same time. when approver approves my request and merges it to...
Anwesh Valleshetti
1

votes
0

answer
41

Views

Why GitHub pull request “back-merges” when resolving conflicts

When resolving conflicts in a pull request via Github Editor I always end up with 2 merges instead of one. Example: I want to merge unsynced changes on master (A) into feature branch Create pull request base:feature head:master (B) Github detects conflicts I resolve them using Github UI editor I mer...
BennyHilarious
1

votes
1

answer
878

Views

jenkins pipeline PR build contains wrong branch name

I am using Jenkins multi branch pipeline with bitbucket and I see an issue where the automatic build created for a PR fails as I rely on env.BRANCH_NAME. Problem is that this env now holds not the feature branch name as expected, instead it holds the PR is (e.g. PR-2 instead of feature/test-branch)...
YaOg
1

votes
1

answer
40

Views

Access control of GitHub Private Repositories

I am new to GitHub private repositories. I am use to public repositories in GitHub. I know, there is a concept of pull request/ merge pull request. I am wondering if GitHub PRIVATE repositories have these concepts of pull requests and so! Actually I am a regular user of BitBucket private repositorie...
Sayan Mukherjee
1

votes
1

answer
290

Views

Return entity key from datastore

I would like to know if there's a way to return a key from entity specific using nodejs and datastore. Example: I have an entity that has name and age parameters. I would like to retrieve the key by name. How could I do this?
Fernando Antunes
1

votes
0

answer
40

Views

Reverted a pull request from github but both branch shows no difference

I have reverted a pull request from GitHub by following this article https://help.github.com/articles/reverting-a-pull-request/. Now even after reverting when I am comparing the two branch it shows same. How can I raise a pull request again? Here is what I did I raised a pull request from prod_bug_...
antnewbee
1

votes
0

answer
48

Views

Abort ongoing Jenkins build when the Pull Request in BitBucket is updated

Here's my environment - Jenkins V2.111 with Bitbucket Branch Source plugin V2.2.0 BitBucket V5.7.0 I have got the Multi Branch Pipeline Jenkins job working fine. The builds are triggered automatically - for a new branch created, new Pull Request created, updates on branches and updates on Pull Reque...
Anantha
1

votes
1

answer
37

Views

Submit several pull requests that depends on each other

I forked a project on Github. So far I have used the usual approach which consist in creating a specific branch, make some specific changes, push it to origin and create the pull request for the upstream repo. Now let's assume I have created branch B1 to fix a problem in the code and create a pull r...
L. Julliard
1

votes
0

answer
48

Views

Clean up pull request commits

I branched off (my_branch) from master. While working on my_branch, there were updates to master. I was regularly re-basing my_branch to then latest master. With one re-base later though there was a conflict. I remember resolving the conflict and git rebase --continue. For some reason, rebase steps...
user362953
1

votes
2

answer
1.3k

Views

gitlab merge request by command line

I am working with gitlab. First of all, i did not find 'Pull Request' feature on gitlab. I suppose this is named 'Merge Request' ? Here is what i want to understand: Let's suppose we have a project called project1. This project is a public gitlab project, written by user1. Now, let's suppose we have...
Bob5421
1

votes
1

answer
125

Views

Unable to issue a git pull command from a VSTS Build Process task

A batch file (c:\myBatchFile.bat) exists on a build agent. When the batch file is run, it successfully does the following: cd c:\myrepo git pull However, When I tell a powershell task, within a VSTS build job, to run c:\myBatchFile.bat the following error occurs: error: failed to execute prompt scr...
David
1

votes
1

answer
28

Views

Github PR template progress API

Recently we've started using the github pull request templates to provide more info about the code being checked in. Since there is a template one can see the progress, which is basically the number of fields filled in the PR template. It is something like: My question is, is there an API to analyze...
1

votes
1

answer
133

Views

Pull request contains commits from master

I branched from master a week ago. master -> my_branch_1 During this time I've made commits to my_branch_1 and also rebased on origin/master several times to keep up. State of the branches ATM (conceptualised) commit0 master -> my_branch_1 master: commit1 commit3 commit10 my_branch_1 (commits from m...
Maxim Veksler
1

votes
1

answer
122

Views

How to detect a PR raised for a branch in Teamcity

e.g. let's say I have a master branch for a repo in Bitbucket and a developer developing in feature_branch_1 raises a PR to merge into master. I want to be able to detect a PR has been raised for master and then run some tests on it. I think this is possible through some combination of Branch Speci...
Viral Modi
1

votes
0

answer
59

Views

Setting ip Travis-CI to only build approved pull requests

Is there anyway to configure travis to only build the approved pull requests? By default, all pull requests get queued up to be build, clogging up the approved pulls.
IsuruKusumal
1

votes
0

answer
78

Views

Getting git pull request number from git hash?

Is there a way to get the pull request number (example PR #1234 ) from a git hash? I'm trying to accomplish this is python.
Amanda Zhu
1

votes
1

answer
145

Views

Heroku Review Apps not deploying at all

I'm trying to automatically create review apps as part of my pipeline and testing procedure when pull requests are created on the corresponding GitHub repository. When the PR is created, it appears as a review app, but doesn't actually get created. In the DevTools console, a 404 error is there about...
Will Garside
1

votes
0

answer
154

Views

Pull request from Egit Eclipse plugin when using Bitbucket

Is it possible to make pull request from Egit Eclipse plugin. I use the Bitbucket repository and would like to merge branches As you see, some branches have label MERGED. Can it be done from Eclipse without using Bitbucket interface?
DarkSkull
1

votes
1

answer
21

Views

Reseting branch for GitHub pull request

For one open source project, I opened pull request with commits in my branch. This PR stayed untouched for a few months. Then, I did rebasing in that branch (because in the meantime it got conflict with master) and I messed something up so pull request got hundreds of commits from tens of contributo...
Adrik
1

votes
2

answer
126

Views

Linking pull requests to the workitems from the TFS database

We use custom queries (against TFS databases: Tfs_DefaultCollection and Tfs_Warehouse) to check if all changesets have a workitem linked to it. We use the FactWorkItemChangeset table from the Tfs_Warehouse database. Currently we are migrating to TFS Git and we want to update our custom queries to ch...
Anne Salomons
1

votes
0

answer
17

Views

Restrict comment resolution in TFS to author only

It is possible to set branch policy to require comment resolution before pull request can be completed. However, it seems that anyone - not just the comment author - is able to set comment status to 'Resolved' and therefore complete the pull request effectively circumventing the policy. Is there a w...
Dmitry Korolev
1

votes
0

answer
14

Views

How can I sort GitHub pull requests by the time they were merged?

I would like to look at all merged pull requests in the order in which they were merged. So far GitHub only provides sorting for most recently updated which would work if I didn't have other updates being done to the branches after they were merged (deleting of old branches etc).
jbunton10
1

votes
0

answer
31

Views

How to change who a Pull Request is assigned to

I want to change who is assigned to a pull request. I created the pull request, but I want to change it to someone else. Can I do that in Azure DevOps?
James Esh
1

votes
1

answer
19

Views

Get the source repository of a pull request

I am using multibranch pipeline jobs & have a usecase of doing a PR build. On a PR, I want to checkout the source repository of that PR. Is there any way I can get that in jenkins pipeline? PS: I know 'checkout scm' does this automatically. But I want to do this checkout over ssh & I could not find...
user5290853
1

votes
1

answer
85

Views

How to get the existing Pull Request ID and Url for specific Branch in GitBash without calling Github API?

I need to find the solution of the exact situation, that has been described in the question. I only have a feature Branch ID, for which I need to get the Pull Request ID or Url, on GitBash(2.20.1) or Terminal without calling Github API.. I have already tried this, but it doesn't work for every Branc...
Vicky Dev
1

votes
1

answer
31

Views

How do I get the code from a pull request on github?

I am new to git/github and cannot figure out how to do this simple thing. I want to pull (is that correct terminology?) the changes from a pull request, specifically this one. How do I do this? I tried checkout but: git checkout 266e703d66e812be1661d4ed64700f78dea9152a fatal: reference is not a tree...
schoon
1

votes
0

answer
14

Views

TeamCity: Build chain to test pull requests

We have project setup close to following: components c1, ..., cN, application assembly and autotests are all as separate git repositories The build chain ensuring that latest revisions are working together with each other are consisting of jobs: Build component 1 ... Build component N Build appli...
okutane
1

votes
1

answer
23

Views

Merging a single git commit (From a separate branch) into multiple separate Pull Requests

I came across a... shall we say...interesting scenario with git and my code base this week, I had a piece of logic that I wrote that would be used by 10 future features that I knew I would be soon to implement. The piece of logic being an ABTest for these future features. I approached it by implemen...
mrdavenz
1

votes
0

answer
12

Views

How do I open a pull request containing only the first few commits of the source branch?

I have a TFS git repo which more or less follows gitflow. Three feature branches were reviewed and merged into develop then it turned out that the feature which was merged the latest requires additional thinking. None of them were merged into master yet. I'd like to open a pull request into master c...
sharptooth
1

votes
0

answer
51

Views

Detecting git additions removed in later commit before merge

Imagine the following commits, that are part of a Pull Request I am currently reviewing, that will be merged into master: A--B--C--D--E--F--G Now, imagine, commit B introduces brand new lines of code: + + // Adding a useless comment + Now, imagine, commit F removes what commit B introduced: - - // A...
liquidity
1

votes
0

answer
13

Views

How to create a pull request with 2 source branches and 1 destination branch in two parallel project modules?

So lastly I have been working on a Java web app, built using servlets. This app consists of a project and many subprojects. I have been having some problems when creating branches. Let me explain a little bit simpler. For example I have a task to solve. Firstly I have to see the code and understand...
Nana
1

votes
1

answer
55

Views

Can I get the full pull request text in a Github merge commit?

Let's say I have a pull request on github. I've spent a tonne of time on it and so enter a long, meaningful description for the PR explaining exactly what happened and why: Immanentises the eschaton. This eschaton is righteously immanentised by to rapidly frobnicating the plurglewhatsits. I then mer...
David Given
1

votes
0

answer
15

Views

GitHub PR Help. How to add user?

I have a PR that has been submitted that I have requested small updates/ changes to be made to. The user has switched GitHub profiles during the time the PR was open to the time I reviewed the PR. He now wants to be able to submit the changes to the PR as his new username. Is there a way to give t...
canaan seaton
1

votes
0

answer
22

Views

Azure builds solution when I create pull request as draft

I have two project in my solution Model and Client: I made some changes in Client. In Model I added comment before IndexProducts method in ctor of DataProvider class: public DataProvider() { //IndexProducts(); } Then I created Pull request as draft. And then I removed my comment, commit and pushed...
DIlshod
1

votes
1

answer
23

Views

How to Update a Pull Request on Github

I have a feature branch on git and I set is as a Pull Request. I've made 3 commits to the feature branch but the latest commits are not showing up in the pull request page. Is there a way to update my pull request to show the latest commits from the feature branch?
lost9123193
1

votes
0

answer
18

Views

How to get all my github pull requests of my github account using github api

i want get get all pull requests of all my repos using github api v3. i have try the issue endpoint: https://api.github.com/ser/issues?filter=all&state=all&sort=create&direction=desc&page=1&per_page=10 this will return all issues including pullrequest, i can get the pull requests. but i can't get th...
bupo.jung

View additional questions