Comments (21)
Hi @SrivathsanJ, could you share here the task configuration and also run it with system.debug
= true
and share the logs?
from azure-devops-create-pr-task.
i have used the basic configurations. Build.SourceBranch as source and master as target.
For some reason $(Build.SourceBranch) is not getting the value. it is not showing the branch value in the logs. could this be the issue ?
from azure-devops-create-pr-task.
I can't know without seeing the configurations and the logs...
from azure-devops-create-pr-task.
PFA the logs you had asked. I have masked Org id and Project ID. Rest all are the same.
Build.SourceBranch and Build.SourceRepo variables are not getting replaced with values. So i added the actual branch name in the task
PR_Task_Log.log
from azure-devops-create-pr-task.
Thank you!
If you enter this url https://My_ORG.visualstudio.com/Project_ID/_apis/git/repositories/Repo_ID/diffs/commits?baseVersion=Release_2&targetVersion=master&api-version=4.1&$top=2
in the browser, do you get results? (replace with your real org/project/repo/ ID)
from azure-devops-create-pr-task.
yes. i get the commit differences
from azure-devops-create-pr-task.
Please see issue #21, it because you use the old URL, can you run it again? (it should work after you logged-in in the browser)
from azure-devops-create-pr-task.
The Old url api call is working when i try locally in my browser. and i have another org with my personal account which is using the same pattern and works fine in the release pipeline.
strange. let me try this now and update.
Thanks
from azure-devops-create-pr-task.
It's creating the pull request now.. However, my self hosted agent is is still using the old url(even on a new release). Hosted agents are able to pickup new url and create PR. But the build.sourcebranch and build.sourcerepo variables are not retuening the values. I had to manually select the repo and branch name. Is there way to get it working..
Thanks
from azure-devops-create-pr-task.
So it works now when you specify the values?
BTW - there is no pre-defined build.sourcerepo
variable.
from azure-devops-create-pr-task.
yes. if i manually specify the branch name and select Repo name for "Repository to use" instead of "current repository build".
I was actually referring to "$(Build.Repository.Name)" that's also no retrieving the value
from azure-devops-create-pr-task.
And also $(Build.SourceBranch) not working?
from azure-devops-create-pr-task.
Yes. that is not also not working. I had to manually enter the branch
from azure-devops-create-pr-task.
@SrivathsanJ could you share exactly your configuration? it's in a release pipeline?
from azure-devops-create-pr-task.
I've got a similar issue when trying to create PR's from github to azure dev. allowed token and all settings but failing at the same line. any clue?
checkout-from-github.txt
createpr-devops.txt
from azure-devops-create-pr-task.
Hi @PaulIvan, I see in your logs INPUT_REPOTYPE: 'Azure DevOps'
, but it should be GitHub, can you check?
from azure-devops-create-pr-task.
Hi @PaulIvan, I see in your logs
INPUT_REPOTYPE: 'Azure DevOps'
, but it should be GitHub, can you check?
if I select Github, it will try to push the PR on github I don't need that. I want the PR to be published in Devops from Github
from azure-devops-create-pr-task.
@PaulIvan what do you mean "PR to be published in Devops from Github"? where is the repo?
from azure-devops-create-pr-task.
The scenario is the following:
- I have this test repo on my github. https://github.com/PaulIvan/ALAppExtensions/
- Whenever a PR is made against this github repo a pipeline is triggered in Devops using the azure github connector
- I want the pipeline task to push the content of the github PR in a duplicate repo in devops (which I already made) as another PR
Is that not something this extension can do?
from azure-devops-create-pr-task.
@PaulIvan I'm sorry but not :/
You should clone the repo from GitHub to Azure DevOps and update it there in an automated way (each commit to GitHub will update the repo in Azure DevOps - you can create a build for that), when all the repo will be in Azure DevOps you can use the extension to create the PR in Azure DevOps (not from GitHub, from branch and to branch both in ADO).
from azure-devops-create-pr-task.
Closing because there is no more info from the issue opener.
from azure-devops-create-pr-task.
Related Issues (20)
- Reviewer Id is empty when the $body is constructed. HOT 7
- Add option to use pullrequest template HOT 3
- Can we use this task for Create a PR on Bitbucket? HOT 2
- Does not work under Linux x64 agent HOT 1
- Running Task in self-managed agent behind a Proxy HOT 6
- Getting 403 Forbidden in the CreatePullRequestTask HOT 1
- Set the creator of the PR to the author of the commit instead of the Build Service User HOT 2
- Wildcard support in targetBranch HOT 7
- Create PR by other user than "project collection build service" HOT 9
- Running on Azure windows-latest agent pool still task is failing HOT 2
- Enhancement - Add work item via ID/URL HOT 1
- Getting error The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel HOT 13
- Automatically complete PR HOT 1
- 400 Bad Request to bypass PR policies HOT 4
- Feature request: add support for git tags
- Is "deleteSourch" a typo? HOT 1
- Version 1.2.363 breaks pipeline for branch with forward slash HOT 3
- Can't set Auto Complete to PR HOT 2
- Error (404) Not Found when adding reviewers on my PR (Azure DevOps) HOT 6
- alwaysCreatePr does not work 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 azure-devops-create-pr-task.