From 54f771a851dcce2aff69f0099501c6f99534f568 Mon Sep 17 00:00:00 2001 From: Dilip Kola Date: Wed, 8 Jan 2025 16:55:39 +0530 Subject: [PATCH] chore: fix formating --- .eslintignore | 1 + .github/workflows/allure-test-reporter.yml | 12 ++++++------ .github/workflows/build-push-docker-image.yml | 6 +++--- .github/workflows/prepare-for-prod-ut-deploy.yml | 2 +- src/cdk/v2/destinations/reddit/rtWorkflow.yaml | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.eslintignore b/.eslintignore index fba46e4328..bc11e67580 100644 --- a/.eslintignore +++ b/.eslintignore @@ -26,3 +26,4 @@ scripts/skipPrepareScript.js .eslintignore .prettierignore *.json +Dockerfile* \ No newline at end of file diff --git a/.github/workflows/allure-test-reporter.yml b/.github/workflows/allure-test-reporter.yml index 57ff4ee4a6..68c5926434 100644 --- a/.github/workflows/allure-test-reporter.yml +++ b/.github/workflows/allure-test-reporter.yml @@ -68,21 +68,21 @@ jobs: run: | # Wait a moment for gh-pages to update sleep 10 - + # Create a temporary directory for gh-pages checkout mkdir temp_gh_pages cd temp_gh_pages - + # Initialize git and fetch gh-pages git init git remote add origin https://github.com/rudderlabs/rudder-transformer.git git fetch origin gh-pages git checkout gh-pages - + # Find the latest numbered directory LATEST_NUM=$(find . -maxdepth 1 -type d -name "[0-9]*" | sort -n | tail -1 | sed 's/\.\///') echo "number=${LATEST_NUM}" >> $GITHUB_OUTPUT - + # Cleanup cd .. rm -rf temp_gh_pages @@ -96,7 +96,7 @@ jobs: const { owner, repo } = context.repo; const prNumber = context.payload.pull_request.number; const reportNumber = '${{ steps.report-number.outputs.number }}'; - + const commentBody = `Allure Test reports for this run are available at: - Allure Report: https://rudderlabs.github.io/rudder-transformer/${reportNumber}/index.html`; @@ -106,4 +106,4 @@ jobs: repo, issue_number: prNumber, body: commentBody - }); \ No newline at end of file + }); diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index ba62e5d8d1..e0571a24f8 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -96,12 +96,12 @@ jobs: with: ref: ${{ needs.get_sha.outputs.sha }} fetch-depth: 1 - + - name: Login to DockerHub uses: docker/login-action@v3.3.0 with: username: ${{ env.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} + password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3.7.1 @@ -149,7 +149,7 @@ jobs: with: ref: ${{ needs.get_sha.outputs.sha }} fetch-depth: 1 - + - name: Login to DockerHub uses: docker/login-action@v3.3.0 with: diff --git a/.github/workflows/prepare-for-prod-ut-deploy.yml b/.github/workflows/prepare-for-prod-ut-deploy.yml index 612dddc833..4c108b23d6 100644 --- a/.github/workflows/prepare-for-prod-ut-deploy.yml +++ b/.github/workflows/prepare-for-prod-ut-deploy.yml @@ -171,4 +171,4 @@ jobs: git commit -m "chore: upgrade dedicated user transformers to $TAG_NAME" git push -u origin dedicated-user-transformer-$TAG_NAME - gh pr create --fill \ No newline at end of file + gh pr create --fill diff --git a/src/cdk/v2/destinations/reddit/rtWorkflow.yaml b/src/cdk/v2/destinations/reddit/rtWorkflow.yaml index fd315b381a..7d3e1653ca 100644 --- a/src/cdk/v2/destinations/reddit/rtWorkflow.yaml +++ b/src/cdk/v2/destinations/reddit/rtWorkflow.yaml @@ -39,7 +39,7 @@ steps: const dontBatchTrueEvents = $.outputs.successfulEvents{.metadata.dontBatch}[]; const dontBatchFalseEvents = $.outputs.successfulEvents{!.metadata.dontBatch}[]; const dontBatchTrueEventsChunks = $.chunk(dontBatchTrueEvents, 1); - + let batches = [...$.batchEvents(dontBatchFalseEvents), ...$.batchEventChunks(dontBatchTrueEventsChunks)]; batches@batch.({ "batchedRequest": {