@oss-autopilot/core 3.17.0 → 3.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.bundle.cjs +86 -83
- package/dist/core/status-determination.js +12 -0
- package/package.json +3 -3
|
@@ -113,7 +113,12 @@ function collectAllActionReasons(input) {
|
|
|
113
113
|
const { ciStatus, hasMergeConflict, hasUnrespondedComment, hasIncompleteChecklist, reviewDecision, lastMaintainerCommentDate, latestChangesRequestedDate, hasActionableCIFailure = true, } = input;
|
|
114
114
|
const commitDate = resolveContributorCommitDate(input);
|
|
115
115
|
const reasons = [];
|
|
116
|
+
// An unresponded maintainer comment on an already-approved, passing/unknown
|
|
117
|
+
// PR is an approval/LGTM note, not a request for action — it needs no
|
|
118
|
+
// contributor response and the PR is just awaiting merge (#1507).
|
|
119
|
+
const approvedAndMergeable = reviewDecision === 'approved' && (ciStatus === 'passing' || ciStatus === 'unknown');
|
|
116
120
|
if (hasUnrespondedComment &&
|
|
121
|
+
!approvedAndMergeable &&
|
|
117
122
|
!isCommentAddressedByCommit(commitDate, lastMaintainerCommentDate, latestChangesRequestedDate)) {
|
|
118
123
|
reasons.push('needs_response');
|
|
119
124
|
}
|
|
@@ -167,6 +172,13 @@ function determinePrimaryStatus(input) {
|
|
|
167
172
|
// the contributor can't fix them, so the relevant status is "waiting for re-review" (#502)
|
|
168
173
|
return { status: 'waiting_on_maintainer', waitReason: 'changes_addressed', stalenessTier };
|
|
169
174
|
}
|
|
175
|
+
// An unresponded comment on an already-approved, passing/unknown PR is an
|
|
176
|
+
// approval/LGTM note (e.g. a re-approval dated after the contributor's last
|
|
177
|
+
// commit), not a request for changes. It needs no contributor response, so
|
|
178
|
+
// the PR is waiting to be merged — don't trap it in needs_response (#1507).
|
|
179
|
+
if (reviewDecision === 'approved' && (ciStatus === 'passing' || ciStatus === 'unknown')) {
|
|
180
|
+
return { status: 'waiting_on_maintainer', waitReason: 'pending_merge', stalenessTier };
|
|
181
|
+
}
|
|
170
182
|
return { status: 'needs_addressing', actionReason: 'needs_response', stalenessTier };
|
|
171
183
|
}
|
|
172
184
|
// Review requested changes but no unresponded comment.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.2",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@octokit/plugin-retry": "^8.1.0",
|
|
56
56
|
"@octokit/plugin-throttling": "^11.0.3",
|
|
57
57
|
"@octokit/rest": "^22.0.1",
|
|
58
|
-
"@oss-scout/core": "^1.
|
|
58
|
+
"@oss-scout/core": "^1.3.0",
|
|
59
59
|
"commander": "^15.0.0",
|
|
60
60
|
"zod": "^4.4.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^26.1.0",
|
|
64
64
|
"@vitest/coverage-v8": "^4.1.8",
|
|
65
65
|
"esbuild": "^0.28.1",
|
|
66
66
|
"tsx": "^4.22.4",
|