-
Notifications
You must be signed in to change notification settings - Fork 16
Bad repo assumption #16
Comments
@veshu - I'm still not seeing this one working:
|
@jmgasper That must be due of extra url segments after url name. Can you please try remove issues/16 and add valid url. Or we need to handle such validation as well? |
Ah, my bad. I'll retest |
Why would auth fail? It works as expected on other repos, under my "jmgasper" group, but not ones I've created elsewhere. What does that error mean about ". Not Found"? Is that coming from our code or Github? |
@jmgasper auth means permission here. |
Can you add a sample request please? I'll look at that and see if I can run it outside TC-X |
You can try this one check your token.
|
@veshu - I think I tracked down the problem - thanks for the sample. My OAuth2 application for Github doesn't have access to the "topcoder-platform" group, which is why the calls are failing. The "Not Found" is because the repo link isn't accessible with the given token. It's confusing because I can go into the project on Github and set and remove labels just fine manually, and I expected to be able to do the same with the API, but it looks like we may have to tweak some settings. Sorry for the confusion on this one. |
@veshu - Tested this again after the fix to the permissions and it looks to be working, thanks! |
This chunk of code is causing some problems:
We can't assume that the "repoOwner" username is in the middle of the URL. For instance, consider the case of this actual project URL:
https://github.com/topcoder-platform/topcoder-x-ui
I would never be able to use TC-X to set up labels or webhooks here because it will try to use "topcoder-platform" as the owner username.
We need to do better here and use the credentials for the logged in user for Github and Gitlab directly - not attempting to do this strange manipulation.
The text was updated successfully, but these errors were encountered: