forked from wayfair-incubator/telefonistka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SD-770 fixup unique target paths and multi promotion (#37)
Promotion PR description generated by Telefonistka contains all default promotion targets for a certain promotion path. This updates the prBody function to only list the promotion targets to which the promotion is supposed to happen for a certain promotion path. * Added a filterSkipPaths function when generating a pr comment. This will take the targetPaths and filter out any skipped paths from the final promotion pr comment. * Add getPromotionSkipPaths to find the component with fewest skip paths --------- Co-authored-by: Hannes Gustafsson <[email protected]>
- Loading branch information
1 parent
e695d4c
commit deb0692
Showing
3 changed files
with
137 additions
and
64 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
4 changes: 4 additions & 0 deletions
4
internal/pkg/githubapi/testdata/pr_body_multi_component.golden.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
↘️ #1 `sourcePath1` ➡️ | ||
`targetPath1` | ||
↘️ #2 `sourcePath2` ➡️ | ||
`targetPath2` |