Skip to content

Remove got from not allowed package list#97

Merged
jpolavar merged 4 commits intomainfrom
remove-got-not-allowed
Apr 2, 2026
Merged

Remove got from not allowed package list#97
jpolavar merged 4 commits intomainfrom
remove-got-not-allowed

Conversation

@jpolavar
Copy link
Copy Markdown
Contributor

@jpolavar jpolavar commented Apr 2, 2026

closes #96

@jpolavar jpolavar requested a review from lukebrdn April 2, 2026 15:33
@jpolavar jpolavar self-assigned this Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 15:33
Copy link
Copy Markdown

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

This PR updates the import policy enforcement to no longer fully block the got package (per Issue #96), and adjusts tests and package versioning accordingly.

Changes:

  • Remove got from the packages-not-allowed security block list.
  • Update the corresponding unit test to only assert axios is fully blocked.
  • Bump package version from 4.0.0 to 4.0.1 (and update the lockfile).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/check-imports/packages-not-allowed.ts Removes got from the blocked package list.
src/check-imports/packages-not-allowed.spec.ts Updates assertions to match the updated blocked list.
package.json Bumps package version to 4.0.1.
package-lock.json Updates lockfile version metadata; also includes broad changes requiring correction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

});
});
it('contains axios and got as fully blocked dependencies', async () => {
it('contains axios as fully blocked dependencies', async () => {
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

Test description says "contains axios as fully blocked dependencies" but the assertion checks a single dependency. Consider updating the wording to singular ("dependency") to match the behavior and avoid confusion when reading test output.

Suggested change
it('contains axios as fully blocked dependencies', async () => {
it('contains axios as a fully blocked dependency', async () => {

Copilot uses AI. Check for mistakes.
@jpolavar jpolavar changed the title Revert change related to got being added to not allowed package Remove got from not allowed package list Apr 2, 2026
@jpolavar jpolavar added the PATCH label Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Coverage after merging remove-got-not-allowed into main will be

96.04%▾ -0.01%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/check-imports
   package-lock-file-util.spec.ts100%100%100%100%
   package-lock-file-util.ts100%100%100%100%
   packages-not-allowed.spec.ts100%100%100%100%
   packages-not-allowed.ts100%100%100%100%
src/check-label
   check-label-compare-match-semver.spec.ts100%100%100%100%
   check-label.spec.ts100%100%100%100%
   check-label.ts95.08%90%100%95.96%68–70, 78–80
src/check-pr-reviews
   check-pr-reviews.spec.ts100%100%100%100%
   check-pr-reviews.ts50.65%40%100%50.70%22–37, 41–59, 68–70
src/coverage-reporter
   html.spec.ts100%100%100%100%
   html.ts100%100%100%100%
   lcov.spec.ts100%100%100%100%
   lcov.ts93.56%90.91%80%94.29%121–131, 138
   tabulate.spec.ts100%100%100%100%
   tabulate.ts99.61%98.04%100%100%179
   util.spec.ts100%100%100%100%
   util.ts100%100%100%100%
src/github-api
   index-context.spec.ts100%100%100%100%
   index-publish-comment.spec.ts100%100%100%100%
   index-reviews.spec.ts100%100%100%100%
   index.spec.ts100%100%100%100%
   index.ts82.58%69.35%100%84.48%57, 66, 73–77, 94–99, 104–107, 122–124, 142–145, 175–180, 200–209, 229–232, 237–240, 258–261, 266–269, 280–283, 294–296, 304–306, 308–311, 333–335
src/prepare-beta
   package.spec.ts100%100%100%100%
   package.ts94.12%75%100%95.56%23–25
src/publish-beta
   files.spec.ts100%100%100%100%
   files.ts94.03%92.31%100%94%36–39
   package.spec.ts100%100%100%100%
   package.ts95.38%85.71%100%96.36%23–25
   publish.spec.ts100%100%100%100%
   publish.ts85.37%100%50%86.11%32–36
   validate-name-and-resource-length.spec.ts100%100%100%100%
   validate-name-and-resource-length.ts89.13%100%71.43%88.07%35–40, 103–109
src/validate-npm-package
   validate-npm-package.spec.ts91.45%72.22%100%94.25%21–22, 35–36, 50–51, 65–66, 81–82
   validate-npm-package.ts95.80%85.71%100%96.77%56, 111–115

@jpolavar jpolavar merged commit 4a7fad2 into main Apr 2, 2026
6 checks passed
@jpolavar jpolavar deleted the remove-got-not-allowed branch April 2, 2026 17:27
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.

Remove got from not allowed package list

3 participants