richardkmichael / buy-my-beer

Make broken builds a thing of the past! Broken builds cost you a beer!
1 stars 0 forks source link

Builds should be created by JSON POST. #24

Open richardkmichael opened 13 years ago

richardkmichael commented 13 years ago

This is weird. We've received last_commiter as an email address but we need it as a User

password = User.send(:generate_token, 'encrypted_password')
richardkmichael commented 12 years ago

SHA1 a17df38f2480d273a65a860e3ba52bb110ae5cb7

The POST'd build requires extra attributes not required by the actual Build model.

{
  'build' : {
    'last_commiter' : <email_address>,
    'uuid' : <project_uuid>
  }
}