From a1b7127de7101c32e8b32332dbd5d3d49b699e95 Mon Sep 17 00:00:00 2001 From: Shingo Omura Date: Fri, 15 May 2020 18:42:11 +0900 Subject: [PATCH 1/2] fix "tag: assinged" match. f.TagRegex().String() returns "^assigned$" for "tag: assigned" filter --- pkg/hubbub/match.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hubbub/match.go b/pkg/hubbub/match.go index 2a4533b..ead980c 100644 --- a/pkg/hubbub/match.go +++ b/pkg/hubbub/match.go @@ -80,7 +80,7 @@ func preFetchMatch(i GitHubItem, labels []*github.Label, fs []Filter) bool { } // This state can be performed without downloading comments - if f.TagRegex() != nil && f.TagRegex().String() == "assigned" { + if f.TagRegex() != nil && f.TagRegex().String() == "^assigned$" { // If assigned and no assignee, fail if !f.TagNegate() && i.GetAssignee() == nil { return false From e164740e9a7e0988dfd30c254ba50f68fb007b5f Mon Sep 17 00:00:00 2001 From: Shingo Omura Date: Fri, 15 May 2020 18:45:28 +0900 Subject: [PATCH 2/2] add 'assignee' tag in config doc. --- docs/config.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/config.md b/docs/config.md index 83f7620..4950388 100644 --- a/docs/config.md +++ b/docs/config.md @@ -109,6 +109,7 @@ Triage Party has an automatic tagging mechanism that adds annotations which can * `recv-q`: the original author commented with a question more recently than a member of the project has commented (may be waiting on an answer from a project member) * `member-last`: a member of the organization was the last commenter * `author-last`: the original author was the last commenter +* `assigned`: the issue or PR has been assigned to someone * `closed`: the issue or PR has been closed * `similar`: the issue or PR appears to be similar to another * `new-commits`: the PR has new commits since the last member response