SuffolkLITLab / docassemble-AssemblyLine-documentation

Legal form development and deployment process
https://assemblyline.suffolklitlab.org
9 stars 8 forks source link

Document renaming an interview repository. #441

Open samglover opened 6 months ago

samglover commented 6 months ago

Example. Renaming docassemble-OldName to docassemble-NewName.

Steps:

  1. Rename the repository in Settings / General. Using the example, change the repository name from docassemble-OldName to docassemble-NewName.
  2. Clone the repository locally and rename the interview folder within ./docassemble so it matches the repository name without the docassemble- prefix. Using the example, rename ./docassemble/OldName to ./docassemble/NewName.
  3. In setup.py in the repository's root directory, do a search and replace the old interview name with the new one. Using the example, find OldName and replace it with NewName.

Then you can pull the renamed repository to your Docassemble Playground.

samglover commented 4 months ago

From @nonprofittechy:

Here are my steps to rename a repository:

  1. Rename it on GitHub
  2. Pull Clone and create a new branch
  3. cd docassemble
  4. git mv OldName NewName
  5. vim setup.py
  6. :%s/OldName/NewName/g