trustmaster / trac2github

Converts Trac milestones, tickets and comments into Github issues 2.0 using github api v3
49 stars 38 forks source link

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

Closed lukaseder closed 12 years ago

lukaseder commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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

trustmaster commented 12 years ago

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

lukaseder commented 12 years ago

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 commented 12 years ago

OK, I can roll it back.

trustmaster commented 12 years ago

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

lukaseder commented 12 years ago

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