Skip to content

Commit

Permalink
Fix type annotations for Octokit
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Nov 22, 2023
1 parent ba06d19 commit 4e5a052
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion automations/js/src/project_automation/issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getBoard } from '../utils/projects.mjs'
/**
* This is the entrypoint of the script.
*
* @param octokit {import('octokit').Octokit} the Octokit instance to use
* @param octokit {import('@octokit/rest').Octokit} the Octokit instance to use
* @param context {import('@actions/github').context} info about the current event
*/
export const main = async (octokit, context) => {
Expand Down
2 changes: 1 addition & 1 deletion automations/js/src/project_automation/prs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PullRequest } from '../utils/pr.mjs'
/**
* This is the entrypoint of the script.
*
* @param octokit {import('octokit').Octokit} the Octokit instance to use
* @param octokit {import('@octokit/rest').Octokit} the Octokit instance to use
*/
export const main = async (octokit) => {
const { eventName, eventAction } = JSON.parse(
Expand Down
2 changes: 1 addition & 1 deletion automations/js/src/utils/pr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class PullRequest {
* ^^^^^^^^^ ^^^^^^^^^^ ^^^^
* owner repo number
*
* @param octokit {import('octokit').Octokit} the Octokit instance to use
* @param octokit {import('@octokit/rest').Octokit} the Octokit instance to use
* @param owner {string} the login of the owner (org) of the project
* @param repo {string} the name of the repository
* @param number {number} the number of the project
Expand Down
4 changes: 2 additions & 2 deletions automations/js/src/utils/projects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Project {
* ^^^^^^^^^ ^^
* owner number
*
* @param octokit {import('octokit').Octokit} the Octokit instance to use
* @param octokit {import('@octokit/rest').Octokit} the Octokit instance to use
* @param owner {string} the login of the owner (org) of the project
* @param number {number} the number of the project
*/
Expand Down Expand Up @@ -212,7 +212,7 @@ class Project {
/**
* Get the `Project` instance for the project board with the given name.
*
* @param octokit {import('octokit').Octokit} the Octokit instance to use
* @param octokit {import('@octokit/rest').Octokit} the Octokit instance to use
* @param name {string} the name of the project (without the 'Openverse' prefix)
* @returns {Project} the `Project` instance to interact with the project board
*/
Expand Down

0 comments on commit 4e5a052

Please sign in to comment.