You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
1006
997
-`private`: Whether repo should be private (boolean, optional)
1007
998
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
-
1015
999
-**fork_repository** - Fork repository
1016
1000
-`organization`: Organization to fork to (string, optional)
1017
1001
-`owner`: Repository owner (string, required)
1018
1002
-`repo`: Repository name (string, required)
1019
1003
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
-
1028
1004
-**get_file_contents** - Get file or directory contents
1029
1005
-`owner`: Repository owner (username or organization) (string, required)
1030
1006
-`path`: Path to file/directory (directories must end with a slash '/') (string, optional)
1031
1007
-`ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
1032
1008
-`repo`: Repository name (string, required)
1033
1009
-`sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
1034
1010
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
-
1049
1011
-**list_branches** - List branches
1050
1012
-`owner`: Repository owner (string, required)
1051
1013
-`page`: Page number for pagination (min 1) (number, optional)
1052
1014
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1053
1015
-`repo`: Repository name (string, required)
1054
1016
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)
1057
1021
-`owner`: Repository owner (string, required)
1058
1022
-`page`: Page number for pagination (min 1) (number, optional)
1059
1023
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1060
1024
-`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)
1062
1026
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)
1064
1040
-`owner`: Repository owner (string, required)
1065
1041
-`page`: Page number for pagination (min 1) (number, optional)
1066
1042
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1067
1043
-`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)
1068
1045
1069
-
-**list_tags** - List tags
1046
+
-**repository_stars** - Repository stars
1047
+
-`method`: Operation: 'star' to star repository, 'unstar' to remove star (string, required)
1070
1048
-`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)
1073
1049
-`repo`: Repository name (string, required)
1074
1050
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)
1079
1053
-`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)
1080
1056
-`repo`: Repository name (string, required)
1057
+
-`tag`: For 'get' only: tag name (required when method=get) (string, optional)
1081
1058
1082
1059
-**search_code** - Search code
1083
1060
-`order`: Sort order for results (string, optional)
0 commit comments