The flow
Starts it 1Logic 16Service 11
The steps in the order they run, from what starts it.
- 1Receive GitHub WebhookWebhookStarts it
- 2Check if .env.staging ChangedCodeLogic
- 3Proceed Only if ENV ChangedIfLogic
- 4Fetch .env.staging from RepoGithubService
- 5Fetch gradle.properties from RepoGithubService
- 6Parse .env.staging into Key-ValueCodeLogic
- 7Parse gradle.properties into Key-ValueCodeLogic
- 8Combine Env & GradleMergeLogic
- 9Compare ENV and Gradle VariablesCodeLogic
- 10Generate New Branch NameCodeLogic
- 11Get Latest SHA of main BranchHttp RequestService
- 12Prepare SHA for Branch CreationSetLogic
- 13Create New Git BranchHttp RequestService
- 14Fetch .env.staging from New BranchGithubService
- 15Fetch build.gradle FileGithubService
- 16Fetch gradle.properties FileGithubService
- 17Decode .env.stagingCodeLogic
- 18Decode build.gradleCodeLogic
- 19Decode gradle.propertiesCodeLogic
- 20Combine Decoded Files for DiffMergeLogic
- 21Identify Config ChangesCodeLogic
- 22Apply ENV Changes to build.gradleCodeLogic
- 23Apply ENV Changes to gradle.propertiesCodeLogic
- 24Commit build.gradle Updates to BranchGithubService
- 25Commit gradle.properties Updates to BranchGithubService
- 26Prepare Pull Request DataSetLogic
- 27Create Pull RequestHttp RequestService
- 28Notify Team on SlackSlackService