Skip to content

Commit bcf1a50

Browse files
authored
add subdir to PR body (#471)
1 parent 3dc8e8b commit bcf1a50

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/commentbot/CommentBot.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function make_pull_request(pp::ProcessedParams, rp::RequestParams, rbrn::RegBran
8989
version=ver,
9090
commit=pp.sha,
9191
release_notes=rp.release_notes,
92+
subdir=subdir,
9293
reviewer="$(mention(reviewer))",
9394
reference=ref,
9495
meta=enc_meta,

src/pull_request.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function pull_request_contents(;
99
version::VersionNumber,
1010
commit::AbstractString,
1111
release_notes::AbstractString,
12+
subdir::AbstractString="",
1213
gitref::AbstractString="",
1314
reviewer::AbstractString="",
1415
reference::AbstractString="",
@@ -30,6 +31,8 @@ function pull_request_contents(;
3031
"- Commit: $commit",
3132
]
3233

34+
isempty(subdir) || insert!(lines, 3, "- Subdirectory: $subdir")
35+
3336
isempty(gitref) || push!(lines, "- Git reference: $gitref")
3437
isempty(reviewer) || push!(lines, "- Reviewed by: $reviewer")
3538
isempty(reference) || push!(lines, "- Reference: $reference")

src/webui/WebUI.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function action(regdata::RegistrationData, zsock::RequestSocket)
208208
version=regdata.project.version,
209209
commit=regdata.commit,
210210
release_notes=regdata.notes,
211+
subdir=regdata.subdir,
211212
description=description,
212213
)
213214

0 commit comments

Comments
 (0)