Comments (13)
@andrewthauer / @dtuite You guys are amazing with your support system. It finally worked. Thank you. I had to create an OAthAPP at org admin level and the rest was magic.
from backstage-plugin-github-pull-requests.
@dtuite - I just noticed a user had reported this a few months back. #5 . Does the temporary fix work?
from backstage-plugin-github-pull-requests.
Thanks @ArchanaSwamy. We will look into this and track down the problem.
from backstage-plugin-github-pull-requests.
Plugin should support private repositories. I just performed a test with my private repo and it works correctly.
404 error maybe caused by wrong github.com/project-slug
For example:
I made a type there and used recipess instead of recipes.
Are you sure that project-slug is set up correctly? If yes, please let me know and I will investigate this a bit more.
from backstage-plugin-github-pull-requests.
My project is github.com/project-slug: org/repo. I can see the API request hitting the correct end point. Couple of things to mention here.
I have used Github SSO which connects properly via the client id and secret. However we log into backstage as a guest and not user basis. Could this be a reason? I see an authorization token
injected. I don't know where is it picking this and it seems it is session based.
Do I need to add anything in the packages/app/src/api.ts as we are using a standalone app and not a clone of backstage repo.
`
import { createApiFactory } from '@backstage/core';
import { GithubPullRequestsClient, githubPullRequestsApiRef } from '@roadiehq/backstage-plugin-github-pull-requests';
export const apis = [
createApiFactory(githubPullRequestsApiRef, new GithubPullRequestsClient()),
];
`
from backstage-plugin-github-pull-requests.
Another point. I didn't explicitly mention Github enterprise setting in the app-config
as we are not using any graphql in github. The Github OathApp has been created at my user account level and not org admin level.
from backstage-plugin-github-pull-requests.
@ArchanaSwamy - Out of curiosity did you create the OAuth app under the org that owns the private repos? I'm not sure it works otherwise. For instance if you create the OAuth app under a member of the org you'll be able to login, but still not have access to private repos even though your login user does.
from backstage-plugin-github-pull-requests.
@andrewthauer No I created the OAth app under my user account.Can we actually create OathApp under an org? I can't seem to find an option to do as it defaults to my Settings->Developer settings->OathAPp.
from backstage-plugin-github-pull-requests.
@andrewthauer No I created the OAth app under my user account.Can we actually create OathApp under an org? I can't seem to find an option to do as it defaults to my Settings->Developer settings->OathAPp.
I believe you would need to be an org admin to do this.
from backstage-plugin-github-pull-requests.
@andrewthauer ok so if I got it right, you are recommending I create a OathApp via org admin and then pass the credentials. Does this allow the private repo to be accessed ?
from backstage-plugin-github-pull-requests.
@ArchanaSwamy - Correct. It should work then.
from backstage-plugin-github-pull-requests.
@dtuite / @lewtakm - It might make sense to document this somewhere? I'm thinking this probably makes sense to have documented as part of the main backstage repo as general steps (considering the GH OAuth setup is not documented anywhere in backstage that I'm aware of). Maybe somewhere in https://backstage.io/docs/auth/. Then this repo could possibly point there.
from backstage-plugin-github-pull-requests.
Awesome @andrewthauer. I didn't know about this either. I'll open an issue on backstage/backstage now to get this documented.
from backstage-plugin-github-pull-requests.
Related Issues (16)
- Latest Backstage release (release-2021-05-27) breaks this plugin HOT 3
- Font influences search bar position HOT 6
- No ApiProvider available in react context HOT 8
- Pull request statistics calculation on small repos are broken HOT 1
- Add pull request status (open/closed) to PR table HOT 2
- GitHub authentication based on access token / github application HOT 2
- Draft pull requests should be identifiable
- Color of table headings differs for ID and CREATOR headings HOT 1
- GitHub PRs should work for private GitHub repos HOT 1
- npm registry does not have latest release 0.6.5 (or 0.6.6) HOT 2
- Is there any plan of adding a Widget to this? HOT 2
- yarn tsc errors HOT 1
- Error: No ApiProvider available in react context HOT 4
- Release latest changes which updates backstage dependencies HOT 3
- Change Pull Requests Statistics card to load data from the github.com/project-slug annotation HOT 3
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 backstage-plugin-github-pull-requests.