Detect unused Android feature flags with GitLab, LaunchDarkly, Jira & Slack
Android Feature Flag Cleanup Bot (GitLab + LaunchDarkly) This n8n automation detects unused (“dead”) feature flags in an Android Kotlin/Java codebase by comparing your GitLab repository code against LaunchDarkly’s fea...
Template notes
Android Feature Flag Cleanup Bot (GitLab + LaunchDarkly)
This n8n automation detects unused (“dead”) feature flags in an Android Kotlin/Java codebase by comparing your GitLab repository code against LaunchDarkly’s feature flag list.
It logs results in Google Sheets, creates Jira tickets for cleanup and sends Slack alerts automatically.
Who’s it for Android engineering teams using Kotlin/Java. Teams managing feature flags in LaunchDarkly. DevOps/QA teams wanting to reduce technical debt from stale flags.
How it works
1. Weekly Trigger runs the process. 2. GitLab Node fetches repository code. 3. Regex Extraction finds all feature flags in code. 4. LaunchDarkly API retrieves all configured flags. 5. Comparison Logic marks flags as “dead” if unused in code and archived or off in production. 6. Google Sheets stores flagged results. 7. Jira creates a ticket for each dead flag. 8. Slack notifies the team.
How to set up
1. Import JSON into n8n. 2. Connect credentials for: