Skip to content

Add webhooks, refresh the official spec, and cover every missing operation - #49

Merged
davidnmbond merged 5 commits into
mainfrom
feat/webhooks
Oct 4, 2026
Merged

davidnmbond merged 5 commits into
mainfrom
feat/webhooks

Conversation

@davidnmbond

Copy link
Copy Markdown
Contributor

Summary

  • Webhooks: endpoint management on IOrganizationsApi (list, create, delete) and a CodacyWebhook helper that verifies the X-Codacy-Signature HMAC-SHA256 and reads quality.analysis.completed payloads.
  • Spec: swagger.yaml is now the official specification from api.codacy.com. Two paths that had drifted are fixed (ignoredIssues/search, settings/sync); CleanCacheAsync is marked obsolete because Codacy removed the endpoint; the deprecated repositories query parameter is documented.
  • Coverage: every non-deprecated operation in the spec now has a client method (about 170 added, in 23 new modules on ICodacyClient). The one exception is POST .../branches/{branchName}/setDefault, which IRepositoriesApi already covers with a PATCH-based helper.

Test plan

  • dotnet build Codacy.Api clean, no warnings
  • 76 unit tests pass (including 13 new webhook tests); constructing the client makes Refit validate every route
  • The new operations were written from the spec and have not been exercised against the live API

🤖 Generated with Claude Code

davidnmbond and others added 4 commits October 3, 2026 16:45
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 12 complexity · 4 duplication

Metric Results
Complexity 12
Duplication 4

View in Codacy

🟢 Coverage 100.00% diff coverage

Metric Results
Coverage variation Report missing for 7f8cce21
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (7f8cce2) Report Missing Report Missing Report Missing
Head commit (fb029a1) 206 135 65.53%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#49) 44 44 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@davidnmbond
davidnmbond merged commit ba88d28 into main Oct 4, 2026
7 checks passed
@davidnmbond
davidnmbond deleted the feat/webhooks branch October 4, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant