TweetingIfttt - PerfectCarl/androidannotations GitHub Wiki

TODO: URLs are not valid anymore.

Introduction

AndroidAnnotations bug fixes, snapshot deployments and new releases are automatically tweeted on the @AndAnnotations twitter account. To do so, we use ifttt, which means if this then that.

Quote from ifttt website:

ifttt puts the internet to work for you by creating tasks that fit this simple structure: if this then that

Think of all the things you could do if you were able to define any task as: when something happens (this) then do something else (that).

If may have some invitations left, ask @Piwai on twitter if you want to try out this nice service.

Details

Tweeting bug fixes

We look for the "Fixed" keyword in the updates feed, rather than the issues feed, because the generated entry title is more readable.

Trigger

Action

  • Twitter > Post a new tweet
  • Content: Fixed: {{EntryTitle}} {{EntryUrl}}

Tweeting new snapshot deployments

Since the Maven snapshot repository is hosted on the Google Code svn, we can use the svnchanges feed on the repository snapshot path. The trick here is to look for a .zip keyword (when the assembly zip is uploaded).

Trigger

Action

  • Twitter > Post a new tweet
  • Content: New #AndroidAnnotations snapshot deployed on the snapshot repository! {{EntryUrl}}

Tweeting new releases

Since the Maven release repository is hosted on the Google Code svn, we can use the svnchanges feed on the repository release path. We look for a commit where the maven-metadata.xml file is updated, for the androidannotations artifactId.

Trigger

Action

  • Twitter > Post a new tweet
  • Content: A new release of #AndroidAnnotations has been deployed on the Maven repository! {{EntryUrl}} (Release Notes: http://goo.gl/3RtiM)