Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): pull release/v1.99.0 into main #1835

Merged
merged 17 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/check-generated.yml
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
77 changes: 77 additions & 0 deletions .github/workflows/raise-pr-for-constants.yml
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
2 changes: 1 addition & 1 deletion .husky/pre-commit
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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.99.0](https://github.com/rudderlabs/rudder-config-schema/compare/v1.98.2...v1.99.0) (2024-12-10)


### Features

* add iubenda to a subset of destinations ([#1795](https://github.com/rudderlabs/rudder-config-schema/issues/1795)) ([65b6f16](https://github.com/rudderlabs/rudder-config-schema/commit/65b6f16bc5de853c0dca0b6fe031f3e323b3ba73))
* add iubenda to shopify source in tiktok ads dest ([#1824](https://github.com/rudderlabs/rudder-config-schema/issues/1824)) ([0d681b1](https://github.com/rudderlabs/rudder-config-schema/commit/0d681b10bd46b1bdb84d42b48b06f1d01daad785))
* generate destination constants ([#1800](https://github.com/rudderlabs/rudder-config-schema/issues/1800)) ([5f58915](https://github.com/rudderlabs/rudder-config-schema/commit/5f589157b7c947ae7fd4ae46fe908588f8c67abf))
* update mapping component regex for HTTP destination ([#1820](https://github.com/rudderlabs/rudder-config-schema/issues/1820)) ([54c5b17](https://github.com/rudderlabs/rudder-config-schema/commit/54c5b17e87eccbf77dc911ed1449f272917f3084))


### Bug Fixes

* constants pr workflow to keep all steps under the same job ([#1834](https://github.com/rudderlabs/rudder-config-schema/issues/1834)) ([e57aa07](https://github.com/rudderlabs/rudder-config-schema/commit/e57aa07e578f4017d06465baf82bca580233f8aa))
* **http:** updated property mapping regex ([#1830](https://github.com/rudderlabs/rudder-config-schema/issues/1830)) ([186f04a](https://github.com/rudderlabs/rudder-config-schema/commit/186f04a63533a4240998e7eb26afd3a8b610e629))
* pr body in constants pr workflow ([133681a](https://github.com/rudderlabs/rudder-config-schema/commit/133681ab820690d07c3c3364d573557215ea5fe9))
* tokens in constants pr workflow ([05eaf6e](https://github.com/rudderlabs/rudder-config-schema/commit/05eaf6e594d2106844797a3ff88787f7752afcc0))
* tokens in constants pr workflow ([676e0b0](https://github.com/rudderlabs/rudder-config-schema/commit/676e0b0ffb9adf5a7a13544be7d1a601f602ec50))

### [1.98.2](https://github.com/rudderlabs/rudder-config-schema/compare/v1.98.1...v1.98.2) (2024-12-04)


Expand Down
42 changes: 42 additions & 0 deletions generated/Destinations.dart
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';
}
106 changes: 106 additions & 0 deletions generated/Destinations.java
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";
}
Loading
Loading