Skip to content

Commit 9c2d08f

Browse files
committed
adding repos consolidation
1 parent 11c3d70 commit 9c2d08f

File tree

3 files changed

+910
-59
lines changed

3 files changed

+910
-59
lines changed

README.md

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -989,95 +989,72 @@ Possible options:
989989
- `owner`: Repository owner (string, required)
990990
- `repo`: Repository name (string, required)
991991

992-
- **create_or_update_file** - Create or update file
993-
- `branch`: Branch to create/update the file in (string, required)
994-
- `content`: Content of the file (string, required)
995-
- `message`: Commit message (string, required)
996-
- `owner`: Repository owner (username or organization) (string, required)
997-
- `path`: Path where to create/update the file (string, required)
998-
- `repo`: Repository name (string, required)
999-
- `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
1000-
1001992
- **create_repository** - Create repository
1002993
- `autoInit`: Initialize with README (boolean, optional)
1003994
- `description`: Repository description (string, optional)
1004995
- `name`: Repository name (string, required)
1005996
- `organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
1006997
- `private`: Whether repo should be private (boolean, optional)
1007998

1008-
- **delete_file** - Delete file
1009-
- `branch`: Branch to delete the file from (string, required)
1010-
- `message`: Commit message (string, required)
1011-
- `owner`: Repository owner (username or organization) (string, required)
1012-
- `path`: Path to the file to delete (string, required)
1013-
- `repo`: Repository name (string, required)
1014-
1015999
- **fork_repository** - Fork repository
10161000
- `organization`: Organization to fork to (string, optional)
10171001
- `owner`: Repository owner (string, required)
10181002
- `repo`: Repository name (string, required)
10191003

1020-
- **get_commit** - Get commit details
1021-
- `include_diff`: Whether to include file diffs and stats in the response. Default is true. (boolean, optional)
1022-
- `owner`: Repository owner (string, required)
1023-
- `page`: Page number for pagination (min 1) (number, optional)
1024-
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1025-
- `repo`: Repository name (string, required)
1026-
- `sha`: Commit SHA, branch name, or tag name (string, required)
1027-
10281004
- **get_file_contents** - Get file or directory contents
10291005
- `owner`: Repository owner (username or organization) (string, required)
10301006
- `path`: Path to file/directory (directories must end with a slash '/') (string, optional)
10311007
- `ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
10321008
- `repo`: Repository name (string, required)
10331009
- `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
10341010

1035-
- **get_latest_release** - Get latest release
1036-
- `owner`: Repository owner (string, required)
1037-
- `repo`: Repository name (string, required)
1038-
1039-
- **get_release_by_tag** - Get a release by tag name
1040-
- `owner`: Repository owner (string, required)
1041-
- `repo`: Repository name (string, required)
1042-
- `tag`: Tag name (e.g., 'v1.0.0') (string, required)
1043-
1044-
- **get_tag** - Get tag details
1045-
- `owner`: Repository owner (string, required)
1046-
- `repo`: Repository name (string, required)
1047-
- `tag`: Tag name (string, required)
1048-
10491011
- **list_branches** - List branches
10501012
- `owner`: Repository owner (string, required)
10511013
- `page`: Page number for pagination (min 1) (number, optional)
10521014
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
10531015
- `repo`: Repository name (string, required)
10541016

1055-
- **list_commits** - List commits
1056-
- `author`: Author username or email address to filter commits by (string, optional)
1017+
- **repository_commits** - Repository commits
1018+
- `author`: For 'list' only: author username or email address to filter commits by (string, optional)
1019+
- `include_diff`: For 'get' only: whether to include file diffs and stats. Default is true (boolean, optional)
1020+
- `method`: Operation to perform: 'get' for commit details, 'list' for commit history (string, required)
10571021
- `owner`: Repository owner (string, required)
10581022
- `page`: Page number for pagination (min 1) (number, optional)
10591023
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
10601024
- `repo`: Repository name (string, required)
1061-
- `sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
1025+
- `sha`: For 'get': commit SHA/branch/tag (required). For 'list': optional filter for commits up to this SHA/branch/tag (string, optional)
10621026

1063-
- **list_releases** - List releases
1027+
- **repository_files** - Repository files
1028+
- `branch`: Branch to operate on (string, required)
1029+
- `content`: For 'create_or_update' only: file content (required when method=create_or_update) (string, optional)
1030+
- `files`: For 'push_multiple' only: array of file objects (required when method=push_multiple) (object[], optional)
1031+
- `message`: Commit message (string, required)
1032+
- `method`: Operation: 'create_or_update' for single file, 'delete' to remove file, 'push_multiple' for batch (string, required)
1033+
- `owner`: Repository owner (username or organization) (string, required)
1034+
- `path`: For 'create_or_update' and 'delete': file path (required for these methods) (string, optional)
1035+
- `repo`: Repository name (string, required)
1036+
- `sha`: For 'create_or_update' only: blob SHA of file being replaced (required if updating existing file) (string, optional)
1037+
1038+
- **repository_releases** - Repository releases
1039+
- `method`: Operation: 'list' for all releases, 'get_latest' for most recent, 'get_by_tag' for specific release (string, required)
10641040
- `owner`: Repository owner (string, required)
10651041
- `page`: Page number for pagination (min 1) (number, optional)
10661042
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
10671043
- `repo`: Repository name (string, required)
1044+
- `tag`: For 'get_by_tag' only: tag name (e.g., 'v1.0.0') - required when method=get_by_tag (string, optional)
10681045

1069-
- **list_tags** - List tags
1046+
- **repository_stars** - Repository stars
1047+
- `method`: Operation: 'star' to star repository, 'unstar' to remove star (string, required)
10701048
- `owner`: Repository owner (string, required)
1071-
- `page`: Page number for pagination (min 1) (number, optional)
1072-
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
10731049
- `repo`: Repository name (string, required)
10741050

1075-
- **push_files** - Push files to repository
1076-
- `branch`: Branch to push to (string, required)
1077-
- `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
1078-
- `message`: Commit message (string, required)
1051+
- **repository_tags** - Repository tags
1052+
- `method`: Operation: 'list' for all tags, 'get' for specific tag details (string, required)
10791053
- `owner`: Repository owner (string, required)
1054+
- `page`: Page number for pagination (min 1) (number, optional)
1055+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
10801056
- `repo`: Repository name (string, required)
1057+
- `tag`: For 'get' only: tag name (required when method=get) (string, optional)
10811058

10821059
- **search_code** - Search code
10831060
- `order`: Sort order for results (string, optional)

0 commit comments

Comments
 (0)