Add number_force that overrides pull_request event

This commit is contained in:
Ross Williams 2026-02-04 13:27:32 +00:00 committed by marocchino
parent 14d4f1e429
commit e5362d0016
No known key found for this signature in database
GPG key ID: F54107506CCF18D0
3 changed files with 23 additions and 1 deletions

View file

@ -5,7 +5,9 @@ import {create} from "@actions/glob"
import type {ReportedContentClassifiers} from "@octokit/graphql-schema"
export const pullRequestNumber =
context?.payload?.pull_request?.number || +core.getInput("number", {required: false})
+core.getInput("number_force", {required: false}) ||
context?.payload?.pull_request?.number ||
+core.getInput("number", {required: false})
export const repo = buildRepo()
export const header = core.getInput("header", {required: false})