chore: generate
This commit is contained in:
parent
ab2a6c45a3
commit
c573732ddb
3 changed files with 13 additions and 4 deletions
|
|
@ -7,7 +7,12 @@ import { graphql } from "@octokit/graphql"
|
||||||
import * as core from "@actions/core"
|
import * as core from "@actions/core"
|
||||||
import * as github from "@actions/github"
|
import * as github from "@actions/github"
|
||||||
import type { Context } from "@actions/github/lib/context"
|
import type { Context } from "@actions/github/lib/context"
|
||||||
import type { IssueCommentEvent, PullRequestReviewCommentEvent, WorkflowRunEvent, PullRequestEvent } from "@octokit/webhooks-types"
|
import type {
|
||||||
|
IssueCommentEvent,
|
||||||
|
PullRequestReviewCommentEvent,
|
||||||
|
WorkflowRunEvent,
|
||||||
|
PullRequestEvent,
|
||||||
|
} from "@octokit/webhooks-types"
|
||||||
import { UI } from "../ui"
|
import { UI } from "../ui"
|
||||||
import { cmd } from "./cmd"
|
import { cmd } from "./cmd"
|
||||||
import { ModelsDev } from "../../provider/models"
|
import { ModelsDev } from "../../provider/models"
|
||||||
|
|
@ -401,7 +406,11 @@ export const GithubRunCommand = cmd({
|
||||||
const oidcBaseUrl = normalizeOidcBaseUrl()
|
const oidcBaseUrl = normalizeOidcBaseUrl()
|
||||||
const { owner, repo } = context.repo
|
const { owner, repo } = context.repo
|
||||||
// For schedule events, payload has no issue/comment data
|
// For schedule events, payload has no issue/comment data
|
||||||
const payload = (context.payload as IssueCommentEvent | PullRequestReviewCommentEvent | WorkflowRunEvent | PullRequestEvent)
|
const payload = context.payload as
|
||||||
|
| IssueCommentEvent
|
||||||
|
| PullRequestReviewCommentEvent
|
||||||
|
| WorkflowRunEvent
|
||||||
|
| PullRequestEvent
|
||||||
const issueEvent = isIssueCommentEvent(payload) ? payload : undefined
|
const issueEvent = isIssueCommentEvent(payload) ? payload : undefined
|
||||||
const actor = isScheduleEvent ? undefined : context.actor
|
const actor = isScheduleEvent ? undefined : context.actor
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,4 @@
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"@typescript/native-preview": "catalog:"
|
"@typescript/native-preview": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,4 @@
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"directory": "dist"
|
"directory": "dist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue