Description Usage Arguments Details Value
Trac ticket IDs are often referenced in git commit messages as e.g. #123
.
Assuming that tickets have been converted to issues and pushed to GitHub this function
can be used in a script with git filter-branch
to rewrite commit messages
and replacing ticket references with issue references.
1 | link_issue(ticket_id, db)
|
ticket_id |
character string of the form |
db |
data frame mapping tickets to issues, see Details |
The data frame must contain columns trac_ticket_id
and
gh_issue_number
containing Trac ticket ID and corresponding GH issue
number.
If the ticket_id
number is found in db
it is replaced with a
string #XXX
where XXX
is the corresponding issue number.
Original Trac ticket ID is also displayed in square brackets. If
ticket_id
is not found in db
, the original reference is
replaced with trac ticket info in square brackets.
String with ticket reference replaced with GH reference (if found in
db
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.