-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In retrospect, the previous config for size was not very fortunate as it splits properties that have a semantic relation in two unrelated ones: - label: M size-above: 10 size-below: 100 In order to support file exclusions for the size calculation it'd make a cleaner config schema to have all size properties in a single Size node. This change introduces a `size` node as a condition configuration that replaces `size-above` and `size-below`, while respecting backwards compatibility. Older config files will continue working, but from now on the way to specify the file condition will be: - label: M above: 10 below: 100 Signed-off-by: Galo Navarro <anglorvaroa@gmail.com> * fixup! size: composite configuration --------- Signed-off-by: Galo Navarro <anglorvaroa@gmail.com>
- Loading branch information
Showing
7 changed files
with
138 additions
and
20 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
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
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
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,9 @@ | ||
version: 1 | ||
labels: | ||
- label: S | ||
size-below: 10 | ||
size-above: 1 | ||
- label: M | ||
size: | ||
above: 9 | ||
below: 100 |