-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As part of adding support for including the stack in PR bodies (see #264), we'll need to extend templating support to handle more than one section: ``` <!-- av pr stack begin --> { stack here } <!-- av pr stack end --> Here is the main PR body description. ``` The current `ParsePRMetadata()` implementation is efficient, but makes it hard to support another section. This PR updates `ParsePRMetadata` and `AddPRMetadata` to instead make use of substrings and `strings.Builder`. Performance isn't really a concern here - these PR bodies aren't that big and we spend a lot more time interacting with the `git` CLI anyway.
- Loading branch information
1 parent
9e40361
commit 17c7522
Showing
2 changed files
with
50 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters