| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add comprehensive tests for GitHub repository ruleset functionalities - Implement tests for GetRepositoryRuleset, ListRepositoryRulesets, GetRepositoryRulesForBranch, GetOrganizationRepositoryRuleset, ListOrganizationRepositoryRulesets, ListRepositoryRuleSuites, and GetRepositoryRuleSuite functions. - Validate tool definitions, input schemas, and required parameters. - Mock GitHub API responses for various scenarios including successful fetches and error cases. - Ensure proper error handling and assertions for expected outcomes in tests.
Delete pkg/github/discussions_test.go
There was a problem hiding this comment.
This PR adds comprehensive support for GitHub repository rules, rulesets, and rule suites across repository, organization, and enterprise levels. Additionally, it introduces custom properties functionality for repositories, organizations, and enterprises.
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| pkg/github/tools.go | Adds new tool registrations for rulesets, rule suites, and custom properties across repository, organization, and enterprise scopes |
| pkg/github/rules.go | Implements complete ruleset and rule suite functionality with both read and write operations |
| pkg/github/rules_test.go | Comprehensive test suite validating tool definitions, parameter validation, and API interactions |
| pkg/github/custom_properties.go | Implements custom properties management for repositories, organizations, and enterprises |
| pkg/github/toolsnaps/*.snap | Tool definition snapshots for automated validation |
| docs/remote-server.md | Documents new enterprise toolset availability |
| README.md | Updates documentation with all new tools and their parameters |
| pkg/github/discussions_test.go | File deletion (moved/consolidated elsewhere) |
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Add support for GitHub repository rules, rulesets, and rule suites
Closes: #820