-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1835 from rudderlabs/release/v1.99.0
chore(release): pull release/v1.99.0 into main
- Loading branch information
Showing
71 changed files
with
1,780 additions
and
220 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check Generated Constants | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
check-generated: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm run setup | ||
|
||
- name: Run generate constants | ||
run: npm run generate:constants | ||
|
||
- name: Check Git state | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "::error::Generated constants are not up-to-date. Run 'npm run generate:constants' and commit the changes."; | ||
echo "Here are the differences:"; | ||
git diff || true 2>&1; | ||
exit 1; | ||
else | ||
echo "Git state is clean."; | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Raise PR for Destination Constants | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
env: | ||
BRANCH_NAME: fix/gh-update-destinations-ts | ||
SRC_FILE: generated/Destinations.ts | ||
DEST_PATH: packages/analytics-js-common/src/constants/integrations/Destinations.ts | ||
|
||
jobs: | ||
check_changes_and_raise_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: develop | ||
|
||
- name: Checkout Destination Repo | ||
run: | | ||
git clone https://github.com/rudderlabs/rudder-sdk-js.git dest-repo || exit 1 | ||
cd dest-repo | ||
git checkout ${{ env.BRANCH_NAME }} || git checkout -b ${{ env.BRANCH_NAME }} | ||
- name: Compare Destinations.ts | ||
id: compare_files | ||
run: | | ||
if cmp -s "${{ env.SRC_FILE }}" "dest-repo/${{ env.DEST_PATH }}"; then | ||
echo "No changes detected." > "result.txt" | ||
echo "pr_required=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "Changes detected." > "result.txt" | ||
echo "pr_required=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Commit and Push Changes | ||
if: steps.compare_files.outputs.pr_required == 'true' | ||
run: | | ||
cd dest-repo | ||
cp "../generated/Destinations.ts" "packages/analytics-js-common/src/constants/integrations/Destinations.ts" | ||
git add packages/analytics-js-common/src/constants/integrations/Destinations.ts | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf "https://github.com/" | ||
git commit -m "fix: update destinations.ts" | ||
git push origin ${{ env.BRANCH_NAME }} | ||
- name: Create or Update PR | ||
if: steps.compare_files.outputs.pr_required == 'true' | ||
env: | ||
GH_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
cd dest-repo | ||
EXISTING_PR=$(gh pr list --head ${{ env.BRANCH_NAME }} --json number --jq ".[0].number") | ||
if [ -z "$EXISTING_PR" ]; then | ||
gh pr create \ | ||
--title "fix: update destination constants" \ | ||
--body "$(cat <<EOF | ||
This PR updates the destination constants file. | ||
**Changes:** | ||
- Updated \`Destinations.ts\` with latest constants | ||
NOTE: This PR was automatically generated by GitHub Actions. | ||
EOF | ||
)" \ | ||
--label "automated,dependencies" | ||
else | ||
echo "PR already exists: $EXISTING_PR" | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run generate:constants | ||
npm run pre-commit |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
GENERATED - DO NOT EDIT | ||
This file is generated from the templates/Destinations.dart.template file. | ||
Original file: https://github.com/rudderlabs/rudder-integrations-config/blob/develop/generated/Destinations.dart | ||
NOTE: Contains only constants for device mode destinations | ||
*/ | ||
|
||
class Destinations { | ||
|
||
static const String ADJ_NAME = 'ADJ'; | ||
|
||
static const String ADJ_DISPLAY_NAME = 'Adjust'; | ||
|
||
static const String AF_NAME = 'AF'; | ||
|
||
static const String AF_DISPLAY_NAME = 'AppsFlyer'; | ||
|
||
static const String AM_NAME = 'AM'; | ||
|
||
static const String AM_DISPLAY_NAME = 'Amplitude'; | ||
|
||
static const String APPCENTER_NAME = 'APPCENTER'; | ||
|
||
static const String APPCENTER_DISPLAY_NAME = 'App Center'; | ||
|
||
static const String BRAZE_NAME = 'BRAZE'; | ||
|
||
static const String BRAZE_DISPLAY_NAME = 'Braze'; | ||
|
||
static const String FIREBASE_NAME = 'FIREBASE'; | ||
|
||
static const String FIREBASE_DISPLAY_NAME = 'Firebase'; | ||
|
||
static const String KOCHAVA_NAME = 'KOCHAVA'; | ||
|
||
static const String KOCHAVA_DISPLAY_NAME = 'Kochava'; | ||
|
||
static const String LEANPLUM_NAME = 'LEANPLUM'; | ||
|
||
static const String LEANPLUM_DISPLAY_NAME = 'Leanplum'; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* | ||
GENERATED - DO NOT EDIT | ||
This file is generated from the templates/Destinations.java.template file. | ||
Original file: https://github.com/rudderlabs/rudder-integrations-config/blob/develop/generated/Destinations.java | ||
NOTE: Contains only constants for device mode destinations | ||
*/ | ||
|
||
public class Destinations { | ||
|
||
public static final String ADJ_NAME = "ADJ"; | ||
|
||
public static final String ADJ_DISPLAY_NAME = "Adjust"; | ||
|
||
public static final String ADOBE_ANALYTICS_NAME = "ADOBE_ANALYTICS"; | ||
|
||
public static final String ADOBE_ANALYTICS_DISPLAY_NAME = "Adobe Analytics"; | ||
|
||
public static final String AF_NAME = "AF"; | ||
|
||
public static final String AF_DISPLAY_NAME = "AppsFlyer"; | ||
|
||
public static final String AM_NAME = "AM"; | ||
|
||
public static final String AM_DISPLAY_NAME = "Amplitude"; | ||
|
||
public static final String APPCENTER_NAME = "APPCENTER"; | ||
|
||
public static final String APPCENTER_DISPLAY_NAME = "App Center"; | ||
|
||
public static final String BRANCH_NAME = "BRANCH"; | ||
|
||
public static final String BRANCH_DISPLAY_NAME = "Branch Metrics"; | ||
|
||
public static final String BRAZE_NAME = "BRAZE"; | ||
|
||
public static final String BRAZE_DISPLAY_NAME = "Braze"; | ||
|
||
public static final String BUGSNAG_NAME = "BUGSNAG"; | ||
|
||
public static final String BUGSNAG_DISPLAY_NAME = "Bugsnag"; | ||
|
||
public static final String CLEVERTAP_NAME = "CLEVERTAP"; | ||
|
||
public static final String CLEVERTAP_DISPLAY_NAME = "CleverTap"; | ||
|
||
public static final String COMSCORE_NAME = "COMSCORE"; | ||
|
||
public static final String COMSCORE_DISPLAY_NAME = "Comscore"; | ||
|
||
public static final String CUSTOMERIO_NAME = "CUSTOMERIO"; | ||
|
||
public static final String CUSTOMERIO_DISPLAY_NAME = "Customer IO"; | ||
|
||
public static final String FB_NAME = "FB"; | ||
|
||
public static final String FB_DISPLAY_NAME = "Facebook App Events"; | ||
|
||
public static final String FIREBASE_NAME = "FIREBASE"; | ||
|
||
public static final String FIREBASE_DISPLAY_NAME = "Firebase"; | ||
|
||
public static final String FULLSTORY_NAME = "FULLSTORY"; | ||
|
||
public static final String FULLSTORY_DISPLAY_NAME = "Fullstory"; | ||
|
||
public static final String GA4_NAME = "GA4"; | ||
|
||
public static final String GA4_DISPLAY_NAME = "Google Analytics 4 (GA4)"; | ||
|
||
public static final String INTERCOM_NAME = "INTERCOM"; | ||
|
||
public static final String INTERCOM_DISPLAY_NAME = "Intercom"; | ||
|
||
public static final String KOCHAVA_NAME = "KOCHAVA"; | ||
|
||
public static final String KOCHAVA_DISPLAY_NAME = "Kochava"; | ||
|
||
public static final String LEANPLUM_NAME = "LEANPLUM"; | ||
|
||
public static final String LEANPLUM_DISPLAY_NAME = "Leanplum"; | ||
|
||
public static final String LOTAME_MOBILE_NAME = "LOTAME_MOBILE"; | ||
|
||
public static final String LOTAME_MOBILE_DISPLAY_NAME = "Lotame Mobile"; | ||
|
||
public static final String MOENGAGE_NAME = "MOENGAGE"; | ||
|
||
public static final String MOENGAGE_DISPLAY_NAME = "MoEngage"; | ||
|
||
public static final String OPTIMIZELY_FULLSTACK_NAME = "OPTIMIZELY_FULLSTACK"; | ||
|
||
public static final String OPTIMIZELY_FULLSTACK_DISPLAY_NAME = "Optimizely Fullstack"; | ||
|
||
public static final String QUALTRICS_NAME = "QUALTRICS"; | ||
|
||
public static final String QUALTRICS_DISPLAY_NAME = "Qualtrics"; | ||
|
||
public static final String SINGULAR_NAME = "SINGULAR"; | ||
|
||
public static final String SINGULAR_DISPLAY_NAME = "Singular"; | ||
|
||
public static final String SPRIG_NAME = "SPRIG"; | ||
|
||
public static final String SPRIG_DISPLAY_NAME = "Sprig"; | ||
} |
Oops, something went wrong.