-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket migrate #13
Merged
Merged
Ticket migrate #13
Changes from 24 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
6e1c827
Parse Trac component, priority, and keywords into GitHub labels.
danuker 9d60fa7
Remove obsolete comment.
danuker 1102559
Add assignee mapping.
danuker b6f72ad
Read Trac DB, convert to RST.
danuker a9779e6
Add requests dependency.
danuker e345b6e
Order tickets to preserve Trac ID.
danuker a2bdfd8
Parse TracWiki content.
danuker 472ee6f
Fix multi-repo case and tests.
danuker 198d18d
Convert links to Markdown.
danuker a6adc83
Add trac2down.
danuker f2b42f6
Initialize TSV record of created tickets.
danuker fa024ca
Formatting and order works on staging.
danuker 5e92053
Write dates in ticket body. Print ID preservation stats.
danuker 9369649
Monkeypatch the SUT to use the test config.
danuker f3685e1
Sort code from abstract to low-level.
danuker 91e1c68
Add links to GH PR.
danuker 67b2316
Ticket closing, status label, pr link, stats.
danuker 57ff302
Ignore tickets created.
danuker 6e3d5d3
Assign project; more UX features.
danuker 8cea5e4
Add file to stop Git complaining.
danuker 755c84a
Merge branch 'main' into ticket_migrate
danuker d01f21f
Fix CI tests.
danuker 342d2da
Remove needless six import.
danuker be84c88
More test monkeypatching.
danuker 9ce2943
Delete generated TSV.
danuker 199868a
Address feedback.
danuker faa73fc
Address feedback.
danuker 64fa971
Close created projects. Refactor DRY_RUN behavior.
danuker 9fc059e
Update README.
danuker cc916d9
Process ticket links.
danuker 5f0ef18
Fix some bugs.
danuker afeef86
Fix empty project case.
danuker 2101e5a
Add bulk issue creation (Golden Comet).
danuker 63f3cee
Read last submitted GitHub ID.
danuker 7f5d8a7
Updates based on feedback.
danuker 59160d2
Acknowledge less debugging possibility.
danuker 8543716
Mention creator with at-sign.
danuker 7247ad7
Issue linking.
danuker 5adc2bd
Detail script purpose.
danuker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Trac User to GitHub user mapping | ||
# Trac User to GitHub user mapping. | ||
USER_MAPPING = { | ||
'adi': ('adiroiban', 'Adi Roiban <adi.roiban@chevah.com>'), | ||
'danuker': ('danuker', 'Dan Haiduc <danuthaiduc@gmail.com>'), | ||
} | ||
|
||
TRAC_TICKET_PREFIX = 'https://trac.chevah.com/ticket/' | ||
|
@@ -10,3 +11,22 @@ TRAC_TICKET_PREFIX = 'https://trac.chevah.com/ticket/' | |
DEFAULT_GITHUB_USER = None | ||
|
||
FILE_EXTENSION = '.mediawiki' | ||
|
||
# Trac ticket Component to GitHub repository mapping. | ||
REPOSITORY_MAPPING = { | ||
'client': 'client', | ||
'commons': 'commons', | ||
'trac-migration-staging': 'trac-migration-staging', | ||
} | ||
|
||
# GitHub repository for Trac tickets with Component not in the mapping. | ||
FALLBACK_REPOSITORY = 'server' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We can more easily exclude these repositories from the |
||
|
||
# Owner of GitHub repositories where to create issues. | ||
OWNER = 'chevah' | ||
|
||
# The user to create the issues through the API. | ||
# Create a token with `repo` permissions here: | ||
# https://github.com/settings/tokens | ||
OAUTH_USER = 'danuker' | ||
OAUTH_TOKEN = 'ghp_qwertyuiop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Trac User to GitHub user mapping. | ||
# This is the configuration used by the test suite. | ||
|
||
USER_MAPPING = { | ||
'adi': ('adiroiban', 'Adi Roiban <adi.roiban@chevah.com>'), | ||
'danuker': ('danuker', 'Dan Haiduc <danuthaiduc@gmail.com>'), | ||
} | ||
|
||
TRAC_TICKET_PREFIX = 'https://trac.chevah.com/ticket/' | ||
|
||
# Trac ticket Component to GitHub repository mapping. | ||
REPOSITORY_MAPPING = { | ||
'client': 'client', | ||
'commons': 'commons', | ||
'trac-migration-staging': 'trac-migration-staging', | ||
} | ||
|
||
# GitHub repository for Trac tickets with Component not in the mapping. | ||
FALLBACK_REPOSITORY = 'server' | ||
|
||
# Owner of GitHub repositories where to create issues. | ||
OWNER = 'chevah' | ||
|
||
# The user to create the issues through the API. | ||
# Create a token with `repo` permissions here: | ||
# https://github.com/settings/tokens | ||
OAUTH_USER = 'danuker' | ||
OAUTH_TOKEN = 'ghp_qwertyuiop' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this step is also needed for Wiki migration