Models and utilities used to save commits sent to your project repository (and its clones) and reported to trac.
Parameter: | author – dict containing the name and email of the commit author |
---|
Return type: | Boolean. True if it is a commit to a clone repository. |
---|
Save commit from GitHub json payload.
Raise an exception if json if not valid json string, or if it could not save a commit.
Note: it doesn’t roll back partial payload saved.
Get the commits on a specific range of date.
Parameters: |
|
---|---|
Git_url: | url of the main repository. |
Return type: | list (generator) of commit |
Return the first same exact commit.
Two commits are equals if the have the same id and identical if they have the same url. I assume a commit merged in an other repository will have the same id or hash key; id, is miss leading.
Raise a GitHubCommitNoRecord exception if it is the first commit to be reported.
Parse the commit message ticket action.
Accept to type of action: Ref and fixed. To reference a ticket use “issue 1” or “#1”. You can reference more than one ticket, like “Ref: #1, #2 and &3”.
Reference to ticket should be on the first line.
Return type: | a list (generator) of ‘(action, ticket id)’ tuple. |
---|