Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Brodbeck authored and Ross Brodbeck committed Nov 22, 2019
1 parent 31d5784 commit 6823a12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions packages/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"scripts": {
"test": "jest",
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"tsc": "tsc"
},
"bugs": {
Expand Down
4 changes: 1 addition & 3 deletions packages/github/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export class Context {
)
} else {
process.stdout.write(
`GITHUB_EVENT_PATH ${
process.env.GITHUB_EVENT_PATH
} does not exist${EOL}`
`GITHUB_EVENT_PATH ${process.env.GITHUB_EVENT_PATH} does not exist${EOL}`
)
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/github/src/github.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
import { graphql } from '@octokit/graphql'
import { graphql as GraphQL } from '@octokit/graphql/dist-types/types'
import {graphql} from '@octokit/graphql'
import {graphql as GraphQL} from '@octokit/graphql/dist-types/types'
import Octokit from '@octokit/rest'
import * as Context from './context'

Expand All @@ -13,7 +13,7 @@ export class GitHub extends Octokit {
graphql: GraphQL
constructor(token: string, opts: Omit<Octokit.Options, 'auth'> = {}) {
super({...opts, auth: `token ${token}`})

this.graphql = graphql.defaults({
headers: {authorization: `token ${token}`}
})
Expand Down

0 comments on commit 6823a12

Please sign in to comment.