Sitelet https://github.com/IntelliTect/EssentialCSharp.Web/pull/1435
Skip to content

[repo-assist] improve site mapping argument validation - #1435

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/improve-site-mapping-argument-validation-fe748d4bc0b98f8b
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/improve-site-mapping-argument-validation-fe748d4bc0b98f8b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

The site-mapping extension methods now validate their collection argument explicitly instead of failing later with an unhelpful NullReferenceException. Regression tests cover both public extension methods.

Rationale

Explicit ArgumentNullException guards make the API contract clear and provide an actionable failure for invalid callers without changing valid-call behavior.

Test Status

  • ✅ dotnet build EssentialCSharp.Web.Tests/EssentialCSharp.Web.Tests.csproj --configuration Release --no-restore
  • ✅ git diff --check
  • ⚠️ dotnet test EssentialCSharp.Web.Tests/EssentialCSharp.Web.Tests.csproj --configuration Release --no-build: 151/153 passed; CaptchaService_Verify_Success and KnownBreachedPassword_IsDetected failed because their external services were unavailable.
  • ⚠️ dotnet format ... --verify-no-changes reports pre-existing formatting findings in unrelated files; no formatting changes were made outside this patch.

No new dependencies were added.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.hcaptcha.com
  • api.pwnedpasswords.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.hcaptcha.com"
    - "api.pwnedpasswords.com"

See Network Configuration for more information.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@4bc8419fad05e6b032741cbfd189986700bcf71c

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants