Skip to content

Conversation

felixmulder
Copy link
Contributor

Bot improvements include:

  • Deleting old jobs from PR, only keep the latest drone build
  • Check CLA and only approve last commit
  • Add some greetings to opened PRs helping people on where to sign CLA etc

@felixmulder felixmulder force-pushed the topic/improve-bot branch 2 times, most recently from 5b06ac6 to aa30c2b Compare April 25, 2017 09:17
@felixmulder
Copy link
Contributor Author

@dotty-bot: could you recheck this please?

@DarkDimius
Copy link
Contributor

Add some greetings to opened PRs helping people on where to sign CLA etc

would it be only for new commiters?

@dottybot
Copy link
Member

Sure thing, I got your back! ❤️

@felixmulder
Copy link
Contributor Author

@dotty-bot: hey, need you to recheck this again please.

@dottybot
Copy link
Member

Sure thing, I got your back! ❤️

@felixmulder
Copy link
Contributor Author

@dotty-bot: do you always say the same thing? Please recheck.

@dottybot
Copy link
Member

You got it, homie! 🙏

@felixmulder
Copy link
Contributor Author

@dotty-bot: I don't like you.

@dottybot
Copy link
Member

dottybot commented Apr 25, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: i don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a 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] =
Copy link
Contributor

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 {
Copy link
Contributor

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
Copy link
Contributor

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)(_ == _)
Copy link
Contributor

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 */
Copy link
Contributor

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:...

@felixmulder felixmulder merged commit 0de9004 into scala:master Apr 27, 2017
@felixmulder
Copy link
Contributor Author

Made the suggested changes (mostly). As this doesn't do anything inside the compiler, I cancelled the CI jobs.

@felixmulder
Copy link
Contributor Author

thanks @OlivierBlanvillain !

@@ -207,7 +204,7 @@ trait PullRequestService {
=> false
}

wrongTense || firstLine.last == '.' || firstLine.length > 100
wrongTense || firstLine.last == '.' || firstLine.length > 80
Copy link
Contributor

Choose a reason for hiding this comment

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

72

@felixmulder
Copy link
Contributor Author

felixmulder commented Apr 27, 2017 via email

@dottybot
Copy link
Member

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

@dottybot
Copy link
Member

Okidokey, boss! 👏

@smarter
Copy link
Member

smarter commented Aug 24, 2017

It lives!

@dottybot
Copy link
Member

dottybot commented Dec 7, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

4 similar comments
@dottybot
Copy link
Member

dottybot commented Dec 7, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

@dottybot
Copy link
Member

dottybot commented Dec 8, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

@dottybot
Copy link
Member

dottybot commented Dec 8, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

@dottybot
Copy link
Member

dottybot commented Dec 9, 2017

Hey, sorry - I could not understand what you meant by:

@dotty-bot: I don't like you.

I'm just a dumb bot after all 😢

I mostly understand when your mention contains these words:

  • (re)check (the) cla
  • recheck
  • restart drone

Maybe if you want to make me smarter, you could open a PR? 😍

@allanrenucci allanrenucci deleted the topic/improve-bot branch December 14, 2017 19:25
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.

5 participants