Skip to content

Commit 4656d6b

Browse files
committed
Add comment for get_merge_queue_prs
1 parent 4797781 commit 4656d6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/database/operations.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,10 @@ pub(crate) async fn delete_auto_build(
988988
.await
989989
}
990990

991+
/// Fetches pull requests eligible for merge:
992+
/// - Only approved PRs that are open and mergeable
993+
/// - Excludes PRs with failed/cancelled/timed-out auto builds
994+
/// - Excludes PRs that do not meet the tree closure priority threshold (if tree closed)
991995
pub(crate) async fn get_merge_queue_prs(
992996
executor: impl PgExecutor<'_>,
993997
repo: &GithubRepoName,

0 commit comments

Comments
 (0)