![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
A Python script for bulk migrating repos from one org to other org GitHub repositories using the API
This tool helps you do the below tasks
Find new git URL for CI/CD changes (SNOW)
Migrates provided github repos from source org to target organization
Before running the tool for migration make all the repos private. You have to be an admin on the organization to do so
Github Migration
? What do you want to do? Make repos private
? Organization Name nike-platform-fulfillment
? github personal access token ****************************************
tesactions is internal, making it private
Made tesactions private for transfer
tesactions is internal, making it private
brew install python3
Run the below command to install the github migration tool
pip3 install --upgrade ghec-migration
Invoke the tool by running ghec-migration
Note: Set logging level by using environment variable LOGLEVEL
. Default is INFO
export LOGLEVEL=DEBUG
Output of the tool
➜ ~ ghec-migration
Github Migration
? What do you want to do? Github Migration
? Source github org nike-platform-fulfillment
? Target github org nike-internal
? Target Team Slug fulfillment-squad-artemis
? Target Team Admin Slug fulfillment-admins
? Team Prefix fulfillment
? Github access token <token>
? How do you want to get the repos? Provide list of Repos
? Provide the file with the repo names to be migrated /Users/vmari2/repos.txt
#output
Logged in as user vmari2_nike
Reading repos from /Users/vmari2/repos.txt
Transferring publishgempoc to target organization
Adding user vmari2_nike as adming to repo publishgempoc
User vmari2_nike added as admin to the repo publishgempoc
Renaming publishgempoc to fulfillment.publishgempoc
Renamed successfully
Renaming master to main
Renamed master to main
Transferring repo publishgempoc to nike-internal
Transfer completed for repo publishgempoc
changing team level access
Changed fulfillment to be a push
Changed fulfillment-squad-artemis to be a maintain
Changed fulfillment-admins to be a admin
Changed fulfillment-external-contributors to be a push
Made publishgempoc internal after transfer
Removing user vmari2_nike as adming to repo publishgempoc
User vmari2_nike removed as admin to the repo publishgempoc
Completed transfer for publishgempoc
We can change the github url in the bmx job using this tool
Generate a jenkins following the steps here
You can provide the list of jobs you want to change. Create a text file with all the jobs you want to reconfigure. Example can be found here
if you don't provide the list of jobs, all the jobs in the jenkins instance will be reconfigured
Github Migration
? What do you want to do? Jenkins BMX Migration
? Provide the jenkins url https://logistics.jenkins.bmx.nikecloud.com/
? Provide the file with the list of jobs. Leave blank if you want to reconfigure all jobs in the jenkins instance jobs.txt
? Jenkins Token **********************************
? Jenkins Username Vamsikrishna.Maringanti@nike.com
? New Github Org nike-internal
? Old Github Org(s). Provide comma separated values gflsdrepo
? Team Prefix fulfillment
? Provide the new credentials to Change credentials id. Leave blank if not changing
This script finds the repos on which the given team has the provided access levels. For example, if you want to update topics on repos where fulfillment-squad-artemis
has maintain
access provide the below information
Postion | Argument | Description |
---|---|---|
1 | Source_Org | the github organization name Ex nike-internal |
2 | team_slug | the team slug Ex: fulfillment-squad-artemis |
3 | access_level | the access level for the provided team - can take values ["push", "pull", "maintain", "admin", "triage"] |
4 | token | github access token |
5 | Additional Topics | Provide common separated topics ex: fulfillment,services |
Github Migration
? What do you want to do? Update topics
? Organization Name nike-internal
? Team Slug fulfillment-squad-artemis
? Select the permission level maintain
? Additional topics, comma separated artemis
? github personal access token ****************************************
As part of bulk migration, the CICD templates are updated with intermediate organization ex nike-platform-logistics
. You can use this tool to get the new URLs for the repos after migration
To run this, you will need the list of old repo URLS. This can be exported from service now
Create a text file with repo URLs. Run the tool selecting the right options
? What do you want to do? Find new git URL for CI/CD changes (SNOW)
? Source github organization nike-platform-fulfillment
? File path for the list of Old URLs old_urls.txt
? Github Token ****************************************
Getting new url for orderstatus
Getting new url for nikeidboxlabel
Getting new url for goodsissue
Getting new url for fgwschedulers
Completed process. The new git Urls can be found at new_references.csv
master
references to main
in Code like Jenkinsfile, etcTODO
FAQs
A Python script for bulk migrating repos from one org to other org GitHub repositories using the API
We found that ghec-migration demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.