This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for generating based on scraping the Github API. (#209)
* ✨ Add support for generating based on scraping the Github API. Includes general support for repo hosts and a specific implementation for Github. * 🎨 Switch to the non-deprecated way to make a fake client. * 🎨 Go mod tidy. * 🎨 Sync the install manifests too. * 🎨 Refactor to a table test. * 📝 Docs for the repo host generator. * 📝 Example for repo host generator. * 🎨 Add an E2E test for repo host generator. * ✏️ Typo in my E2E test. * 🎨 Regenerate the manifests with controller-get 0.3.0. The indentation style changed between versions. * 🎨 Regenerate the manifests with fixed Kustomize version. * 🎨 Tweaks from code review. * ✨ Add three new features, branchMatch filters, allBranches scanning mode for GitHub, and configurable clone protocol. The first two combined allow generating deployment projects for new branches automatically. The last allows using HTTPS clone URLs if needed for token authentication. * 🎨 Add a test for addBranches mode. * 📝 Remove outdated line re: which branches are scanned. * 🎨 Name -> SecretName for clarity since it doesn't otherwise say it's a reference to a secret. * 🎨 Mass rename of the subsystem from "repo host" to "SCM provider". Fingers crossed no lingering typos. * ✨ Reflow the logic dealing with multiple filters so it's a clearer OR then AND two-level system. This also swaps PathExists -> PathsExist so you can still check for multiple files if needed. * 🎨 Post merge go.sum fixing. Because no human can truly grok go.sum. * 🎨 Try to better handle rate limit errors from the GitHub unit tests. * 🎨 Switch the example to use https cloning since it's a public repo and we don't need to require an SSH key setup.
- Loading branch information