Skip to content

Refactor repeated object property access to destructuring across repo#5747

Open
Copilot wants to merge 7 commits intomainfrom
copilot/refactor-repeated-property-references
Open

Refactor repeated object property access to destructuring across repo#5747
Copilot wants to merge 7 commits intomainfrom
copilot/refactor-repeated-property-references

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

  • Refactor constructors to use destructuring across repo
  • Add rush change files (bump-type none)
  • Move default values into destructuring (PhaseAction.ts - watch, phase.phaseName)
  • Move default values into destructuring (Operation.ts - weight, metadata)
  • Move default values into destructuring (PhasedScriptAction.ts - watchDebounceMs)
  • Move default values into destructuring (RushAlerts.ts - rushAlertsState)
  • Move default values into destructuring (TextRewriterTransform.ts - textRewriters)
  • Move default values into destructuring (AliasCommandLineAction.ts - defaultParameters)
  • Move default values into destructuring (TypingsGenerator.ts - readFile, globsToIgnore, terminal)
  • Move default values into destructuring (AzureAuthenticationBase.ts - loginFlowFailover)
  • Move default values into destructuring (HttpBuildCacheProvider.ts - uploadMethod, headers, cacheKeyPrefix, minHttpRetryDelayMs)
  • Move default values into destructuring (RushServePlugin.ts - globalRouting)
  • Build all changed projects ✅
  • Code review + CodeQL ✅

@iclanton
Copy link
Copy Markdown
Member

iclanton commented Apr 5, 2026

@copilot - this change needs changefiles. Run rush change --bulk --bump-type none and commit and push the created files.

None of this should affect package consumers, right?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 5, 2026

@copilot - this change needs changefiles. Run rush change --bulk --bump-type none and commit and push the created files.

None of this should affect package consumers, right?

Correct, none of this affects package consumers — purely mechanical destructuring with no behavioral changes. Added change files with rush change --bulk --bump-type none in e1a7891.

Copilot AI requested a review from iclanton April 5, 2026 04:22
@iclanton iclanton marked this pull request as ready for review April 5, 2026 04:34
@iclanton iclanton enabled auto-merge (squash) April 5, 2026 04:34
Copy link
Copy Markdown
Contributor

@dmichon-msft dmichon-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot These changes are incomplete. Defaulting should also be handles as part of migrating to destructuring.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 5, 2026

@copilot These changes are incomplete. Defaulting should also be handles as part of migrating to destructuring.

All defaulting has been moved into the destructuring assignments across all affected files in 08f561f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

3 participants