From 3aa5808717a349fe44fbfb9181ab6e3d2f86f15a Mon Sep 17 00:00:00 2001 From: himynameisdave Date: Thu, 21 Nov 2024 10:13:55 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=A3=EF=B8=8F=20Address=20CR=20feedback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- pkg/labeler.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eac8959..685cf7f 100644 --- a/README.md +++ b/README.md @@ -318,18 +318,18 @@ This condition is best used when with a schedule trigger Examples: ```yaml -age: +age-range: at-most: 1d ``` Will label PRs or issues that were created at most one day ago. ```yaml -age: - at-least: 1d +age-range: + at-least: 1w ``` -Will label PRs or issues that were created at least one day ago. +Will label PRs or issues that were created at least one week ago. The syntax for values is based on a number, followed by a suffix: diff --git a/pkg/labeler.go b/pkg/labeler.go index 7fb865a..5a9ac33 100644 --- a/pkg/labeler.go +++ b/pkg/labeler.go @@ -20,7 +20,7 @@ type SizeConfig struct { type LabelMatcher struct { Age string `yaml:"age,omitempty"` // Deprecated age config. - AgeRange *DurationConfig `yaml:"age,omitempty"` + AgeRange *DurationConfig `yaml:"age-range,omitempty"` AuthorCanMerge string `yaml:"author-can-merge"` Authors []string AuthorInTeam string `yaml:"author-in-team"`