Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ clap = { version = "4", features = ["derive"] }
directories = "6"
toml = "0.8"
serde = { version = "1", features = ["derive"] }
urlencoding = "2"
which = "8"

[profile.release]
Expand Down
13 changes: 11 additions & 2 deletions src/bin/rustc_josh_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,19 @@ fn main() -> anyhow::Result<()> {
.context("cannot perform push")?;

// Open PR with `subtree update` title to silence the `no-merges` triagebot check
let merge_msg = format!(
r#"Subtree update of https://github.com/{}.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost"#,
ctx.config.full_repo_name(),
);
println!(
r#"You can create the rustc PR using the following URL:
https://github.com/{UPSTREAM_REPO}/compare/{username}:{branch}?quick_pull=1&title={}+subtree+update&body=r?+@ghost"#,
ctx.config.repo
https://github.com/{UPSTREAM_REPO}/compare/{username}:{branch}?quick_pull=1&title={}+subtree+update&body={}"#,
ctx.config.repo,
urlencoding::encode(&merge_msg)
);
}
}
Expand Down
Loading