Modify ↓
Opened 20 years ago
Closed 20 years ago
#561 closed defect (wontfix)
SVN integration could include ticket checking validity: 'trac-admin openticket 234'
Reported by: | Owned by: | daniel | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | admin/console | Version: | 0.7.1 |
Severity: | normal | Keywords: | trac admin subversion hook pre-commit |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Presently in my SVN repo I have a script in hook/pre-commit
if ! $(echo "$LOG" | grep '[#]' >/dev/null) ; then echo Commit must reference a ticket >&2 exit 1 fi
This only checks to make sure that all commits have a ticket referenced. It would be nice if I could use a trac-admin command to ensure the ticket is valid.
eg.
'trac-admin openticket 234'
trac rocks!
Thanks. Yonas.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
This is actually easy to do using the sqlite command-line utility:
I don't think such a function should be added to TracAdmin, otherwise where would we stop?