pullrequests: add PullRequest.nice_id method Currently, a pull request id is referenced as #5, and the '#' symbol is fixed and repeated in several places. T...

patrickdp committed on 2015-04-17 10:14:19
branch: default
tag: tip
changeset: 196c4644
pullrequests: add PullRequest.nice_id method

Currently, a pull request id is referenced as #5, and the '#' symbol is
fixed and repeated in several places. This commit adds a class method
make_nice_id, that returns a string reference to a pull request,
currently in the form '#5'.

This function could be overridden by an organization if they need references
in another form, for example PR-5.

The method nice_id uses this for the pullrequest's own id.

 M kallithea/lib/helpers.py (5 lines added, 2 lines removed)
 M kallithea/model/comment.py (3 lines added, 3 lines removed)
 M kallithea/model/db.py (12 lines added, 2 lines removed)
 M kallithea/model/notification.py (2 lines added, 2 lines removed)
 M kallithea/model/pull_request.py (3 lines added, 3 lines removed)
 M kallithea/templates/changelog/changelog.html (1 lines added, 1 lines removed)
 M kallithea/templates/changelog/changelog_summary_data.html (1 lines added, 1 lines removed)
 M kallithea/templates/pullrequests/pullrequest_show.html (2 lines added, 2 lines removed)
_______________________________________________
kallithea-general mailing list
[email protected]
http://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to