Skip to content

Commit 41f7910

Browse files
readme modified
1 parent 310ae50 commit 41f7910

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ Now in the below steps, I will assume you are already done with the provider.
1919
```shell
2020
yarn add –cwd packages/app @statusneo/backstage-plugin-github
2121
```
22+
2. add this to the app/src/apis.ts
23+
24+
```javascript
25+
import { githubApiRef, GithubClient as StatusNeoGithubClient } from '@statusneo/backstage-plugin-github';
26+
27+
// ...
28+
createApiFactory({
29+
api: githubApiRef,
30+
deps: { authApi: githubAuthApiRef, fetchApi: fetchApiRef, configApi: configApiRef },
31+
factory(deps) {
32+
return new StatusNeoGithubClient(deps);
33+
},
34+
}),
35+
// ...
36+
```
2237

2338
2. Import `GithubPullRequestsCard`, and `GithubActionsCard` from the installed package.
2439

0 commit comments

Comments
 (0)