File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
crates/rust-project-goals-cli/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -361,9 +361,19 @@ fn initialize_issues<'doc>(
361
361
362
362
let link_text = goal_document_link ( timeframe, & desired_issue. goal_document ) ;
363
363
if !existing_issue. body . contains ( & link_text) {
364
+ // Let's update the tracking issue to the new goal description, while keeping
365
+ // the old text in case we need it. It's surprisingly hard to get out of GH
366
+ // otherwise.
367
+ let body = format ! (
368
+ "{desired_body}\n ---\n Note: we have updated the body to match the \
369
+ {timeframe} goal. Your original text is preserved below. \
370
+ <details>\n {existing_body}\n </details>",
371
+ desired_body = desired_issue. body,
372
+ existing_body = existing_issue. body,
373
+ ) ;
364
374
actions. insert ( GithubAction :: UpdateIssueBody {
365
375
number : existing_issue. number ,
366
- body : desired_issue . body ,
376
+ body,
367
377
} ) ;
368
378
}
369
379
You can’t perform that action at this time.
0 commit comments