Skip to content

Commit d532996

Browse files
committed
Fixed PR number
1 parent cc26c9d commit d532996

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/bors/handlers/review.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ pub(super) async fn command_close_tree(
145145
repo_state.repository(),
146146
TreeState::Closed {
147147
priority,
148-
source: format!("https://github.com/{}/pull/1", repo_state.repository()),
148+
source: format!(
149+
"https://github.com/{}/pull/{}",
150+
repo_state.repository(),
151+
pr.number
152+
),
149153
},
150154
)
151155
.await?;
@@ -479,7 +483,11 @@ mod tests {
479483
repo.unwrap().tree_state,
480484
TreeState::Closed {
481485
priority: 5,
482-
source: format!("https://github.com/{}/pull/1", default_repo_name()),
486+
source: format!(
487+
"https://github.com/{}/pull/{}",
488+
default_repo_name(),
489+
default_pr_number()
490+
),
483491
}
484492
);
485493

0 commit comments

Comments
 (0)