Skip to content

Commit bf2d839

Browse files
committed
Fix CONTEXT_PREFIX in properties files
1 parent 29d79cc commit bf2d839

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

process_pr_v2.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5323,8 +5323,9 @@ def build_test_parameters(context: PRContext, test_request: "TestRequest") -> Di
53235323
prs.extend(test_request.prs)
53245324
params["PULL_REQUESTS"] = " ".join(prs)
53255325

5326-
# Context prefix
5327-
params["CONTEXT_PREFIX"] = "cms"
5326+
# Context prefix - includes PR ID for status context filtering
5327+
pr_id = context.issue.number
5328+
params["CONTEXT_PREFIX"] = f"cms/{pr_id}"
53285329

53295330
# Workflows
53305331
if test_request.workflows:
@@ -5368,9 +5369,10 @@ def create_code_checks_properties(
53685369
tool_conf: Optional tool configuration path
53695370
apply_patch: Whether to apply the patch after checks
53705371
"""
5372+
pr_id = context.issue.number
53715373
params = {
5372-
"PULL_REQUEST": str(context.issue.number),
5373-
"CONTEXT_PREFIX": "cms",
5374+
"PULL_REQUEST": str(pr_id),
5375+
"CONTEXT_PREFIX": f"cms/{pr_id}",
53745376
}
53755377

53765378
if tool_conf:

0 commit comments

Comments
 (0)