Merge ~chad.smith/cloud-init:tools/migrate-script-v2 into cloud-init:master

Proposed by Chad Smith
Status: Merged
Approved by: Chad Smith
Approved revision: a6598cb8f85e607e24280538f154edfc1c5dec50
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~chad.smith/cloud-init:tools/migrate-script-v2
Merge into: cloud-init:master
Diff against target: 22 lines (+2/-2)
1 file modified
tools/migrate-lp-user-to-github (+2/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
cloud-init Commiters Pending
Review via email: mp+375273@code.launchpad.net

Commit message

tools: migrate script needs to write tools/.lp-to-git-user

Also fix commit message lint

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tools/migrate-lp-user-to-github b/tools/migrate-lp-user-to-github
2index 6b095a1..f012d31 100755
3--- a/tools/migrate-lp-user-to-github
4+++ b/tools/migrate-lp-user-to-github
5@@ -56,7 +56,7 @@ GITHUB_REMOTE_PATH_TMPL = 'git@github.com:{github_user}/cloud-init.git'
6
7
8 # Comment templates
9-COMMIT_MSG_TMPL = '''
10+COMMIT_MSG_TMPL = '''\
11 lp-to-git-users: adding {gh_username}
12
13 Mapped from {lp_username}
14@@ -146,7 +146,7 @@ def create_migration_branch(
15 MIGRATE_BRANCH_NAME))
16 create_publish_branch(upstream, MIGRATE_BRANCH_NAME)
17 lp_to_git_map = {}
18- lp_to_git_file = os.path.join(os.getcwd(), LP_TO_GIT_USER_FILE)
19+ lp_to_git_file = os.path.join(os.getcwd(), 'tools', LP_TO_GIT_USER_FILE)
20 if os.path.exists(lp_to_git_file):
21 with open(lp_to_git_file) as stream:
22 lp_to_git_map = util.load_json(stream.read())

Subscribers

People subscribed via source and target branches