Fix codecov changes#2422
Conversation
Greptile SummaryThis PR fixes the Codecov configuration and refactors the PR labelling workflow to use
Confidence Score: 5/5Safe to merge — both files make targeted, low-risk corrections to CI configuration. The codecov change simply removes explicit boolean overrides so the service uses its defaults. The workflow change correctly switches to the workflow_run event, handles fork PRs via SHA fallback, and iterates over all associated PR numbers rather than assuming a single one. No functional regressions are introduced in the labelling logic. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant GH as GitHub
participant CI as ci workflow
participant PL as pr-label workflow
Dev->>GH: Push to PR
GH->>PL: pull_request_target: synchronize
PL->>GH: "Remove ready-to-merge label (ciOk=false)"
GH->>CI: Trigger ci workflow (pull_request event)
CI-->>GH: Workflow completed
GH->>PL: "workflow_run: completed (event=pull_request)"
PL->>GH: listJobsForWorkflowRun(run_id)
GH-->>PL: jobs list
alt Same-repo PR
PL->>PL: "prNumbers = workflow_run.pull_requests[].number"
else Fork PR (pull_requests is empty)
PL->>GH: listPullRequestsAssociatedWithCommit(head_sha)
GH-->>PL: open PRs
PL->>PL: "prNumbers = filtered open PRs"
end
alt "ciComplete.conclusion === 'success'"
PL->>GH: addLabel(ready-to-merge) for each PR
else CI failed or job not found
PL->>GH: removeLabel(ready-to-merge) for each PR
end
Reviews (2): Last reviewed commit: "Edge case: multiple PRs" | Re-trigger Greptile |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Previous PR (#2367) doesn't seem to have worked correctly. Hopefully this will work now..