-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
d73bba2
commit eb52b2e
Showing
8 changed files
with
739 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,8 @@ jobs: | |
uses: octokit/[email protected] | ||
with: | ||
query: | | ||
query ($owner: String!, $repo: String!, $pr: Int!, $limit: Int = 20) { | ||
repository(owner: $owner, name: $repo) { | ||
query ($limit: Int = 20, $owner: String!, $pr: Int!, $repo: String!) { | ||
repository(name: $repo, owner: $owner) { | ||
pullRequest(number: $pr) { | ||
closingIssuesReferences( | ||
first: $limit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* @file GraphQL Config | ||
* @module config/graphql | ||
* @see https://graphql-config.com/docs/user/usage | ||
*/ | ||
|
||
import { config as dotenv } from 'dotenv' | ||
import { expand } from 'dotenv-expand' | ||
import type { IGraphQLConfig } from 'graphql-config' | ||
|
||
/** | ||
* GitHub personal access token. | ||
* | ||
* @const {string} GITHUB_TOKEN | ||
*/ | ||
const GITHUB_TOKEN: string = ((): string => { | ||
if (process.env.GITHUB_TOKEN) return process.env.GITHUB_TOKEN | ||
|
||
const { parsed: zshenv } = expand({ | ||
parsed: dotenv({ path: '~/.config/zsh/.zshenv' }).parsed | ||
}) | ||
|
||
return zshenv?.GITHUB_TOKEN! | ||
})() | ||
|
||
/** | ||
* GraphQL configuration options. | ||
* | ||
* @const {IGraphQLConfig} config | ||
*/ | ||
const config: IGraphQLConfig = { | ||
documents: ['./.github/graphql/**/*.gql'], | ||
schema: [ | ||
{ | ||
'https://api.github.com/graphql': { | ||
headers: { Authorization: `token ${GITHUB_TOKEN}` } | ||
} | ||
} | ||
] | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.