Skip to content

Commit 51f2a52

Browse files
xtexxMingcongBai
authored andcommitted
Revert "feat: support dickens of fork PRs"
This reverts commit ed3335a.
1 parent fe965d4 commit 51f2a52

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/bot.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,7 @@ pub async fn answer(bot: Bot, msg: Message, cmd: Command, pool: DbPool) -> Respo
635635
.await
636636
{
637637
Ok(pr) => match dickens::topic::report(
638-
&if pr.head.repo.as_ref().and_then(|x| x.fork).unwrap_or(false) {
639-
Cow::Owned(format!("pr{pr_number}"))
640-
} else {
641-
Cow::Borrowed(pr.head.ref_field.as_str())
642-
},
638+
pr.head.ref_field.as_str(),
643639
ARGS.local_repo.clone(),
644640
)
645641
.await

0 commit comments

Comments
 (0)