Skip to content

Add --lock-source-repo option.#589

Merged
dylan-smith merged 13 commits intogithub:mainfrom
robandpdx:lock-source-repo
Aug 24, 2022
Merged

Add --lock-source-repo option.#589
dylan-smith merged 13 commits intogithub:mainfrom
robandpdx:lock-source-repo

Conversation

@robandpdx
Copy link
Copy Markdown
Contributor

@robandpdx robandpdx commented Aug 19, 2022

This change addresses #385 by adding the cli option --lock-source-repo.

For GHES source, this uses the lock_repositories option as documented here.

For GHEC source, this uses the new lockSource option in the GraphAPI mentioned here.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 19, 2022

Unit Test Results

500 tests   500 ✔️  24s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit f6ca32c.

♻️ This comment has been updated with latest results.

@dylan-smith dylan-smith mentioned this pull request Aug 23, 2022
5 tasks
dylan-smith added a commit that referenced this pull request Aug 23, 2022
<!--
For the checkboxes below you must check each one to indicate that you either did the relevant task, or considered it and decided there was nothing that needed doing
-->

In `gei migrate-repo` the function `LogAndValidateOptions()` had gotten so large that `dotnet format` was starting to complain if you added anything new to it. Like in this other PR: #589

I refactored it into separate `LogOptions()` and `ValidateOptions()` functions, which I think is better even if our linter didn't complain.

This is pre-req work for the lock-repo PR and issue #385 

- [x] Did you write/update appropriate tests
- [x] Release notes updated (if appropriate)
- [x] Appropriate logging output
- [x] Issue linked
- [x] Docs updated (or issue created)

<!--
For docs we should review the docs at:
https://docs.github.com/en/early-access/github/migrating-with-github-enterprise-importer
and the README.md in this repo

If a doc update is required based on the changes in this PR, it is sufficient to create an issue and link to it here. The doc update can be made later/separately.

The process to update the docs can be found here:
https://github.com/github/docs-early-access#opening-prs

The markdown files are here: 
https://github.com/github/docs-early-access/tree/main/content/github/migrating-with-github-enterprise-importer
-->
@github-actions
Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
gei 86% 87% 359
ado2gh 88% 84% 498
bbs2gh 44% 24% 51
Octoshift 92% 78% 696
Summary 88% (4480 / 5096) 81% (961 / 1192) 1604

@github-actions
Copy link
Copy Markdown

Integration Test Results

4 tests  ±0   4 ✔️ ±0   14m 20s ⏱️ + 4m 3s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ±0 

Results for commit f6ca32c. ± Comparison against base commit 4fb99ee.

@dylan-smith dylan-smith merged commit d5871d0 into github:main Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants