Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RemoveaugmentationProperties fromConfig type#3075

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mbg merged 8 commits intomainfrommbg/remove-augmentation-properties
Sep 4, 2025

Conversation

@mbg
Copy link
Member

@mbgmbg commentedSep 2, 2025
edited
Loading

This PR updatessendCompletedStatusReport to use the computed packs fromcomputedConfig rather than computing the packs from the inputUserConfig andAugmentationProperties locally.

As a result,AugmentationProperties is no longer needed inConfig and is removed.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding achangelog entry for this change.
  • Confirm thereadme and docs have been updated if necessary.

@mbgmbgforce-pushed thembg/remove-augmentation-properties branch from1ef359a to87c5b58CompareSeptember 3, 2025 11:57
Base automatically changed frommbg/refactor/augmentation-properties tomainSeptember 3, 2025 15:40
@mbgmbg marked this pull request as ready for reviewSeptember 3, 2025 15:41
@mbgmbg requested a review froma team as acode ownerSeptember 3, 2025 15:41
CopilotAI review requested due to automatic review settingsSeptember 3, 2025 15:41
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes theaugmentationProperties field from theConfig type by updatingsendCompletedStatusReport to use computed packs fromcomputedConfig instead of calculating them fromUserConfig andAugmentationProperties. The change simplifies the configuration interface while maintaining the same functionality.

Key changes:

  • RemovedaugmentationProperties from theConfig type definition
  • UpdatedgetDefaultConfig return type to temporarily includeaugmentationProperties for internal use
  • Simplified pack calculation logic insendCompletedStatusReport to usecomputedConfig.packs directly

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
src/config-utils.tsRemovesaugmentationProperties fromConfig type and updatesgetDefaultConfig return type
src/init-action.tsSimplifies pack calculation logic to useconfig.computedConfig.packs directly
src/testing-utils.tsRemovesaugmentationProperties import and removes the field from test config creation
src/config-utils.test.tsUpdates test to destructureaugmentationProperties fromgetDefaultConfig result
src/codeql.test.tsUpdates test to passaugmentationProperties directly togenerateCodeScanningConfig
lib/init-action.jsGenerated JavaScript file (not reviewed per guidelines)

henrymercer
henrymercer previously approved these changesSep 3, 2025
Copy link
Contributor

@henrymercerhenrymercer left a comment

Choose a reason for hiding this comment

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

Before merging, could you run some of the PR checks that include packs in debug mode and check that thepacks property is populated correctly?

}

constconfig=awaitgetDefaultConfig(inputs);
const{ augmentationProperties, ...config}=awaitgetDefaultConfig(inputs);
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that we only usegetDefaultConfig in this function, consider havinggetDefaultConfig populatecomputedConfig directly to simplify the flow.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I have made theUserConfig (from the inputs) an argument togetDefaultConfig (nowinitActionState), set it there, and generatecomputedConfig there. That avoids having to returnaugmentationProperties as well.

@mbg
Copy link
MemberAuthor

mbg commentedSep 4, 2025

@henrymercer I refactored creating theInitWithConfigStatusReport into a function and added some unit tests for that. That should be more robust than checking the debug logs, but let me know if you still want me to do that as well?

Copy link
Contributor

@henrymercerhenrymercer left a comment

Choose a reason for hiding this comment

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

Great, even better!

@mbgmbg merged commitdfb741d intomainSep 4, 2025
278 checks passed
@mbgmbg deleted the mbg/remove-augmentation-properties branchSeptember 4, 2025 10:31
@github-actionsgithub-actionsbot mentioned this pull requestSep 5, 2025
8 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@henrymercerhenrymercerhenrymercer approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mbg@henrymercer

[8]ページ先頭

©2009-2025 Movatter.jp