Edgewall Software
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: yonasj@… 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)

Change History (1)

comment:1 by Christopher Lenz, 20 years ago

Resolution: wontfix
Status: newclosed

This is actually easy to do using the sqlite command-line utility:

sqlite /var/trac/projects/xyz \
       "SELECT COUNT(*) FROM ticket WHERE id = 1 AND status != 'closed'"

I don't think such a function should be added to TracAdmin, otherwise where would we stop?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.