Skip to content

Commit cc26c9d

Browse files
committed
Added treeclosed PR url in message
1 parent fdd0ae3 commit cc26c9d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/bors/handlers/review.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,7 @@ pub(super) async fn command_close_tree(
145145
repo_state.repository(),
146146
TreeState::Closed {
147147
priority,
148-
source: format!(
149-
"https://github.com/{}/pull/{}",
150-
repo_state.repository(),
151-
pr.number
152-
),
148+
source: format!("https://github.com/{}/pull/1", repo_state.repository()),
153149
},
154150
)
155151
.await?;
@@ -483,7 +479,7 @@ mod tests {
483479
repo.unwrap().tree_state,
484480
TreeState::Closed {
485481
priority: 5,
486-
source: "TODO".to_string()
482+
source: format!("https://github.com/{}/pull/1", default_repo_name()),
487483
}
488484
);
489485

0 commit comments

Comments
 (0)