Watch
0
0
Fork
You've already forked hyperhive
0

review-classifier: a requested review runs even on a draft pr

This commit is contained in:
atlas 2026-11-02 18:45:36 +01:00
commit 4d8d43d677

View file

@ -157,9 +157,6 @@ pub struct PullForReview {
/// Why `diff` is the forge's `.diff`, with 3 lines of context, rather
/// than [`pull_diff::wide`]'s. `None` when it is the wide one.
pub narrowed: Option<String>,
/// The forge calls the PR a draft (a title starting with a
/// work-in-progress prefix).
pub draft: bool,
}
/// Files on a repo's branch, as [`Client::default_branch_files`] and
@ -1385,7 +1382,6 @@ impl Client {
.await
.with_context(|| format!("read PR {number} of {owner}/{repo}"))?;
let changed_files = pull.changed_files;
let draft = pull.draft.unwrap_or(false);
let head_sha = pull
.head
.and_then(|h| h.sha)
@ -1447,7 +1443,6 @@ impl Client {
commits,
diff,
narrowed,
draft,
})
}