I was wondering if there is a way to create a script that is triggered by an SVN commit, and which would add an annotation in a google analytics profile?
This would
There is currently no way to create annotations via either of the Google Analytics APIs (Data Export API and Management API). Both APIs are currently read-only only for all operations.
There is a fairly popular (95,129,157,176,189, 253, 383 supporters) feature request, "Add Annotations update API" on the official Google Analytics issues page, but there's no known progress on this. It appears the only way to create annotations at the moment is manually, from within the Google Analytics account.