500 from my post-commit script

mark.hellewell (at gmail)'s Avatar

mark.hellewell (at gmail)

20 Jul, 2009 12:51 PM

Hello, I'm getting a response 500 from my post-commit hook :( This is the XML I'm posting to Lighthouse:

  <?xml version="1.0" encoding="UTF-8"?>
  <changeset>
  <body>better comments</body>
  <changed-at type="datetime">2009-07-20 21:22:20 +1000</changed-at>
  <changes type="yaml">---
  - [M, postcodeinfo.py]
  - [M, postgeocode.py]
  </changes>
  <revision>e581238</revision>
  <title>mark hellewell committed changeset e581238</title>
  </changeset>

Is there something wrong with that YAML? The Python list I'm generating the YAML from looks like this:

  [['M', 'postcodeinfo.py'], ['M', 'postgeocode.py']]

Thanks!

  1. 1 Posted by mark.hellewell ... on 20 Jul, 2009 10:20 PM

    mark.hellewell (at gmail)'s Avatar

    I should provide more information! It does work sometimes... I think only when there's a single file that has been changed.

  2. 2 Posted by mark.hellewell ... on 22 Jul, 2009 06:00 AM

    mark.hellewell (at gmail)'s Avatar

    My 'changes' block of YAML was wrong.

    Your example at http://sera.lighthouseapp.com/api/changesets could do with modification :) The YAML accepted by the API must look like this:

    - - M
      - /trunk/test/unit/changeset_test.rb
    - - M
      - /trunk/app/models/changeset.rb
    - - M
      - /trunk/db/schema.rb
    

    Cheers!

  3. 3 Posted by Will Duncan on 22 Jul, 2009 06:05 AM

    Will Duncan's Avatar

    Thanks for the heads up and sorry about the delay in reply. We've been pretty busy and the API questions tend to get backed up a little.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac