The repo module is an interface for performing actions onto git providers. Reply to a comment, create an issue, review a pull request, open a pull request, etc.
Example Usage
from blocks import repo# Create a new issuerepo.create_issue( title="Update README.md", body="Update the README.md file", state="open", target_branch="main")# Update an issuerepo.update_issue( issue_number=1, title="Update README.md", body="Update the README.md file", state="open", target_branch="main")# Comment on a pull requestrepo.comment_on_pull_request( pull_request_number=1, body="Update the README.md file", owner="BlocksOrg", repo="blocks")
Methods
update_pull_request
Updates a pull request. Typically, you’d use this to update the title, body/description, or state of a pull request.
repo.review_pull_request( pull_request_number=1, body="Update the README.md file", commit_id="1234567890", comments=[], event="COMMENT",)
int
required
The number of the pull request to review.
string
required
The body of the review.
string
The SHA of the commit to review.
list
A list of comments to add to the review.
Show child attributes
string
required
The relative path to the file that necessitates a review comment.
string
required
The body of the comment.
int
The line number to review.
string
The side of the comment in the file.
int
The start line of the comment in the file.
int
The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first ”@@” hunk header in the file you want to add a comment. The line just below the ”@@” line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
string
The event to trigger on the review.
Show child attributes
string
The review is approved.
string
The review is requested changes.
string
The review is a comment.
string
The owner of the repository.
string
The name of the repository.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Blocks Documentation","colors":{"primary":"#18181B","light":"#71717A","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/blocks/HTNc0ckodUIDrojv/assets/blocks-black.png?fit=max\u0026auto=format\u0026n=HTNc0ckodUIDrojv\u0026q=85\u0026s=336ed9a43749343de480a1b0af782111","dark":"https://mintcdn.com/blocks/HTNc0ckodUIDrojv/assets/blocks-white.png?fit=max\u0026auto=format\u0026n=HTNc0ckodUIDrojv\u0026q=85\u0026s=267b988e38d84f95fa427ee58c6b9329"},"favicon":"https://mintcdn.com/blocks/CNNCmbDE9JAuK9LZ/assets/blocks-icon.png?fit=max\u0026auto=format\u0026n=CNNCmbDE9JAuK9LZ\u0026q=85\u0026s=96e69c3bcff105d077635b83986eb818","navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://blocks.team"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"blocks","hasAudioNarration":false,"actualSubdomain":"blocks","customDomains":["docs.blocks.team"],"gitSource":{"type":"github","owner":"blocksorg","repo":"client-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af0056eb8b336632a6d3781","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"Using Blocks","count":40},{"language":"default","tag":"SDK","count":35},{"language":"default","tag":"Agents","count":11},{"language":"default","tag":"Events","count":11},{"language":"default","tag":"Platform Integrations","count":11},{"language":"default","tag":"Features","count":10},{"language":"default","tag":"REST API","count":8},{"language":"default","tag":"Use Cases","count":6},{"language":"default","tag":"Agent Sessions","count":5},{"language":"default","tag":"CLI","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"sdk/repo","slug":"/sdk/repo","pageMetadata":{"title":"repo","description":null,"href":"/sdk/repo"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`repo`}),` module is an interface for performing actions onto git providers. Reply to a comment, create an issue, review a pull request, open a pull request, etc.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`26`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` blocks `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` repo`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create a new issue`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.create_issue(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` state`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"open\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_branch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"main\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Update an issue`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.update_issue(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` issue_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` state`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"open\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_branch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"main\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Comment on a pull request`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.comment_on_pull_request(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` owner`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BlocksOrg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` repo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blocks\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`update_pull_request`,children:`update_pull_request`}),`\n`,_jsx(_components.p,{children:`Updates a pull request. Typically, you’d use this to update the title, body/description, or state of a pull request.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.update_pull_request(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Some description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`pull_request_number`,type:`int`,required:true,id:`param-pull-request-number`,children:_jsx(_components.p,{children:`The number of the pull request to update.`})}),`\n`,_jsx(ParamField,{path:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`The title of the pull request.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,id:`param-body`,children:_jsx(_components.p,{children:`The body of the pull request.`})}),`\n`,_jsx(ParamField,{path:`maintainer_can_modify`,type:`bool`,id:`param-maintainer-can-modify`,children:_jsx(_components.p,{children:`Whether the maintainer can modify the pull request.`})}),`\n`,_jsxs(ParamField,{path:`state`,type:`string`,id:`param-state`,children:[_jsx(_components.p,{children:`The state of the pull request.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`open`,type:`string`,id:`param-open`,children:_jsx(_components.p,{children:`The pull request is open.`})}),_jsx(ParamField,{path:`closed`,type:`string`,id:`param-closed`,children:_jsx(_components.p,{children:`The pull request is closed.`})})]})]}),`\n`,_jsx(ParamField,{path:`target_branch`,type:`string`,id:`param-target-branch`,children:_jsx(_components.p,{children:`The target branch of the pull request.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`update_issue`,children:`update_issue`}),`\n`,_jsx(_components.p,{children:`Updates an issue. Typically, you’d use this to update the title, description, or state of an issue.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.update_issue(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` issue_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`issue_number`,type:`int`,required:true,id:`param-issue-number`,children:_jsx(_components.p,{children:`The number of the issue to update.`})}),`\n`,_jsx(ParamField,{path:`title`,type:`string`,id:`param-title-1`,children:_jsx(_components.p,{children:`The title of the issue.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,id:`param-body-1`,children:_jsx(_components.p,{children:`The body of the issue.`})}),`\n`,_jsxs(ParamField,{path:`state`,type:`string`,id:`param-state-1`,children:[_jsx(_components.p,{children:`The state of the issue.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`open`,type:`string`,id:`param-open-1`,children:_jsx(_components.p,{children:`The issue is open.`})}),_jsx(ParamField,{path:`closed`,type:`string`,id:`param-closed-1`,children:_jsx(_components.p,{children:`The issue is closed.`})})]})]}),`\n`,_jsxs(ParamField,{path:`state_reason`,type:`string`,id:`param-state-reason`,children:[_jsx(_components.p,{children:`The reason the issue is in the state it is in.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`completed`,type:`string`,id:`param-completed`,children:_jsx(_components.p,{children:`The issue is completed.`})}),_jsx(ParamField,{path:`not_planned`,type:`string`,id:`param-not-planned`,children:_jsx(_components.p,{children:`The issue is not planned.`})}),_jsx(ParamField,{path:`reopened`,type:`string`,id:`param-reopened`,children:_jsx(_components.p,{children:`The issue is reopened.`})})]})]}),`\n`,_jsx(ParamField,{path:`milestone`,type:`int`,id:`param-milestone`,children:_jsx(_components.p,{children:`The number of the milestone to assign to the issue.`})}),`\n`,_jsx(ParamField,{path:`target_branch`,type:`string`,id:`param-target-branch-1`,children:_jsx(_components.p,{children:`The target branch of the issue.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-1`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-1`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`create_issue`,children:`create_issue`}),`\n`,_jsx(_components.p,{children:`Creates an issue.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.create_issue(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Some description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`title`,type:`string`,required:true,id:`param-title-2`,children:_jsx(_components.p,{children:`The title of the issue.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,id:`param-body-2`,children:_jsx(_components.p,{children:`The body of the issue.`})}),`\n`,_jsx(ParamField,{path:`assignees`,type:`string[]`,id:`param-assignees`,children:_jsxs(_components.p,{children:[`A list of assignees to assign to the issue. Corresponds to arrays of `,_jsx(_components.code,{children:`user.login`}),`.`]})}),`\n`,_jsx(ParamField,{path:`labels`,type:`list`,id:`param-labels`,children:_jsx(_components.p,{children:`A list of labels to add to the issue.`})}),`\n`,_jsx(ParamField,{path:`milestone`,type:`int`,id:`param-milestone-1`,children:_jsx(_components.p,{children:`The number of the milestone to assign to the issue.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-2`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-2`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`create_pull_request`,children:`create_pull_request`}),`\n`,_jsx(_components.p,{children:`Creates a pull request.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.create_pull_request(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` source_branch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"main\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_branch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"develop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Some description\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`source_branch`,type:`string`,required:true,id:`param-source-branch`,children:_jsx(_components.p,{children:`The source branch to create the pull request from.`})}),`\n`,_jsx(ParamField,{path:`target_branch`,type:`string`,required:true,id:`param-target-branch-2`,children:_jsx(_components.p,{children:`The target branch to create the pull request to.`})}),`\n`,_jsx(ParamField,{path:`title`,type:`string`,required:true,id:`param-title-3`,children:_jsx(_components.p,{children:`The title of the pull request.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,id:`param-body-3`,children:_jsx(_components.p,{children:`The body of the pull request.`})}),`\n`,_jsx(ParamField,{path:`draft`,type:`bool`,id:`param-draft`,children:_jsx(_components.p,{children:`Whether the pull request is a draft.`})}),`\n`,_jsx(ParamField,{path:`issue_number`,type:`int`,id:`param-issue-number-1`,children:_jsx(_components.p,{children:`The number of the issue to create the pull request from.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-3`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-3`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`comment_on_pull_request`,children:`comment_on_pull_request`}),`\n`,_jsx(_components.p,{children:`Comments on a pull request.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.comment_on_pull_request(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`pull_request_number`,type:`int`,required:true,id:`param-pull-request-number-1`,children:_jsx(_components.p,{children:`The number of the pull request to comment on.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-4`,children:_jsx(_components.p,{children:`The body of the comment.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-4`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-4`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`delete_pull_request_comment`,children:`delete_pull_request_comment`}),`\n`,_jsx(_components.p,{children:`Deletes a pull request comment.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.delete_pull_request_comment(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` comment_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`comment_id`,type:`int`,required:true,id:`param-comment-id`,children:_jsx(_components.p,{children:`The ID of the comment to delete.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-5`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-5`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`update_pull_request_comment`,children:`update_pull_request_comment`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.update_pull_request_comment(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` comment_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Some description\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(_components.p,{children:`Updates a pull request comment.`}),`\n`,_jsx(ParamField,{path:`comment_id`,type:`int`,required:true,id:`param-comment-id-1`,children:_jsx(_components.p,{children:`The ID of the comment to update.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-5`,children:_jsx(_components.p,{children:`The body of the comment.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-6`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-6`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`comment_on_pull_request_file`,children:`comment_on_pull_request_file`}),`\n`,_jsx(_components.p,{children:`Comments on a file in a pull request.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.comment_on_pull_request_file(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` commit_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"README.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` position`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`commit_id`,type:`string`,id:`param-commit-id`,children:_jsx(_components.p,{children:`The SHA of the commit to comment on.`})}),`\n`,_jsx(ParamField,{path:`file_path`,type:`string`,id:`param-file-path`,children:_jsx(_components.p,{children:`The path of the file to comment on.`})}),`\n`,_jsx(ParamField,{path:`position`,type:`int`,id:`param-position`,children:_jsx(_components.p,{children:`The position of the comment in the file.`})}),`\n`,_jsx(ParamField,{path:`pull_request_number`,type:`int`,required:true,id:`param-pull-request-number-2`,children:_jsx(_components.p,{children:`The number of the pull request to comment on.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,id:`param-body-6`,children:_jsx(_components.p,{children:`The body of the comment.`})}),`\n`,_jsx(ParamField,{path:`line`,type:`int`,id:`param-line`,children:_jsx(_components.p,{children:`The line number to comment on.`})}),`\n`,_jsx(ParamField,{path:`reply_to_id`,type:`int`,id:`param-reply-to-id`,children:_jsx(_components.p,{children:`The ID of the comment to reply to.`})}),`\n`,_jsxs(ParamField,{path:`side`,type:`string`,id:`param-side`,children:[_jsx(_components.p,{children:`The side of the comment in the file.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`LEFT`,type:`string`,id:`param-left`,children:_jsx(_components.p,{children:`The comment is on the left side of the file.`})}),_jsx(ParamField,{path:`RIGHT`,type:`string`,id:`param-right`,children:_jsx(_components.p,{children:`The comment is on the right side of the file.`})})]})]}),`\n`,_jsx(ParamField,{path:`start_line`,type:`int`,id:`param-start-line`,children:_jsx(_components.p,{children:`The start line of the comment in the file.`})}),`\n`,_jsxs(ParamField,{path:`start_side`,type:`string`,id:`param-start-side`,children:[_jsx(_components.p,{children:`The side of the comment in the file.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`LEFT`,type:`string`,id:`param-left-1`,children:_jsx(_components.p,{children:`The comment is on the left side of the file.`})}),_jsx(ParamField,{path:`RIGHT`,type:`string`,id:`param-right-1`,children:_jsx(_components.p,{children:`The comment is on the right side of the file.`})}),_jsx(ParamField,{path:`side`,type:`string`,id:`param-side-1`,children:_jsx(_components.p,{children:`The comment is on the side of the file.`})})]})]}),`\n`,_jsxs(ParamField,{path:`subject_type`,type:`string`,id:`param-subject-type`,children:[_jsx(_components.p,{children:`The type of the subject.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`line`,type:`string`,id:`param-line-1`,children:_jsx(_components.p,{children:`The comment is on a line.`})}),_jsx(ParamField,{path:`file`,type:`string`,id:`param-file`,children:_jsx(_components.p,{children:`The comment is on a file.`})})]})]}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-7`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-7`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`update_issue_comment`,children:`update_issue_comment`}),`\n`,_jsx(_components.p,{children:`Updates an issue comment.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.update_issue_comment(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` comment_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`comment_id`,type:`int`,required:true,id:`param-comment-id-2`,children:_jsx(_components.p,{children:`The ID of the comment to update.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-7`,children:_jsx(_components.p,{children:`The body of the comment.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-8`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-8`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`delete_issue_comment`,children:`delete_issue_comment`}),`\n`,_jsx(_components.p,{children:`Deletes an issue comment.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.delete_issue_comment(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` comment_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`comment_id`,type:`int`,required:true,id:`param-comment-id-3`,children:_jsx(_components.p,{children:`The ID of the comment to delete.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-9`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-9`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`comment_on_issue`,children:`comment_on_issue`}),`\n`,_jsx(_components.p,{children:`Comments on an issue.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.comment_on_issue(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` issue_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`issue_number`,type:`int`,required:true,id:`param-issue-number-2`,children:_jsx(_components.p,{children:`The number of the issue to comment on.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-8`,children:_jsx(_components.p,{children:`The body of the comment.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-10`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-10`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`reply_to_pull_request_comment`,children:`reply_to_pull_request_comment`}),`\n`,_jsx(_components.p,{children:`Replies to a pull request comment.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.reply_to_pull_request_comment(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` reply_to_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Some description\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`reply_to_id`,type:`int`,required:true,id:`param-reply-to-id-1`,children:_jsx(_components.p,{children:`The ID of the comment to reply to.`})}),`\n`,_jsx(ParamField,{path:`pull_request_number`,type:`int`,required:true,id:`param-pull-request-number-3`,children:_jsx(_components.p,{children:`The number of the pull request to reply to.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-9`,children:_jsx(_components.p,{children:`The body of the reply.`})}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-11`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-11`,children:_jsx(_components.p,{children:`The name of the repository.`})}),`\n`,_jsx(Heading,{level:`3`,id:`review_pull_request`,children:`review_pull_request`}),`\n`,_jsx(_components.p,{children:`Reviews a pull request.`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`python`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`repo.review_pull_request(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pull_request_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Update the README.md file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` commit_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` comments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` event`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"COMMENT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),`\n`,_jsx(ParamField,{path:`pull_request_number`,type:`int`,required:true,id:`param-pull-request-number-4`,children:_jsx(_components.p,{children:`The number of the pull request to review.`})}),`\n`,_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-10`,children:_jsx(_components.p,{children:`The body of the review.`})}),`\n`,_jsx(ParamField,{path:`commit_id`,type:`string`,id:`param-commit-id-1`,children:_jsx(_components.p,{children:`The SHA of the commit to review.`})}),`\n`,_jsxs(ParamField,{path:`comments`,type:`list`,id:`param-comments`,children:[_jsx(_components.p,{children:`A list of comments to add to the review.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`path`,type:`string`,required:true,id:`param-path`,children:_jsx(_components.p,{children:`The relative path to the file that necessitates a review comment.`})}),_jsx(ParamField,{path:`body`,type:`string`,required:true,id:`param-body-11`,children:_jsx(_components.p,{children:`The body of the comment.`})}),_jsx(ParamField,{path:`line`,type:`int`,id:`param-line-2`,children:_jsx(_components.p,{children:`The line number to review.`})}),_jsx(ParamField,{path:`side`,type:`string`,id:`param-side-2`,children:_jsx(_components.p,{children:`The side of the comment in the file.`})}),_jsx(ParamField,{path:`start_line`,type:`int`,id:`param-start-line-1`,children:_jsx(_components.p,{children:`The start line of the comment in the file.`})}),_jsx(ParamField,{path:`position`,type:`int`,id:`param-position-1`,children:_jsx(_components.p,{children:`The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first ”@@” hunk header in the file you want to add a comment. The line just below the ”@@” line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.`})})]})]}),`\n`,_jsxs(ParamField,{path:`event`,type:`string`,id:`param-event`,children:[_jsx(_components.p,{children:`The event to trigger on the review.`}),_jsxs(Expandable,{children:[_jsx(ParamField,{path:`APPROVE`,type:`string`,id:`param-approve`,children:_jsx(_components.p,{children:`The review is approved.`})}),_jsx(ParamField,{path:`REQUEST_CHANGES`,type:`string`,id:`param-request-changes`,children:_jsx(_components.p,{children:`The review is requested changes.`})}),_jsx(ParamField,{path:`COMMENT`,type:`string`,id:`param-comment`,children:_jsx(_components.p,{children:`The review is a comment.`})})]})]}),`\n`,_jsx(ParamField,{path:`owner`,type:`string`,id:`param-owner-12`,children:_jsx(_components.p,{children:`The owner of the repository.`})}),`\n`,_jsx(ParamField,{path:`repo`,type:`string`,id:`param-repo-12`,children:_jsx(_components.p,{children:`The name of the repository.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"repo","description":null,"href":"/sdk/repo"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example Usage","slug":"example-usage","depth":2,"children":[]},{"title":"Methods","slug":"methods","depth":2,"children":[{"title":"update_pull_request","slug":"update_pull_request","depth":3,"children":[]},{"title":"update_issue","slug":"update_issue","depth":3,"children":[]},{"title":"create_issue","slug":"create_issue","depth":3,"children":[]},{"title":"create_pull_request","slug":"create_pull_request","depth":3,"children":[]},{"title":"comment_on_pull_request","slug":"comment_on_pull_request","depth":3,"children":[]},{"title":"delete_pull_request_comment","slug":"delete_pull_request_comment","depth":3,"children":[]},{"title":"update_pull_request_comment","slug":"update_pull_request_comment","depth":3,"children":[]},{"title":"comment_on_pull_request_file","slug":"comment_on_pull_request_file","depth":3,"children":[]},{"title":"update_issue_comment","slug":"update_issue_comment","depth":3,"children":[]},{"title":"delete_issue_comment","slug":"delete_issue_comment","depth":3,"children":[]},{"title":"comment_on_issue","slug":"comment_on_issue","depth":3,"children":[]},{"title":"reply_to_pull_request_comment","slug":"reply_to_pull_request_comment","depth":3,"children":[]},{"title":"review_pull_request","slug":"review_pull_request","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/blocks/cf7afd78d5c61da4/reb2b.js"],"subdomain":"blocks","siteName":"Blocks Documentation","title":"repo - Blocks Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-09T22:57:09.394Z","originalFileLocation":"sdk/repo.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Blocks Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"repo - Blocks Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Blocks Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.blocks.team/sdk/repo\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://blocks.mintlify.site/_mintlify/api/og/v2?division=SDK\u0026amp;title=repo\u0026amp;theme=d61a3594f984340f6c29f947\u0026amp;signature=e37ea4dba23c0da474a1f673b7e3fc919fca46e7bf50bc4e519586cbe4e649e4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"repo - Blocks Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://blocks.mintlify.site/_mintlify/api/og/v2?division=SDK\u0026amp;title=repo\u0026amp;theme=d61a3594f984340f6c29f947\u0026amp;signature=e37ea4dba23c0da474a1f673b7e3fc919fca46e7bf50bc4e519586cbe4e649e4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/blocks/CzYW4MX8WiJzfatV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Blocks Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.blocks.team/sdk/repo\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/repo.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.blocks.team/#organization\",\"name\":\"Blocks Documentation\",\"url\":\"https://docs.blocks.team\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/blocks/HTNc0ckodUIDrojv/assets/blocks-black.png?fit=max\u0026auto=format\u0026n=HTNc0ckodUIDrojv\u0026q=85\u0026s=336ed9a43749343de480a1b0af782111\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.blocks.team#website\",\"name\":\"Blocks Documentation\",\"url\":\"https://docs.blocks.team\",\"publisher\":{\"@id\":\"https://docs.blocks.team/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.blocks.team/sdk/repo#webpage\",\"url\":\"https://docs.blocks.team/sdk/repo\",\"name\":\"repo\",\"dateModified\":\"2026-10-09T22:57:09.394Z\",\"isPartOf\":{\"@id\":\"https://docs.blocks.team#website\"},\"breadcrumb\":{\"@id\":\"https://docs.blocks.team/sdk/repo#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.blocks.team/sdk/repo#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK\",\"item\":\"https://docs.blocks.team/sdk/bash\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"repo\",\"item\":\"https://docs.blocks.team/sdk/repo\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.blocks.team/sdk/repo#article\",\"headline\":\"repo\",\"name\":\"repo\",\"url\":\"https://docs.blocks.team/sdk/repo\",\"mainEntityOfPage\":{\"@id\":\"https://docs.blocks.team/sdk/repo#webpage\"},\"dateModified\":\"2026-10-09T22:57:09.394Z\",\"publisher\":{\"@id\":\"https://docs.blocks.team/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.blocks.team#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Blocks Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Blocks Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/repo.md","siteName":"Blocks Documentation","nav":{"global":null,"tabs":[{"tab":"Using Blocks","pages":[{"title":"Using Blocks","href":"/using-blocks/welcome"}]},{"tab":"SDK","pages":[{"group":"Getting Started","pages":[{"title":"Installation","href":"/sdk/installation"},{"title":"API Keys","href":"/sdk/api-keys"},{"title":"CLI","href":"/sdk/cli"}]},{"group":"Agents","pages":[{"title":"Decorators","href":"/agents/decorators"},{"title":"Events","href":"/agents/events"},{"title":"Environment Variables","href":"/agents/environment-variables"},{"title":"Config Model","href":"/agents/config-model"}]},{"group":"CLI","pages":[{"title":"configure","href":"/cli/configure"},{"title":"create","href":"/cli/create"},{"title":"init","href":"/cli/init"},{"title":"push","href":"/cli/push"}]},{"group":"Events","pages":[{"title":"github.issue_comment","href":"/events/github-issue-comment"},{"title":"github.issues","href":"/events/github-issues"},{"title":"github.pull_request","href":"/events/github-pull-request"},{"title":"github.pull_request_comment","href":"/events/github-pull-request-comment"},{"title":"github.pull_request_review_comment","href":"/events/github-pull-request-review-comment"},{"title":"linear.issues","href":"/events/linear-issues"},{"title":"linear.issue_comment","href":"/events/linear-issue-comment"},{"title":"schedule.daily","href":"/events/schedule-daily"},{"title":"schedule.weekly","href":"/events/schedule-weekly"},{"title":"slack.mention","href":"/events/slack-mention"},{"title":"webhook","href":"/events/webhook"}]},{"group":"Decorators","pages":[{"title":"@task","href":"/decorators/task"},{"title":"@agent","href":"/decorators/agent"},{"title":"@on","href":"/decorators/on"}]},{"group":"SDK","pages":[{"title":"bash","href":"/sdk/bash"},{"title":"experimental_bash","href":"/sdk/experimental-bash"},{"title":"config","href":"/sdk/config"},{"title":"git","description":null,"href":"/sdk/git"},{"title":"repo","href":"/sdk/repo"}]}]},{"tab":"REST API","pages":[{"title":"REST API","href":"/rest-api/quick-start"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes"}]}]},"basePath":"","title":"repo - Blocks Documentation","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":[],"chunks":[]}