Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wooogi123 committed May 10, 2020
1 parent ba40cb5 commit e3ff58e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This project uses GitHub graphQL API to get the commit histories and write into
1. Edit the [environment variable](https://github.com/maxam2017/productive-box/blob/master/.github/workflows/schedule.yml#L17-L18) in `.github/workflows/schedule.yml`:

- **GIST_ID:** The ID portion from your gist url: `https://gist.github.com/maxam2017/`**`9842e074b8ee46aef76fd0d493bae0ed`**.
- **LOCALE:** The locale of your country, eg. `zh-TW` for Taiwan, `en-US` for America, etc.
- **TIMEZONE:** The timezone of your location, eg. `America/New_York` for America in New York, etc.

1. Go to the repo **Settings > Secrets**
1. Add the following environment variables:
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface IRepo {
name: repoInfo?.name,
owner: repoInfo?.owner?.login,
}));

repoResponse = await githubQuery(ownedRepoQuery)
.catch(error => console.error(`Unable to get the owned repo\n${error}`));
repos.push(...repoResponse?.data?.user?.repositories?.nodes.map(repoInfo => ({
Expand Down
6 changes: 3 additions & 3 deletions src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const createOwnedRepoQuery = (username: string) => `
user(login: "${username}") {
repositories(last: 100, ownerAffiliations: OWNER, isFork: false) {
nodes {
name
owner {
login
name
owner {
login
}
}
}
Expand Down

0 comments on commit e3ff58e

Please sign in to comment.