Skip to content

Commit dfce34d

Browse files
committed
Merge remote-tracking branch 'origin/main' into jakubstec/remove-onyx-connect-policy-tags-in-IOU-replaceReceipt
2 parents 4574cee + b2bc761 commit dfce34d

1,773 files changed

Lines changed: 100795 additions & 60257 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/agents/deploy-blocker-investigator.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: deploy-blocker-investigator
33
description: Investigates deploy blockers to find the causing PR and recommend resolution.
4-
tools: Glob, Grep, Read, Bash, BashOutput
4+
tools: Glob, Grep, Read, Write, Bash, BashOutput
55
model: inherit
66
---
77

@@ -114,11 +114,9 @@ See Decision Tree below for label actions.
114114

115115
### Step 7: Post comment and update labels
116116

117-
Post your findings (use single quotes for the body to handle special characters):
117+
Write the comment body to a temp file using the Write tool, then post it:
118118
```bash
119-
gh issue comment "$ISSUE_URL" --body '## 🔍 Investigation Summary
120-
...your comment here...
121-
'
119+
gh issue comment "$ISSUE_URL" --body-file /tmp/investigation-summary.md
122120
```
123121

124122
Remove label only if the decision tree warrants it:
@@ -129,6 +127,15 @@ removeDeployBlockerLabel.sh "$ISSUE_URL" DeployBlocker # For Frontend bugs
129127

130128
Call scripts by name only (e.g., `removeDeployBlockerLabel.sh`), not with full paths.
131129

130+
### Step 8: Assign contributors
131+
132+
If the primary causing PR has at least medium confidence, assign its author and approving reviewers to the deploy blocker issue. Only assign contributors from this single PR.
133+
134+
```bash
135+
gh pr view <PR_NUMBER> --json reviews
136+
gh issue edit "$ISSUE_URL" --add-assignee <logins>
137+
```
138+
132139
---
133140

134141
## Decision Tree
@@ -168,7 +175,7 @@ Choose ONE:
168175

169176
## Comment Format
170177

171-
Post ONE comment using this exact format:
178+
Use the Write tool to create `/tmp/investigation-summary.md` with the following markdown structure. Every field and heading must be present.
172179

173180
```markdown
174181
## 🔍 Investigation Summary
@@ -182,6 +189,7 @@ Post ONE comment using this exact format:
182189
Brief explanation of why this recommendation (1-2 sentences).
183190

184191

192+
**Assigned**: @author (PR author), @reviewer (approving reviewer) from highest-confidence causing PR only — omit if no causing PR identified
185193
**Labels**: [Describe any label changes made]
186194

187195
<details>
@@ -201,6 +209,8 @@ Technical explanation of what went wrong in the code.
201209

202210
</details>
203211
```
212+
213+
Then post with: `gh issue comment "$ISSUE_URL" --body-file /tmp/investigation-summary.md`
204214
---
205215

206216
## Constraints
@@ -213,7 +223,7 @@ Technical explanation of what went wrong in the code.
213223
- Make assumptions about code you haven't read
214224
- Recommend DEMOTE for bugs affecting core functionality (auth, payments, data loss)
215225
- Close the issue—only update labels and comment
216-
- Use heredocs, temp files, or shell redirects for comments
226+
- Use heredocs or shell redirects for comments
217227

218228
**DO:**
219229
- Always verify the causing PR touches the affected code before concluding

.claude/commands/investigate-deploy-blocker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
allowed-tools: Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh issue list:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(git log:*),Bash(git show:*),Bash(git blame:*),Bash(removeDeployBlockerLabel.sh:*),Glob,Grep,Read
2+
allowed-tools: Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh issue edit:*),Bash(gh issue list:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(git log:*),Bash(git show:*),Bash(git blame:*),Bash(removeDeployBlockerLabel.sh:*),Glob,Grep,Read,Write
33
description: Investigate a deploy blocker issue to find the causing PR and recommend resolution
44
---
55

.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" \

.claude/skills/coding-standards/rules/clean-react-0-compiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Manual memoization is therefore:
1818
The codebase enforces this via:
1919
- **Babel plugin**: `babel-plugin-react-compiler` in `babel.config.js`
2020
- **ESLint processor**: `eslint-plugin-react-compiler-compat` suppresses redundant lint rules when files compile successfully
21-
- **CI compliance check**: `scripts/react-compiler-compliance-check.ts` blocks PRs with manual memoization in new files
21+
- **CI compliance check**: `scripts/react-compiler-compliance-check.ts` enforces that new components/hooks compile and that existing compiled files don't regress
2222

2323
Reference: [React Compiler documentation](https://react.dev/learn/react-compiler)
2424

.github/actions/composite/setupNode/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949

5050
- name: Install root project node packages
5151
if: steps.cache-node-modules.outputs.cache-hit != 'true' || (inputs.IS_HYBRID_BUILD == 'true' && steps.cache-old-dot-node-modules.outputs.cache-hit != 'true')
52-
uses: nick-fields/retry@3f757583fb1b1f940bc8ef4bf4734c8dc02a5847
52+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
5353
with:
5454
timeout_minutes: 30
5555
max_attempts: 3

.github/actions/javascript/authorChecklist/categories/newComponentCategory.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ function detectReactComponent(code: string, filename: string): boolean | undefin
6565
// eslint-disable-next-line @typescript-eslint/naming-convention
6666
ClassDeclaration(path) {
6767
const {superClass} = path.node as unknown as SuperClassType;
68-
if (
69-
superClass &&
70-
((superClass.object && superClass.object.name === 'React' && isComponentOrPureComponent(superClass.property.name)) || isComponentOrPureComponent(superClass.name))
71-
) {
68+
if (superClass && ((superClass.object?.name === 'React' && isComponentOrPureComponent(superClass.property.name)) || isComponentOrPureComponent(superClass.name))) {
7269
isReactComponent = true;
7370
path.stop();
7471
}

.github/actions/javascript/authorChecklist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15767,11 +15767,11 @@ class GithubUtils {
1576715767
/**
1576815768
* Fetch all pull requests given a list of PR numbers.
1576915769
*/
15770-
static fetchAllPullRequests(pullRequestNumbers) {
15770+
static fetchAllPullRequests(pullRequestNumbers, repo = CONST_1.default.APP_REPO) {
1577115771
const oldestPR = pullRequestNumbers.sort((a, b) => a - b).at(0);
1577215772
return this.paginate(this.octokit.pulls.list, {
1577315773
owner: CONST_1.default.GITHUB_OWNER,
15774-
repo: CONST_1.default.APP_REPO,
15774+
repo,
1577515775
state: 'all',
1577615776
sort: 'created',
1577715777
direction: 'desc',

.github/actions/javascript/awaitStagingDeploys/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12545,11 +12545,11 @@ class GithubUtils {
1254512545
/**
1254612546
* Fetch all pull requests given a list of PR numbers.
1254712547
*/
12548-
static fetchAllPullRequests(pullRequestNumbers) {
12548+
static fetchAllPullRequests(pullRequestNumbers, repo = CONST_1.default.APP_REPO) {
1254912549
const oldestPR = pullRequestNumbers.sort((a, b) => a - b).at(0);
1255012550
return this.paginate(this.octokit.pulls.list, {
1255112551
owner: CONST_1.default.GITHUB_OWNER,
12552-
repo: CONST_1.default.APP_REPO,
12552+
repo,
1255312553
state: 'all',
1255412554
sort: 'created',
1255512555
direction: 'desc',

.github/actions/javascript/checkAndroidStatus/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737288,11 +737288,11 @@ class GithubUtils {
737288737288
/**
737289737289
* Fetch all pull requests given a list of PR numbers.
737290737290
*/
737291-
static fetchAllPullRequests(pullRequestNumbers) {
737291+
static fetchAllPullRequests(pullRequestNumbers, repo = CONST_1.default.APP_REPO) {
737292737292
const oldestPR = pullRequestNumbers.sort((a, b) => a - b).at(0);
737293737293
return this.paginate(this.octokit.pulls.list, {
737294737294
owner: CONST_1.default.GITHUB_OWNER,
737295-
repo: CONST_1.default.APP_REPO,
737295+
repo,
737296737296
state: 'all',
737297737297
sort: 'created',
737298737298
direction: 'desc',

.github/actions/javascript/checkDeployBlockers/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11812,11 +11812,11 @@ class GithubUtils {
1181211812
/**
1181311813
* Fetch all pull requests given a list of PR numbers.
1181411814
*/
11815-
static fetchAllPullRequests(pullRequestNumbers) {
11815+
static fetchAllPullRequests(pullRequestNumbers, repo = CONST_1.default.APP_REPO) {
1181611816
const oldestPR = pullRequestNumbers.sort((a, b) => a - b).at(0);
1181711817
return this.paginate(this.octokit.pulls.list, {
1181811818
owner: CONST_1.default.GITHUB_OWNER,
11819-
repo: CONST_1.default.APP_REPO,
11819+
repo,
1182011820
state: 'all',
1182111821
sort: 'created',
1182211822
direction: 'desc',

0 commit comments

Comments
 (0)