server icon indicating copy to clipboard operation
server copied to clipboard

Private Repos

Open orangewolf opened this issue 9 years ago • 5 comments

I'm getting permissions issue when using this on a private fork of a private repo (hook is on the child, not the parent). Is that expected to work?

This is the message Status 200

Uhh, error: {"message":"Validation Failed","errors":[{"message":"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.","resource":"Search","field":"q","code":"invalid"}],"documentation_url":"https://developer.github.com/v3/search/"}

orangewolf avatar Aug 20 '16 21:08 orangewolf

@orangewolf This is happening because backstroke doesn't have permission to view the repository and its issues (Backstroke checks a child repository's issues to see if the repo has opted out, and if it has, then it won't send a PR to that repo). I didn't really design Backstroke to be used in a private repo, unfortunately. I'm planning on rewriting the project over the next few months, and private repos will be one of the things I'll ensure to support.

1egoman avatar Aug 20 '16 22:08 1egoman

Thanks Ryan, That totally makes sense. I may play with what it would take to support private repos.

On Aug 20, 2016, 15:11 -0700, Ryan Gaus [email protected], wrote:

@orangewolf (https://github.com/orangewolf) This is happening because backstroke doesn't have permission to view the repository and its issues (Backstroke checks a child repository's issues to see if the repo has opted out, and if it has, then it won't send a PR to that repo). I didn't really design Backstroke to be used in a private repo, unfortunately. I'm planning on rewriting the project over the next few months, and private repos will be one of the things I'll ensure to support.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/1egoman/backstroke/issues/7#issuecomment-241227028), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABAW8B792QpZoaOqGWen-W4DWK32JkuRks5qh3upgaJpZM4JpKkb).

orangewolf avatar Aug 21 '16 01:08 orangewolf

This is going to be one of my next focuses, now that I've released #66 .

1egoman avatar Oct 07 '17 19:10 1egoman

I have a related (?) issue when trying to update my (private) fork of EpicGames/UnrealEngine (which requires access, and it appears that Backstroke has it), which is vikhik/UnrealEngine:

Error in syncing link.
Couldn't search issues on repository vikhik/UnrealEngine: {"message":"Not Found","documentation_url":"https://developer.github.com/v3/issues/#list-issues-for-a-repository"}

EDIT: It appeared that Issues was turned off on my repo. I've turned them on but I'm still getting the same error.

vikhik avatar Nov 07 '17 23:11 vikhik

@vikhik Backstroke doesn't support private repositories. There are workarounds (such as adding the backstroke-bot user to a repository) but those aren't supported given that there are no tests for these scenarios and this adds a lot of security concerns that frankly I don't want to have to deal with.

Potentially, private repositories could land in the future, but first, the codebase and deployment need to be updated with private code in mind and they'll probably cost a minimal amount of money to help pay for the additional infrastructure.

1egoman avatar Nov 07 '17 23:11 1egoman