Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'tag: assigned' filter #109

Merged
merged 2 commits into from
May 15, 2020

Conversation

everpeace
Copy link
Contributor

@everpeace everpeace commented May 15, 2020

Although assigned tag wasn't documented, I think it's very useful.

In this PR, I fixed below:

  • fixed pre-comment fetch rules for assigned tag
  • add 'assigned' tag in config document

f.TagRegex().String() returns "^assigned$" for "tag: assigned" filter
@@ -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$" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TagRegex object is instantiated with regex(...) method. This wraps tag string with ^ and $. So, the rule should compare with "^assigned$"

Copy link
Collaborator

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tstromberg tstromberg merged commit b3a2e48 into google:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants