octokit-plugin-rename-branch icon indicating copy to clipboard operation
octokit-plugin-rename-branch copied to clipboard

Look for all `<current_name>` occurences in the code and replace them with the new branch name. Create a pull request for review

Open gr2m opened this issue 5 years ago • 2 comments

There is no simple way to avoid false positives, but there are several places where the current branch name needs to be replaced:

  • README badges
  • CI configurations: GitHub Actions, Travis, CircleCI, etc
  • Contributing docs

gr2m avatar Jun 08 '20 20:06 gr2m

I think I'd use GitHub's code search API and search for the terms

  • <current_name>
  • branch%3A<current_name>

The search does not seem to find all occurrences, but it does find all files with at least on occurrence, which is good enough for us.

gr2m avatar Jun 08 '20 21:06 gr2m

work in progress pull request: https://github.com/gr2m/octokit-plugin-search-and-replace-pull-request/pull/1

gr2m avatar Jun 15 '20 00:06 gr2m