Skip to content

Fix notice-generation script#3617

Merged
Aniruddh25 merged 5 commits into
mainfrom
dev/rubencerna/fix-change-notice-file
May 20, 2026
Merged

Fix notice-generation script#3617
Aniruddh25 merged 5 commits into
mainfrom
dev/rubencerna/fix-change-notice-file

Conversation

@RubenCerna2079
Copy link
Copy Markdown
Contributor

Why make this change?

  • Solves issue Bug: Fix notice-generation script #3607
    Currently the notice file script has a bug that causes it to not replace some of the strings correctly as the values in the content variable that are replaced are overwritten by other changes, so they are not saved.

What is this change?

Changed the way the values are changed inside the content value by using regex. Currently the only values that need to be deleted are for the years 2023 and 2024. This might change in the future.

How was this tested?

  • Integration Tests
  • Unit Tests
  • Manual Testing
    Tested this manually by running the script locally.

Sample Request(s)

N/A

Copilot AI review requested due to automatic review settings May 20, 2026 20:57
@RubenCerna2079 RubenCerna2079 linked an issue May 20, 2026 that may be closed by this pull request
@RubenCerna2079 RubenCerna2079 changed the title Dev/rubencerna/fix change notice file Fix notice-generation script May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI 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

Fixes the NOTICE-generation PowerShell script so erroneous copyright lines are actually removed from the in-memory content before writing the final NOTICE output, addressing issue #3607.

Changes:

  • Replace two independent .Replace(...) calls (which re-read and overwrite $content) with a single regex-based -replace on one ReadAllText(...) result.
  • Remove both (c) Microsoft 2023 and (c) Microsoft 2024 line variants in one pass.

Copy link
Copy Markdown
Contributor

@aaronburtle aaronburtle left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, looks good!

@Aniruddh25 Aniruddh25 merged commit db460b6 into main May 20, 2026
12 checks passed
@Aniruddh25 Aniruddh25 deleted the dev/rubencerna/fix-change-notice-file branch May 20, 2026 23:40
RubenCerna2079 added a commit that referenced this pull request May 22, 2026
## Why make this change?

- Solves issue #3607
Currently the notice file script has a bug that causes it to not replace
some of the strings correctly as the values in the `content` variable
that are replaced are overwritten by other changes, so they are not
saved.

## What is this change?

Changed the way the values are changed inside the `content` value by
using regex. Currently the only values that need to be deleted are for
the years 2023 and 2024. This might change in the future.

## How was this tested?

- [ ] Integration Tests
- [ ] Unit Tests
- [x] Manual Testing
Tested this manually by running the script locally.

## Sample Request(s)

N/A

---------

Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Aniruddh25 added a commit that referenced this pull request May 22, 2026
## Why make this change?

This change cherry-picks the PRs that fixes the new Nuget Core Package

## What is this change?

Cherry-picked PRs

- #3617
- #3620

## How was this tested?

Existing tests in cherry-pick cover new changes.

## Sample Request(s)

N/A

---------

Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Fix notice-generation script

5 participants