Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

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

Open
gr2m opened this issue Jun 8, 2020 · 2 comments

Comments

@gr2m
Copy link
Owner

gr2m commented Jun 8, 2020

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
Copy link
Owner Author

gr2m commented Jun 8, 2020

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
Copy link
Owner Author

gr2m commented Jun 15, 2020

work in progress pull request:
gr2m/octokit-plugin-search-and-replace-pull-request#1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant