Test-infra: /lgtm doesn't take effect with text appended

Created on 14 Sep 2018  路  5Comments  路  Source: kubernetes/test-infra

Actual:
when I do "/lgtm bla bla", /lgtm doesn't actually apply.

Expected:
/lgtm should still work

Most helpful comment

IMO we should keep the current pattern of requiring commands to start on a new line and be the only thing on that line.

It is perhaps confusing the first time someone runs into it but it makes for simpler code. And humans are compatively good at adjusting this way.

Also: There's an option to make a GitHub approving review be considered /approve and/or /lgtm. I'd recommend enabling that functionality if you want a clearer lgtm process.

All 5 comments

@jessiezcc if you are upto it :) we just need to adjust the regex here :
https://github.com/kubernetes/test-infra/blob/master/prow/plugins/lgtm/lgtm.go#L36-L39

IMO we should keep the current pattern of requiring commands to start on a new line and be the only thing on that line.

It is perhaps confusing the first time someone runs into it but it makes for simpler code. And humans are compatively good at adjusting this way.

Also: There's an option to make a GitHub approving review be considered /approve and/or /lgtm. I'd recommend enabling that functionality if you want a clearer lgtm process.

yeah, we've kept these tight so that we're not for example, trying to parse github flavored markdown and figure out if these are in a comment block. commands work when they are

/foo

or:

/foo [argument]

And no other way. If you want to write a line with /foo and have it not work, you make the line not match by adding anything else on the line.

Looks like there is consensus that this is WAI.

/close

@stevekuznetsov: Closing this issue.

In response to this:

Looks like there is consensus that this is WAI.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjwagner picture cjwagner  路  3Comments

xiangpengzhao picture xiangpengzhao  路  3Comments

lavalamp picture lavalamp  路  3Comments

cblecker picture cblecker  路  4Comments

fejta picture fejta  路  4Comments