Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for GitHub PR #13

Closed
Leafrostar opened this issue Dec 4, 2019 · 15 comments
Closed

Error for GitHub PR #13

Leafrostar opened this issue Dec 4, 2019 · 15 comments
Labels
bug Something isn't working

Comments

@Leafrostar
Copy link

Leafrostar commented Dec 4, 2019

I tried this task for GitHub PR and facing below error, do you have any idea?

##[error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

Hi @Leafrostar,
Thank you for trying the task :)
Do you use Windows or Linux?

@Leafrostar
Copy link
Author

Leafrostar commented Dec 4, 2019

I am using Windows. I am thinking is it because I don't have some necessary permission for PowerShell.
Because I don't have administrators permission.

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

Is is Self hosted agent, right? If you login to the machine with the user that the build use, can you open PowerShell and run scripts?
Which Windows version is?

@Leafrostar
Copy link
Author

I am not sure whether is Self hosted agent, will figure it out.
I can open PowerShell and run scripts (cannot run as administrator)
Windows version is Windows 10 Enterprise

@Leafrostar
Copy link
Author

I found this in the jobs log:

Pool: Azure Pipelines
Image: ubuntu-latest

So that means it's Microsoft hosted agent and is Linux VM.
That's why I face this error.

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

@Leafrostar exactly.
Try to change the pool to windows-latest.

@Leafrostar
Copy link
Author

Now I am facing:

##[error]{"message":"Draft pull requests are not supported in this repository.","documentation_url":"https://developer.github.com/v3/pulls/#create-a-pull-request"}

I didn't check "Create Draft Pull Request"

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

Can you run the pipeline with the variable system.debug = true and share here the full log of the task?

@Leafrostar
Copy link
Author

log.txt

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

Thank you!
You repo is a public repo or a private repo?

@Leafrostar
Copy link
Author

It's private repo

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

Ok, private repos support draft pull request only with GitHub Team and GitHub Enterprise Cloud and I send draft=false so it fails.
I fix it now and I will update you soon :)

@shayki5 shayki5 added the bug Something isn't working label Dec 4, 2019
@Leafrostar
Copy link
Author

Thank you!

@shayki5
Copy link
Owner

shayki5 commented Dec 4, 2019

I fixed it :) - the new version is 1.2.41
Please try to run it now and check if it works.

@Leafrostar
Copy link
Author

It's working now. Thank you for the fast response and fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants