feat: remove duplicate ad-revenue key - #81
Merged
vgupta98 merged 2 commits intoApr 14, 2026
Merged
Conversation
…promotion events Remove redundant kAppsFlyerAdRevenueAdType mapping from ECommPromotionViewed and ECommPromotionClicked handlers, keeping only the string literal "af_adrev_ad_type" which matches the original AFEventParamAdRevenueAdType behavior. Scanned-by: gitleaks 8.29.0
The delete-merged-action step used secrets.GITHUB_TOKEN which is restricted to read-only by job-level permissions. Replace with the app token that already has contents:write permission. Scanned-by: gitleaks 8.29.0
vgupta98
marked this pull request as ready for review
April 13, 2026 09:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Remove duplicate
kAppsFlyerAdRevenueAdTypekey mapping in promotion events (Promotion ViewedandPromotion Clicked) and fix a silent CI failure where the release branch deletion step lacked write permissions.Type of change
Implementation Details
RudderAppsflyerIntegration.m, thePromotion ViewedandPromotion Clickedevent handlers were setting the sameCREATIVEproperty value to both@"af_adrev_ad_type"(literal string) andkAppsFlyerAdRevenueAdType(SDK constant that resolves toaf_adrev_ad_type). Removed the redundantkAppsFlyerAdRevenueAdTypeline in both handlers.publish-new-release.yml, the "Delete release branch" step usedsecrets.GITHUB_TOKENwhich is restricted to read-only by the job-levelpermissions: contents: readadded during the SEC-58 migration. Replaced with the app token (steps.generate-token.outputs.token) that already hascontents: writepermission.Checklist
How to test?
Promotion ViewedorPromotion Clickedevent and verify thataf_adrev_ad_typeis set once (not duplicated) in the AppsFlyer event properties.deleteRefcall).Breaking Changes
None
Maintainers Checklist
Screenshots (if applicable)
N/A
Additional Context
The CI fix addresses a silent failure introduced by the SEC-58 PAT-to-App-Token migration. The
koj-co/delete-merged-actionswallows API errors, so the step appeared to succeed even when thedeleteRefcall returned a 403. Repos with thedelete_branch_on_mergeGitHub setting enabled may not notice the issue since GitHub auto-deletes the branch on merge.