@@ -824,24 +824,10 @@ Create a new branch in a GitHub repository by creating a git reference pointing
824824
825825| Parameter | Type | Description |
826826| --------- | ---- | ----------- |
827- | ` data ` | json | Operation result data \( API-aligned\) |
828- | ` action ` | string | The action that was performed |
829- | ` event_type ` | string | Type of GitHub event |
830- | ` repository ` | string | Repository full name |
831- | ` repository_name ` | string | Repository name only |
832- | ` repository_owner ` | string | Repository owner username |
833- | ` sender ` | string | Username of the user who triggered the event |
834- | ` sender_id ` | string | User ID of the sender |
835- | ` ref ` | string | Git reference \( for push events\) |
836- | ` before ` | string | SHA of the commit before the push |
837- | ` after ` | string | SHA of the commit after the push |
838- | ` commits ` | string | Array of commit objects \( for push events\) |
839- | ` pull_request ` | string | Pull request object \( for pull_request events\) |
840- | ` issue ` | string | Issue object \( for issues events\) |
841- | ` comment ` | string | Comment object \( for comment events\) |
842- | ` branch ` | string | Branch name extracted from ref |
843- | ` commit_message ` | string | Latest commit message |
844- | ` commit_author ` | string | Author of the latest commit |
827+ | ` ref ` | string | Full reference name \( refs/heads/branch\) |
828+ | ` node_id ` | string | Git ref node ID |
829+ | ` url ` | string | API URL for the reference |
830+ | ` object ` | json | Git object with type and sha |
845831
846832### ` github_delete_branch `
847833
@@ -860,24 +846,8 @@ Delete a branch from a GitHub repository by removing its git reference. Protecte
860846
861847| Parameter | Type | Description |
862848| --------- | ---- | ----------- |
863- | ` data ` | json | Operation result data \( API-aligned\) |
864- | ` action ` | string | The action that was performed |
865- | ` event_type ` | string | Type of GitHub event |
866- | ` repository ` | string | Repository full name |
867- | ` repository_name ` | string | Repository name only |
868- | ` repository_owner ` | string | Repository owner username |
869- | ` sender ` | string | Username of the user who triggered the event |
870- | ` sender_id ` | string | User ID of the sender |
871- | ` ref ` | string | Git reference \( for push events\) |
872- | ` before ` | string | SHA of the commit before the push |
873- | ` after ` | string | SHA of the commit after the push |
874- | ` commits ` | string | Array of commit objects \( for push events\) |
875- | ` pull_request ` | string | Pull request object \( for pull_request events\) |
876- | ` issue ` | string | Issue object \( for issues events\) |
877- | ` comment ` | string | Comment object \( for comment events\) |
878- | ` branch ` | string | Branch name extracted from ref |
879- | ` commit_message ` | string | Latest commit message |
880- | ` commit_author ` | string | Author of the latest commit |
849+ | ` deleted ` | boolean | Whether the branch was deleted |
850+ | ` branch ` | string | Name of the deleted branch |
881851
882852### ` github_get_branch_protection `
883853
@@ -896,24 +866,17 @@ Get the branch protection rules for a specific branch, including status checks,
896866
897867| Parameter | Type | Description |
898868| --------- | ---- | ----------- |
899- | ` data ` | json | Operation result data \( API-aligned\) |
900- | ` action ` | string | The action that was performed |
901- | ` event_type ` | string | Type of GitHub event |
902- | ` repository ` | string | Repository full name |
903- | ` repository_name ` | string | Repository name only |
904- | ` repository_owner ` | string | Repository owner username |
905- | ` sender ` | string | Username of the user who triggered the event |
906- | ` sender_id ` | string | User ID of the sender |
907- | ` ref ` | string | Git reference \( for push events\) |
908- | ` before ` | string | SHA of the commit before the push |
909- | ` after ` | string | SHA of the commit after the push |
910- | ` commits ` | string | Array of commit objects \( for push events\) |
911- | ` pull_request ` | string | Pull request object \( for pull_request events\) |
912- | ` issue ` | string | Issue object \( for issues events\) |
913- | ` comment ` | string | Comment object \( for comment events\) |
914- | ` branch ` | string | Branch name extracted from ref |
915- | ` commit_message ` | string | Latest commit message |
916- | ` commit_author ` | string | Author of the latest commit |
869+ | ` url ` | string | Protection settings URL |
870+ | ` required_status_checks ` | json | Status check requirements |
871+ | ` enforce_admins ` | json | Admin enforcement settings |
872+ | ` required_pull_request_reviews ` | json | PR review requirements |
873+ | ` restrictions ` | json | Push restrictions |
874+ | ` required_linear_history ` | json | Linear history requirement |
875+ | ` allow_force_pushes ` | json | Force push settings |
876+ | ` allow_deletions ` | json | Deletion settings |
877+ | ` block_creations ` | json | Creation blocking settings |
878+ | ` required_conversation_resolution ` | json | Conversation resolution requirement |
879+ | ` required_signatures ` | json | Signature requirements |
917880
918881### ` github_update_branch_protection `
919882
@@ -936,24 +899,17 @@ Update branch protection rules for a specific branch, including status checks, r
936899
937900| Parameter | Type | Description |
938901| --------- | ---- | ----------- |
939- | ` data ` | json | Operation result data \( API-aligned\) |
940- | ` action ` | string | The action that was performed |
941- | ` event_type ` | string | Type of GitHub event |
942- | ` repository ` | string | Repository full name |
943- | ` repository_name ` | string | Repository name only |
944- | ` repository_owner ` | string | Repository owner username |
945- | ` sender ` | string | Username of the user who triggered the event |
946- | ` sender_id ` | string | User ID of the sender |
947- | ` ref ` | string | Git reference \( for push events\) |
948- | ` before ` | string | SHA of the commit before the push |
949- | ` after ` | string | SHA of the commit after the push |
950- | ` commits ` | string | Array of commit objects \( for push events\) |
951- | ` pull_request ` | string | Pull request object \( for pull_request events\) |
952- | ` issue ` | string | Issue object \( for issues events\) |
953- | ` comment ` | string | Comment object \( for comment events\) |
954- | ` branch ` | string | Branch name extracted from ref |
955- | ` commit_message ` | string | Latest commit message |
956- | ` commit_author ` | string | Author of the latest commit |
902+ | ` url ` | string | Protection settings URL |
903+ | ` required_status_checks ` | json | Status check requirements |
904+ | ` enforce_admins ` | json | Admin enforcement settings |
905+ | ` required_pull_request_reviews ` | json | PR review requirements |
906+ | ` restrictions ` | json | Push restrictions |
907+ | ` required_linear_history ` | json | Linear history requirement |
908+ | ` allow_force_pushes ` | json | Force push settings |
909+ | ` allow_deletions ` | json | Deletion settings |
910+ | ` block_creations ` | json | Creation blocking settings |
911+ | ` required_conversation_resolution ` | json | Conversation resolution requirement |
912+ | ` required_signatures ` | json | Signature requirements |
957913
958914### ` github_create_issue `
959915
0 commit comments