Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Jan 10, 2025
1 parent e9cbca1 commit 896ae5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ limitations under the License.
*/

import { RestEndpointMethodTypes } from '@octokit/rest';
import { octokit } from '../octokit';

export type PipelineState = RestEndpointMethodTypes['repos']['createCommitStatus']['parameters']['state'];
export type DeploymentState = RestEndpointMethodTypes['repos']['createDeploymentStatus']['parameters']['state'];
export type PullRequest = RestEndpointMethodTypes['pulls']['get']['response']['data'];
export type PullRequest = Awaited<ReturnType<typeof octokit.pulls.get>>['data'];
export type PullRequestList = RestEndpointMethodTypes['pulls']['list']['response']['data'];
export type IssueList = RestEndpointMethodTypes['issues']['listForRepo']['response']['data'];
export type CommentList = RestEndpointMethodTypes['issues']['listComments']['response']['data'];
Expand Down

0 comments on commit 896ae5f

Please sign in to comment.