Skip to content

chore(asf): require conversation resolution before merge#4660

Merged
Yicong-Huang merged 2 commits into
apache:mainfrom
Yicong-Huang:chore/asf-required-conversation-resolution
May 2, 2026
Merged

chore(asf): require conversation resolution before merge#4660
Yicong-Huang merged 2 commits into
apache:mainfrom
Yicong-Huang:chore/asf-required-conversation-resolution

Conversation

@Yicong-Huang
Copy link
Copy Markdown
Contributor

@Yicong-Huang Yicong-Huang commented May 2, 2026

What changes were proposed in this PR?

Add required_conversation_resolution: true to the main branch protection block in .asf.yaml.

       required_linear_history: true
+      required_conversation_resolution: true

This is a passthrough to GitHub's branch-protection API and will be synced by ASF INFRA's .asf.yaml bot.

Effect — PR review threads must be marked Resolved before merging. The approval flow is unchanged (1 approving review still required, no stale dismissal). Comment-style reviews remain non-blocking by themselves, but any inline conversation they create is gated.

Why — Today only "Approve" / "Request changes" gate merging; inline comments and Copilot review feedback do not. This change makes reviewer feedback explicitly addressable before merge, matching the practice of 40 other Apache repositories (airflow, pulsar, log4j2, cloudberry, fineract, ignite-3, nuttx, etc.).

Any related issues, documentation, discussions?

Closes #4659.

ASF INFRA .asf.yaml features: https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features

How was this PR tested?

This is a configuration change — no automated tests apply. Verification plan:

  1. After merge, ASF INFRA bot syncs .asf.yaml to GitHub branch protection on main.
  2. Open a follow-up PR with an unresolved inline comment and confirm the merge button is blocked until the thread is resolved.
  3. Approve flow regression — confirm a PR with 1 approval and all conversations resolved still merges.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7, 1M context)

Block merging when any PR review thread is unresolved. Closes apache#4659.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Yicong-Huang Yicong-Huang requested a review from aglinxinyuan May 2, 2026 07:09
@Yicong-Huang Yicong-Huang added the release/v1.1.0-incubating back porting to release/v1.1.0-incubating label May 2, 2026
@github-actions github-actions Bot added the ci changes related to CI label May 2, 2026
Copy link
Copy Markdown
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread .asf.yaml
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@5c7dac8). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4660   +/-   ##
=======================================
  Coverage        ?   67.73%           
=======================================
  Files           ?      176           
  Lines           ?    11557           
  Branches        ?        0           
=======================================
  Hits            ?     7828           
  Misses          ?     3729           
  Partials        ?        0           
Flag Coverage Δ
agent-service 28.73% <ø> (?)
python 83.45% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Yicong-Huang Yicong-Huang enabled auto-merge (squash) May 2, 2026 07:23
@Yicong-Huang Yicong-Huang merged commit d3d17b0 into apache:main May 2, 2026
26 checks passed
github-actions Bot pushed a commit that referenced this pull request May 2, 2026
### What changes were proposed in this PR?

Add `required_conversation_resolution: true` to the `main` branch
protection block in `.asf.yaml`.

```diff
       required_linear_history: true
+      required_conversation_resolution: true
```

This is a passthrough to GitHub's branch-protection API and will be
synced by ASF INFRA's `.asf.yaml` bot.

**Effect** — PR review threads must be marked Resolved before merging.
The approval flow is unchanged (1 approving review still required, no
stale dismissal). Comment-style reviews remain non-blocking by
themselves, but any inline conversation they create is gated.

**Why** — Today only "Approve" / "Request changes" gate merging; inline
comments and Copilot review feedback do not. This change makes reviewer
feedback explicitly addressable before merge, matching the practice of
40 other Apache repositories (airflow, pulsar, log4j2, cloudberry,
fineract, ignite-3, nuttx, etc.).

### Any related issues, documentation, discussions?

Closes #4659.

ASF INFRA `.asf.yaml` features:
https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features

### How was this PR tested?

This is a configuration change — no automated tests apply. Verification
plan:

1. After merge, ASF INFRA bot syncs `.asf.yaml` to GitHub branch
protection on `main`.
2. Open a follow-up PR with an unresolved inline comment and confirm the
merge button is blocked until the thread is resolved.
3. Approve flow regression — confirm a PR with 1 approval and all
conversations resolved still merges.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7, 1M context)

(backported from commit d3d17b0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI release/v1.1.0-incubating back porting to release/v1.1.0-incubating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require conversation resolution before PR merge

3 participants