-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bot improvements - CLA checks, killing old jobs, nagging about form #2304
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
Conversation
5b06ac6
to
aa30c2b
Compare
@dotty-bot: could you recheck this please? |
would it be only for new commiters? |
aa30c2b
to
51f8bc1
Compare
Sure thing, I got your back! ❤️ |
@dotty-bot: hey, need you to recheck this again please. |
Sure thing, I got your back! ❤️ |
@dotty-bot: do you always say the same thing? Please recheck. |
You got it, homie! 🙏 |
@dotty-bot: I don't like you. |
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
||
def shutdownClient(client: Client): Unit = | ||
client.shutdownNow() | ||
def shutdownClient(client: Client): Task[Unit] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this over client.shutdown
?
val firstWord = firstLine.takeWhile(x => x != ':' && x != ' ') | ||
val containsColon = firstLine.contains(':') | ||
|
||
val wrongTense = firstWord match { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆
=> false | ||
} | ||
|
||
wrongTense || firstLine.last == '.' || firstLine.length > 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 72. Github starts wrapping first lines after that: https://github.com/OlivierBlanvillain/dotty/commits/git-test
(If change, don't forget to also update the message)
cancellable = statuses.filter(status => status.state == "pending" && status.context == droneContext) | ||
runningJobs = cancellable.map(_.target_url.split('/').last.toInt) | ||
cancelled <- Task.gatherUnordered(runningJobs.map(Drone.stopBuild(_, droneToken))) | ||
} yield cancelled.foldLeft(true)(_ == _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.forall(identity)
:)
def extractMention(body: String): Option[String] = | ||
body.lines.find(_.startsWith("@dotty-bot:")) | ||
|
||
/** TODO: The implementation here could be quite elegant if we used a trie instead */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can turn this into a Note:
...
Made the suggested changes (mostly). As this doesn't do anything inside the compiler, I cancelled the CI jobs. |
thanks @OlivierBlanvillain ! |
@@ -207,7 +204,7 @@ trait PullRequestService { | |||
=> false | |||
} | |||
|
|||
wrongTense || firstLine.last == '.' || firstLine.length > 100 | |||
wrongTense || firstLine.last == '.' || firstLine.length > 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
72
I'm telling people that it's 72 (see bot message), but come on - let's
allow a bit of slack ;)
…On Thu, Apr 27, 2017, 11:55 Olivier Blanvillain ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In bot/src/dotty/tools/bot/PullRequestService.scala
<#2304 (comment)>:
> @@ -207,7 +204,7 @@ trait PullRequestService {
=> false
}
- wrongTense || firstLine.last == '.' || firstLine.length > 100
+ wrongTense || firstLine.last == '.' || firstLine.length > 80
72
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2304 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdYwTjWOs3h2r9asj1iajUBjFSiFYpvks5r0GYNgaJpZM4NHMz2>
.
|
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
Okidokey, boss! 👏 |
It lives! |
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
4 similar comments
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
Hey, sorry - I could not understand what you meant by:
I'm just a dumb bot after all 😢 I mostly understand when your mention contains these words:
Maybe if you want to make me smarter, you could open a PR? 😍 |
Bot improvements include: