Add number_force that overrides pull_request number (#1652)
Some checks are pending
Test / test (push) Waiting to run

* Add number_force that overrides pull_request event

* Add number_force input and tests for PR #1652

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* Delete pullRequestNumber.test.ts; simplify config.test.ts

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* Rewrite config.test.ts to test real src/config.ts code, not a mock of it

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
This commit is contained in:
Ross Williams 2026-03-13 12:46:05 +00:00 committed by GitHub
parent 14d4f1e429
commit 7cb1e16d25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 185 additions and 380 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})