500 from my post-commit script
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!
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
1 Posted by mark.hellewell ... on 20 Jul, 2009 10:20 PM
I should provide more information! It does work sometimes... I think only when there's a single file that has been changed.
2 Posted by mark.hellewell ... on 22 Jul, 2009 06:00 AM
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:
Cheers!
3 Posted by Will Duncan on 22 Jul, 2009 06:05 AM
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.