accessibility-insights-web/tools
Madalyn 2195bff5ac
chore: Update changelog script to allow for .txt output (#7396)
#### Details

This PR enables the changelog script to output a .txt file with a list
of commits to validate instead of a .csv.

This can be triggered by adding a flag onto the end of the script for
the desired kind of file:

`node ./tools/get-change-log-for-release.js --from web@PREVIOUS_RELEASE
--to web@NEW_RELEASE --kind txt`
or
`yarn run change-log --from web@PREVIOUS_RELEASE --to web@NEW_RELEASE -k
txt`

Example Output:

This is the result for running `yarn run change-log -f web@2.43.0 -t
web@2.44.0 -k txt`

```
[tester]
        dev: Chirag Sharma
        pr: https://github.com/microsoft/accessibility-insights-web/pull/7378
        group: fix
        change: fix: adding code to format nextline character (\r\n) (#7378)
[tester]
        dev: rohittarpara
        pr: https://github.com/microsoft/accessibility-insights-web/pull/7377
        group: fix
        change: fix: <hx role="none"> is reported as heading. (#7377)
[tester]
        dev: rohittarpara
        pr: https://github.com/microsoft/accessibility-insights-web/pull/7374
        group: chore
        change: chore: update @fluentui/react from 8.96.1 to 8.118.1 (#7374)
[tester]
        dev: rohittarpara
        pr: https://github.com/microsoft/accessibility-insights-web/pull/7369
        group: feat(axe-core 4.9.1)
        change: feat(axe-core 4.9.1): Axe core version upgrade for Web (#7369)
[tester]
        dev: Chirag Sharma
        pr: https://github.com/microsoft/accessibility-insights-web/pull/7370
        group: chore
        change: chore : Update package version for accessibility insights report and accessibility insights ui (#7370)
```

The release driver would just need to paste this into OneNote, remove
any commits that are non-user-facing, and format like a list to add
bullets and the indents are already there!

##### Motivation

Our changelog script generates a csv of the commits to main between two
commits (usually the previous release and HEAD). During release
validation, our team filters down that CSV in excel and then pastes the
generated table into our validation template so we can check that those
commits have successfully made it into the new release. To make our
release validation process more accessible, we are moving away from
using tables in our validation templates.

##### Context

The text version of the changelog automatically excludes `dependabot`
and `chore(deps-dev)` commits, as it is more cumbersome to filter the
text list than the csv and these updates aren't included in validation
anyhow.

#### Pull request checklist
<!-- If a checklist item is not applicable to this change, write "n/a"
in the checkbox -->
- [n/a] Addresses an existing issue: #0000
- [x] Ran `yarn fastpass`
- [n/a] Added/updated relevant unit test(s) (and ran `yarn test`)
- [n/a] Verified code coverage for the changes made. Check coverage
report at: `<rootDir>/test-results/unit/coverage`
- [x] PR title *AND* final merge commit title both start with a semantic
tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). See
`CONTRIBUTING.md`.
- [n/a] (UI changes only) Added screenshots/GIFs to description above
- [n/a] (UI changes only) Verified usability with NVDA/JAWS
2024-07-23 13:10:12 -04:00
..
clearly-defined chore(deps-dev): Bump @testing-library/jest-dom from 6.2.1 to 6.4.2 (#7234) 2024-02-13 14:21:03 -05:00
jscodeshift chore: Initial work for migrating tests from Enzyme to React Testing Library (#7090) 2023-12-18 10:52:05 -05:00
strict-null-checks chore: Optimizing Performance and Resource Utilization with Concurrent Function Execution (#7008) 2023-10-24 11:15:10 -07:00
create-tsa-options.ps1 feat(Pipeline Migration to 1ES) - User Story 2126528(Accessibility Insights Web SDT - CI) (#7190) 2024-01-10 14:06:36 -05:00
get-change-log-for-release.js chore: Update changelog script to allow for .txt output (#7396) 2024-07-23 13:10:12 -04:00
get-chrome-web-store-refresh-token.ps1 chore: fix refresh token script and rewrite with fewer dependencies (#6622) 2023-05-11 15:05:17 -04:00