Skip to content

Commit ae690a6

Browse files
committed
Merge branch 'main' into refactor-66578-p2
2 parents e71872f + d0dd557 commit ae690a6

663 files changed

Lines changed: 39063 additions & 22664 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/scripts/createInlineComment.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Secure proxy script to create an inline comment on a GitHub PR.
44
set -eu
55

6-
readonly ALLOWED_RULES_FILE="${GITHUB_WORKSPACE}/.claude/allowed-rules.txt"
6+
readonly ALLOWED_RULES_FILE="${ALLOWED_RULES_FILE:-${GITHUB_WORKSPACE}/.claude/allowed-rules.txt}"
77

88
# Print error and exit.
99
die() {
@@ -47,11 +47,12 @@ readonly LINE_ARG="${3:-}"
4747
validate_rule "$BODY_ARG"
4848
echo "Comment approved: $COMMENT_STATUS_REASON"
4949

50-
readonly FOOTER=$'\n\n---\n\nPlease rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.'
51-
readonly COMMENT_BODY="${BODY_ARG}${FOOTER}"
52-
5350
COMMIT_ID=$(gh api "/repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.sha')
5451
readonly COMMIT_ID
52+
readonly SHORT_SHA="${COMMIT_ID:0:7}"
53+
54+
readonly FOOTER=$'\n\n---\n\n'"Reviewed at: [${SHORT_SHA}](https://github.com/${GITHUB_REPOSITORY}/commit/${COMMIT_ID}) | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency."
55+
readonly COMMENT_BODY="${BODY_ARG}${FOOTER}"
5556

5657
PAYLOAD=$(jq -n \
5758
--arg body "$COMMENT_BODY" \

.github/workflows/buildAndroid.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ jobs:
178178
sign: true
179179
re-sign: true
180180
ad-hoc: ${{ inputs.variant == 'Adhoc' }}
181+
# We don't need Rock to setup java, because we already ran the setup-java action above
182+
setup-java: false
181183
keystore-file: './upload-key.keystore'
182184
keystore-store-file: 'upload-key.keystore'
183185
keystore-store-password: ${{ steps.load-credentials.outputs.ANDROID_UPLOAD_KEYSTORE_PASSWORD }}

.github/workflows/cherryPick.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,34 @@ concurrency:
3434
cancel-in-progress: false
3535

3636
jobs:
37+
validate:
38+
runs-on: blacksmith-2vcpu-ubuntu-2404
39+
steps:
40+
- name: Validate pull request URL
41+
if: ${{ inputs.PULL_REQUEST_URL != '' }}
42+
run: |
43+
REPO_FULL_NAME=$(echo '${{ inputs.PULL_REQUEST_URL }}' | sed -E 's|https?://github.com/([^/]+/[^/]+)/pull/.*|\1|')
44+
if [[ "$REPO_FULL_NAME" != ${{ github.repository }} ]] && [[ ! "$REPO_FULL_NAME" =~ Expensify/Mobile-Expensify* ]]; then
45+
echo "::error::❌ Cherry picks are only supported for the Expensify/App and Expensify/Mobile-Expensify repositories. Found: $REPO_FULL_NAME"
46+
exit 1
47+
fi
48+
49+
- name: Verify PR is merged
50+
if: ${{ inputs.PULL_REQUEST_URL != '' }}
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
53+
run: |
54+
if gh pr view "${{ inputs.PULL_REQUEST_URL }}" --json mergedAt | jq --exit-status '.mergedAt'; then
55+
echo "PR is merged: ${{ inputs.PULL_REQUEST_URL }}"
56+
else
57+
echo "::error::❌ PR is not merged: ${{ inputs.PULL_REQUEST_URL }}"
58+
exit 1
59+
fi
60+
3761
createNewVersion:
3862
uses: ./.github/workflows/createNewVersion.yml
3963
secrets: inherit
64+
needs: [validate]
4065
with:
4166
# In order to submit a new build for production review, it must have a higher PATCH version than the previously-submitted build.
4267
# The typical case is that with each staging deploy, we bump the BUILD version, and with each prod deploy we bump the PATCH version.
@@ -59,14 +84,6 @@ jobs:
5984
echo "REPO_FULL_NAME=$(echo '${{ inputs.PULL_REQUEST_URL }}' | sed -E 's|https?://github.com/([^/]+/[^/]+)/pull/.*|\1|')" >> "$GITHUB_OUTPUT"
6085
echo "PR_NUMBER=$(echo '${{ inputs.PULL_REQUEST_URL }}' | sed -E 's|.*/pull/([0-9]+).*|\1|')" >> "$GITHUB_OUTPUT"
6186
62-
- name: Verify pull request URL
63-
if: ${{ inputs.PULL_REQUEST_URL != '' }}
64-
run: |
65-
if [[ "${{ steps.getPRInfo.outputs.REPO_FULL_NAME }}" != ${{ github.repository }} ]] && [[ ! "${{ steps.getPRInfo.outputs.REPO_FULL_NAME }}" =~ Expensify/Mobile-Expensify* ]]; then
66-
echo "::error::❌ Cherry picks are only supported for the Expensify/App and Expensify/Mobile-Expensify repositories. Found: ${{ steps.getPRInfo.outputs.REPO_FULL_NAME }}"
67-
exit 1
68-
fi
69-
7087
- name: Set conflict branch name
7188
if: ${{ inputs.PULL_REQUEST_URL != '' }}
7289
id: getBranchName

.github/workflows/claude-review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
"$GITHUB_WORKSPACE/.github/scripts/extractAllowedRules.sh" \
5959
"$GITHUB_WORKSPACE/.claude/skills/coding-standards/rules" \
60-
"$GITHUB_WORKSPACE/.claude/allowed-rules.txt"
60+
"$RUNNER_TEMP/allowed-rules.txt"
6161
6262
- name: Load code review JSON schema
6363
id: schema
@@ -82,6 +82,7 @@ jobs:
8282
env:
8383
GH_TOKEN: ${{ github.token }}
8484
STRUCTURED_OUTPUT: ${{ steps.code-review.outputs.structured_output }}
85+
ALLOWED_RULES_FILE: ${{ runner.temp }}/allowed-rules.txt
8586
run: |
8687
if [ -z "$STRUCTURED_OUTPUT" ]; then
8788
echo "::error::Claude Code Action returned empty structured output"

Mobile-Expensify

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ android {
111111
minSdkVersion rootProject.ext.minSdkVersion
112112
targetSdkVersion rootProject.ext.targetSdkVersion
113113
multiDexEnabled rootProject.ext.multiDexEnabled
114-
versionCode 1009035401
115-
versionName "9.3.54-1"
114+
versionCode 1009035903
115+
versionName "9.3.59-3"
116116
// Supported language variants must be declared here to avoid from being removed during the compilation.
117117
// This also helps us to not include unnecessary language variants in the APK.
118118
resConfigs "en", "es"

assets/images/camera-flip.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)