mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-11 17:00:05 +00:00
Add number_force that overrides pull_request number (#1652)
Some checks are pending
Test / test (push) Waiting to run
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:
parent
14d4f1e429
commit
7cb1e16d25
4 changed files with 185 additions and 380 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue