fix(ci): reject omitted release proposal repository identity

This commit is contained in:
morluto
2026-10-24 07:19:26 +08:00
parent c6104d5095
commit 5c5f8e7cc4
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ jobs:
(.pullRequests.pageInfo.hasNextPage | type) != "boolean"
then error("Invalid GitHub repository connection") else . end |
.nameWithOwner as $repo | .pullRequests.nodes[] |
if (.number | type) != "number" or (.headRefName | type) != "string" or
if (.number | type) != "number" or (.headRefName | type) != "string" or (has("headRepository") | not) or
(.headRepository != null and (.headRepository.nameWithOwner | type) != "string")
then error("Invalid GitHub pull request") else . end |
select(.headRepository.nameWithOwner == $repo) |
@@ -257,6 +257,18 @@ it.each([
pages: [editorialPage([{ ...finalizedRelease, headRefName: null }])],
status: 0,
},
{
name: "missing head repository identity",
pages: [
editorialPage([
{
number: finalizedRelease.number,
headRefName: finalizedRelease.headRefName,
},
]),
],
status: 0,
},
{
name: "incomplete pagination",
pages: [editorialPage([], true)],