feat(outdated): add --ignore to skip pinned dependencies#501
Open
jongio wants to merge 1 commit into
Open
Conversation
Add a repeatable --ignore flag to the outdated command so packages you have pinned on purpose stop showing up as outdated and stop tripping --exit-code in CI. Names are matched case-insensitively and accept a comma-separated list or repeated flags. Ignored packages are dropped from the report and the total before the exit-code gate is evaluated. Closes #496 Co-authored-by: Copilot App <[email protected]>
Contributor
|
🚀 Website Preview Your PR preview is ready! 📎 Preview URL: https://jongio.github.io/azd-app/pr/501/ This preview will be automatically cleaned up when the PR is closed. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #501 +/- ##
==========================================
+ Coverage 60.77% 60.81% +0.03%
==========================================
Files 223 223
Lines 28527 28554 +27
==========================================
+ Hits 17337 17364 +27
Misses 10010 10010
Partials 1180 1180
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
🚀 Test This PRA preview build ( 🌐 Website PreviewLive Preview: https://jongio.github.io/azd-app/pr/501/ One-Line Install (Recommended)PowerShell (Windows): iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.ps1) } -PrNumber 501 -Version 0.19.5-pr501"Bash (macOS/Linux): curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.sh | bash -s 501 0.19.5-pr501UninstallWhen you're done testing: PowerShell (Windows): iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.ps1) } -PrNumber 501"Bash (macOS/Linux): curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.sh | bash -s 501Build Info:
What to Test: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a repeatable
--ignoreflag toazd app outdatedfor packages you have pinned on purpose.Why
azd app outdated --exit-codeis handy in CI, but a single dependency you are deliberately holding back (a major you have not migrated to yet, a package pinned for compatibility) makes the whole check fail every run. Today there is no way to say "I know about this one, skip it."What
--ignoreflag. Names are matched case-insensitively.--ignore react,typescript) or repeated flags (--ignore react --ignore typescript).--exit-codeis evaluated, so a run that is only outdated on ignored packages passes.Usage
Tests
--ignore chalkkeeps react and drops chalk; ignoring both (mixed case and padding) clears the--exit-codegate.newIgnoreSettrims, lowercases, and drops empty entries; nil input yields a nil set.filterIgnoredPackagesremoves matches case-insensitively and returns the input unchanged when nothing is ignored.Closes #496