Skip to content

Create labels from ticket.type, ticket.component, ticket.severity, ticket.priority, ticket.resolution #2

Closed
lukaseder opened this Issue Jul 13, 2012 · 7 comments

2 participants

@lukaseder

It would be nice if the Trac tickets table fields type, component, severity, priority, resolution could be mapped to GitHub labels, e.g. with a custom prefix. For instance:

-- Get all "type labels"
SELECT DISTINCT CONCAT('Type: ', type) FROM ticket

-- Get all "component labels"
SELECT DISTINCT CONCAT('Component: ', component) FROM ticket

The migration script would then offer whether any of those 5 labels should be applied to migrated tickets, or not. For instance, a user could select to migrate only type, component, and resolution

@trustmaster
Owner

Unfortunately I haven't had a chance to work on this script since I have migrated my projects to GitHub. I've merged changes made by @danielbeardsley, it seems he started working on labels import.

It would be amazing to see some further work / pull requests.

@lukaseder

OK, I'll see if I can implement this. The PHP script looks straight-forward enough...

@trustmaster
Owner

Nice. I hope I haven't killed its straight-forwardness by the recent merge :)

@lukaseder

oops, now I see what you are talking about. I must've been working with an old version. The new one isn't finished, from what I see, so I guess those object-oriented types are not really useful... too bad

@trustmaster
Owner

OK, I can roll it back.

@trustmaster
Owner

Done. Have fun! Let me know if I can help you some way.

@lukaseder

Thanks a bunch! I've added working label support and some fixes to pull request #3.
I guess this ticket here can be closed

@lukaseder lukaseder closed this Jul 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.