Skip to content

Prepend PR body defaults to the selected template (if any) - #1611

Merged
vilmibm merged 4 commits into
cli:trunkfrom
dhleong:dhleong/pr-prepend-commit-bodies
Sep 9, 2020
Merged

vilmibm merged 4 commits into
cli:trunkfrom
dhleong:dhleong/pr-prepend-commit-bodies

Conversation

@dhleong

@dhleong dhleong commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

See #1570

Thought I'd go ahead and get the ball rolling with a simple change to address at least part of the issue linked above :)

@vilmibm vilmibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, unfortunately I just merged #1582 and, after merging trunk with this PR, the tests are failing. Sorry about that timing, but once this is reconciled with trunk I'm 👍

We could, alternatively, use t.Fatal... this matches the MkdirAll
invocation from github_template_test, however...
Also, avoid excessive amounts of newlines separating the two
@dhleong
dhleong force-pushed the dhleong/pr-prepend-commit-bodies branch from 42fc8dd to c7e7022 Compare September 9, 2020 00:26
@dhleong

dhleong commented Sep 9, 2020

Copy link
Copy Markdown
Contributor Author

Based against trunk, updated the failing test to reflect the inclusion of the "default" body before the template, and also added some quick logic to avoid having more than two newlines separating the template text and the "default" body.

@vilmibm
vilmibm self-requested a review September 9, 2020 16:00

@vilmibm vilmibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!!

@vilmibm
vilmibm merged commit 33e11f0 into cli:trunk Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants