import{s as Ce,n as Ie,o as Xe}from"../chunks/scheduler.6062bdaf.js";import{S as Pe,i as Ne,g as i,s as l,r as u,A as Be,h as c,f as a,c as n,j as Ge,u as o,x as p,k as De,y as Ee,a as t,v as r,d as h,t as g,w as f}from"../chunks/index.4bca734e.js";import{H as E,g as We}from"../chunks/Heading.949e2f88.js";import{C as W}from"../chunks/CodeBlock.fa01571c.js";function Ye(Me){let d,Y,N,z,m,V,_,je=`The <code>huggingface_hub</code> library provides a Python interface to interact with Pull Requests and Discussions on the Hub.
Visit <a href="https://huggingface.co/docs/hub/repositories-pull-requests-discussions" rel="nofollow">the dedicated documentation page</a>
for a deeper view of what Discussions and Pull Requests on the Hub are, and how they work under the hood.`,L,b,S,M,ye="The <code>HfApi</code> class allows you to retrieve Discussions and Pull Requests on a given repo:",Q,j,F,y,Te=`<code>HfApi.get_repo_discussions</code> returns a <a href="https://docs.python.org/3.7/howto/functional.html#generators" rel="nofollow">generator</a> that yields
<a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.Discussion">Discussion</a> objects. To get all the Discussions in a single list, run:`,K,T,O,w,we=`The <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.Discussion">Discussion</a> object returned by <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.get_repo_discussions">HfApi.get_repo_discussions()</a> contains high-level overview of the
Discussion or Pull Request. You can also get more detailed information using <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">HfApi.get_discussion_details()</a>:`,ee,v,se,J,ve=`<a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">HfApi.get_discussion_details()</a> returns a <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a> object, which is a subclass of <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.Discussion">Discussion</a>
with more detailed information about the Discussion or Pull Request. Information includes all the comments, status changes,
and renames of the Discussion via <code>DiscussionWithDetails.events</code>.`,ae,k,Je=`In case of a Pull Request, you can retrieve the raw git diff with <code>DiscussionWithDetails.diff</code>. All the commits of the
Pull Request are listed in <code>DiscussionWithDetails.events</code>.`,te,U,le,$,ke=`The <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class also offers ways to create and edit Discussions and Pull Requests.
You will need an <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">access token</a> to create and edit Discussions
or Pull Requests.`,ne,q,Ue=`The simplest way to propose changes on a repo on the Hub is via the <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> API: just
set the <code>create_pr</code> parameter to <code>True</code>. This parameter is also available on other methods that wrap <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>:`,ie,H,$e='<li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a></li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a></li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.delete_file">delete_file()</a></li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.delete_folder">delete_folder()</a></li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/cards#huggingface_hub.metadata_update">metadata_update()</a></li>',ce,Z,pe,R,qe=`You can also use <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a> (respectively <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_pull_request">HfApi.create_pull_request()</a>) to create a Discussion (respectively a Pull Request) on a repo.
Opening a Pull Request this way can be useful if you need to work on changes locally. Pull Requests opened this way will be in <code>&quot;draft&quot;</code> mode.`,ue,A,oe,x,He='Managing Pull Requests and Discussions can be done entirely with the <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class. For example:',re,G,Ze='<li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.comment_discussion">comment_discussion()</a> to add comments</li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.edit_discussion_comment">edit_discussion_comment()</a> to edit comments</li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.rename_discussion">rename_discussion()</a> to rename a Discussion or Pull Request</li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.change_discussion_status">change_discussion_status()</a> to open or close a Discussion / Pull Request</li> <li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.merge_pull_request">merge_pull_request()</a> to merge a Pull Request</li>',he,D,Re='Visit the <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> documentation page for an exhaustive reference of all available methods.',ge,C,fe,I,Ae="<em>Coming soon !</em>",de,X,me,P,xe='For a more detailed reference, visit the <a href="../package_reference/community">Discussions and Pull Requests</a> and the <a href="../package_reference/hf_api">hf_api</a> documentation page.',_e,B,be;return m=new E({props:{title:"Interact with Discussions and Pull Requests",local:"interact-with-discussions-and-pull-requests",headingTag:"h1"}}),b=new E({props:{title:"Retrieve Discussions and Pull Requests from the Hub",local:"retrieve-discussions-and-pull-requests-from-the-hub",headingTag:"h2"}}),j=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZm9yJTIwZGlzY3Vzc2lvbiUyMGluJTIwZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJpZ3NjaWVuY2UlMkZibG9vbS0xYjMlMjIpJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoZiUyMiU3QmRpc2N1c3Npb24ubnVtJTdEJTIwLSUyMCU3QmRpc2N1c3Npb24udGl0bGUlN0QlMkMlMjBwciUzQSUyMCU3QmRpc2N1c3Npb24uaXNfcHVsbF9yZXF1ZXN0JTdEJTIyKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> discussion <span class="hljs-keyword">in</span> get_repo_discussions(repo_id=<span class="hljs-string">&quot;bigscience/bloom-1b3&quot;</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;<span class="hljs-subst">{discussion.num}</span> - <span class="hljs-subst">{discussion.title}</span>, pr: <span class="hljs-subst">{discussion.is_pull_request}</span>&quot;</span>)

<span class="hljs-comment"># 11 - Add Flax weights, pr: True</span>
<span class="hljs-comment"># 10 - Update README.md, pr: True</span>
<span class="hljs-comment"># 9 - Training languages in the model card, pr: True</span>
<span class="hljs-comment"># 8 - Update tokenizer_config.json, pr: True</span>
<span class="hljs-comment"># 7 - Slurm training script, pr: False</span>
[...]`,wrap:!1}}),T=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZGlzY3Vzc2lvbnNfbGlzdCUyMCUzRCUyMGxpc3QoZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span>discussions_list = <span class="hljs-built_in">list</span>(get_repo_discussions(repo_id=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>))`,wrap:!1}}),v=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9kaXNjdXNzaW9uX2RldGFpbHMlMEElMEFnZXRfZGlzY3Vzc2lvbl9kZXRhaWxzKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJiaWdzY2llbmNlJTJGYmxvb20tMWIzJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGlzY3Vzc2lvbl9udW0lM0QyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_discussion_details

<span class="hljs-meta">&gt;&gt;&gt; </span>get_discussion_details(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;bigscience/bloom-1b3&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">2</span>
<span class="hljs-meta">... </span>)
DiscussionWithDetails(
    num=<span class="hljs-number">2</span>,
    author=<span class="hljs-string">&#x27;cakiki&#x27;</span>,
    title=<span class="hljs-string">&#x27;Update VRAM memory for the V100s&#x27;</span>,
    status=<span class="hljs-string">&#x27;open&#x27;</span>,
    is_pull_request=<span class="hljs-literal">True</span>,
    events=[
        DiscussionComment(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;comment&#x27;</span>, author=<span class="hljs-string">&#x27;cakiki&#x27;</span>, ...),
        DiscussionCommit(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;commit&#x27;</span>, author=<span class="hljs-string">&#x27;cakiki&#x27;</span>, summary=<span class="hljs-string">&#x27;Update VRAM memory for the V100s&#x27;</span>, oid=<span class="hljs-string">&#x27;1256f9d9a33fa8887e1c1bf0e09b4713da96773a&#x27;</span>, ...),
    ],
    conflicting_files=[],
    target_branch=<span class="hljs-string">&#x27;refs/heads/main&#x27;</span>,
    merge_commit_oid=<span class="hljs-literal">None</span>,
    diff=<span class="hljs-string">&#x27;diff --git a/README.md b/README.md\\nindex a6ae3b9294edf8d0eda0d67c7780a10241242a7e..3a1814f212bc3f0d3cc8f74bdbd316de4ae7b9e3 100644\\n--- a/README.md\\n+++ b/README.md\\n@@ -132,7 +132,7 [...]&#x27;</span>,
)`,wrap:!1}}),U=new E({props:{title:"Create and edit a Discussion or Pull Request programmatically",local:"create-and-edit-a-discussion-or-pull-request-programmatically",headingTag:"h2"}}),Z=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1ldGFkYXRhX3VwZGF0ZSUwQSUwQW1ldGFkYXRhX3VwZGF0ZSglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZyZXBvX25hbWUlMjIlMkMlMEElMjAlMjAlMjAlMjBtZXRhZGF0YSUzRCU3QiUyMnRhZ3MlMjIlM0ElMjAlNUIlMjJjb21wdXRlci12aXNpb24lMjIlMkMlMjAlMjJhd2Vzb21lLW1vZGVsJTIyJTVEJTdEJTJDJTBBJTIwJTIwJTIwJTIwY3JlYXRlX3ByJTNEVHJ1ZSUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> metadata_update

<span class="hljs-meta">&gt;&gt;&gt; </span>metadata_update(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    metadata={<span class="hljs-string">&quot;tags&quot;</span>: [<span class="hljs-string">&quot;computer-vision&quot;</span>, <span class="hljs-string">&quot;awesome-model&quot;</span>]},
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),A=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9kaXNjdXNzaW9uJTJDJTIwY3JlYXRlX3B1bGxfcmVxdWVzdCUwQSUwQWNyZWF0ZV9kaXNjdXNzaW9uKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJ1c2VybmFtZSUyRnJlcG8tbmFtZSUyMiUyQyUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIySGklMjBmcm9tJTIwdGhlJTIwaHVnZ2luZ2ZhY2VfaHViJTIwbGlicmFyeSElMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMiUzQ2luc2VydCUyMHlvdXIlMjBhY2Nlc3MlMjB0b2tlbiUyMGhlcmUlM0UlMjIlMkMlMEEpJTBBJTBBY3JlYXRlX3B1bGxfcmVxdWVzdCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZyZXBvLW5hbWUlMjIlMkMlMEElMjAlMjAlMjAlMjB0aXRsZSUzRCUyMkhpJTIwZnJvbSUyMHRoZSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGxpYnJhcnkhJTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW4lM0QlMjIlM0NpbnNlcnQlMjB5b3VyJTIwYWNjZXNzJTIwdG9rZW4lMjBoZXJlJTNFJTIyJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_discussion, create_pull_request

<span class="hljs-meta">&gt;&gt;&gt; </span>create_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo-name&quot;</span>,
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;Hi from the huggingface_hub library!&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;&lt;insert your access token here&gt;&quot;</span>,
<span class="hljs-meta">... </span>)
DiscussionWithDetails(...)

<span class="hljs-meta">&gt;&gt;&gt; </span>create_pull_request(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo-name&quot;</span>,
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;Hi from the huggingface_hub library!&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;&lt;insert your access token here&gt;&quot;</span>,
<span class="hljs-meta">... </span>)
DiscussionWithDetails(..., is_pull_request=<span class="hljs-literal">True</span>)`,wrap:!1}}),C=new E({props:{title:"Push changes to a Pull Request",local:"push-changes-to-a-pull-request",headingTag:"h2"}}),X=new E({props:{title:"See also",local:"see-also",headingTag:"h2"}}),{c(){d=i("meta"),Y=l(),N=i("p"),z=l(),u(m.$$.fragment),V=l(),_=i("p"),_.innerHTML=je,L=l(),u(b.$$.fragment),S=l(),M=i("p"),M.innerHTML=ye,Q=l(),u(j.$$.fragment),F=l(),y=i("p"),y.innerHTML=Te,K=l(),u(T.$$.fragment),O=l(),w=i("p"),w.innerHTML=we,ee=l(),u(v.$$.fragment),se=l(),J=i("p"),J.innerHTML=ve,ae=l(),k=i("p"),k.innerHTML=Je,te=l(),u(U.$$.fragment),le=l(),$=i("p"),$.innerHTML=ke,ne=l(),q=i("p"),q.innerHTML=Ue,ie=l(),H=i("ul"),H.innerHTML=$e,ce=l(),u(Z.$$.fragment),pe=l(),R=i("p"),R.innerHTML=qe,ue=l(),u(A.$$.fragment),oe=l(),x=i("p"),x.innerHTML=He,re=l(),G=i("ul"),G.innerHTML=Ze,he=l(),D=i("p"),D.innerHTML=Re,ge=l(),u(C.$$.fragment),fe=l(),I=i("p"),I.innerHTML=Ae,de=l(),u(X.$$.fragment),me=l(),P=i("p"),P.innerHTML=xe,_e=l(),B=i("p"),this.h()},l(e){const s=Be("svelte-u9bgzb",document.head);d=c(s,"META",{name:!0,content:!0}),s.forEach(a),Y=n(e),N=c(e,"P",{}),Ge(N).forEach(a),z=n(e),o(m.$$.fragment,e),V=n(e),_=c(e,"P",{"data-svelte-h":!0}),p(_)!=="svelte-1wn47li"&&(_.innerHTML=je),L=n(e),o(b.$$.fragment,e),S=n(e),M=c(e,"P",{"data-svelte-h":!0}),p(M)!=="svelte-6bkla6"&&(M.innerHTML=ye),Q=n(e),o(j.$$.fragment,e),F=n(e),y=c(e,"P",{"data-svelte-h":!0}),p(y)!=="svelte-1t1tqao"&&(y.innerHTML=Te),K=n(e),o(T.$$.fragment,e),O=n(e),w=c(e,"P",{"data-svelte-h":!0}),p(w)!=="svelte-4tatp8"&&(w.innerHTML=we),ee=n(e),o(v.$$.fragment,e),se=n(e),J=c(e,"P",{"data-svelte-h":!0}),p(J)!=="svelte-1qk6l38"&&(J.innerHTML=ve),ae=n(e),k=c(e,"P",{"data-svelte-h":!0}),p(k)!=="svelte-1pbvmum"&&(k.innerHTML=Je),te=n(e),o(U.$$.fragment,e),le=n(e),$=c(e,"P",{"data-svelte-h":!0}),p($)!=="svelte-1305i4l"&&($.innerHTML=ke),ne=n(e),q=c(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-10r4i28"&&(q.innerHTML=Ue),ie=n(e),H=c(e,"UL",{"data-svelte-h":!0}),p(H)!=="svelte-9x917h"&&(H.innerHTML=$e),ce=n(e),o(Z.$$.fragment,e),pe=n(e),R=c(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-1mktu2d"&&(R.innerHTML=qe),ue=n(e),o(A.$$.fragment,e),oe=n(e),x=c(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-16avjz1"&&(x.innerHTML=He),re=n(e),G=c(e,"UL",{"data-svelte-h":!0}),p(G)!=="svelte-qz48yx"&&(G.innerHTML=Ze),he=n(e),D=c(e,"P",{"data-svelte-h":!0}),p(D)!=="svelte-tthqiw"&&(D.innerHTML=Re),ge=n(e),o(C.$$.fragment,e),fe=n(e),I=c(e,"P",{"data-svelte-h":!0}),p(I)!=="svelte-1j277qo"&&(I.innerHTML=Ae),de=n(e),o(X.$$.fragment,e),me=n(e),P=c(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-19t3fo7"&&(P.innerHTML=xe),_e=n(e),B=c(e,"P",{}),Ge(B).forEach(a),this.h()},h(){De(d,"name","hf:doc:metadata"),De(d,"content",ze)},m(e,s){Ee(document.head,d),t(e,Y,s),t(e,N,s),t(e,z,s),r(m,e,s),t(e,V,s),t(e,_,s),t(e,L,s),r(b,e,s),t(e,S,s),t(e,M,s),t(e,Q,s),r(j,e,s),t(e,F,s),t(e,y,s),t(e,K,s),r(T,e,s),t(e,O,s),t(e,w,s),t(e,ee,s),r(v,e,s),t(e,se,s),t(e,J,s),t(e,ae,s),t(e,k,s),t(e,te,s),r(U,e,s),t(e,le,s),t(e,$,s),t(e,ne,s),t(e,q,s),t(e,ie,s),t(e,H,s),t(e,ce,s),r(Z,e,s),t(e,pe,s),t(e,R,s),t(e,ue,s),r(A,e,s),t(e,oe,s),t(e,x,s),t(e,re,s),t(e,G,s),t(e,he,s),t(e,D,s),t(e,ge,s),r(C,e,s),t(e,fe,s),t(e,I,s),t(e,de,s),r(X,e,s),t(e,me,s),t(e,P,s),t(e,_e,s),t(e,B,s),be=!0},p:Ie,i(e){be||(h(m.$$.fragment,e),h(b.$$.fragment,e),h(j.$$.fragment,e),h(T.$$.fragment,e),h(v.$$.fragment,e),h(U.$$.fragment,e),h(Z.$$.fragment,e),h(A.$$.fragment,e),h(C.$$.fragment,e),h(X.$$.fragment,e),be=!0)},o(e){g(m.$$.fragment,e),g(b.$$.fragment,e),g(j.$$.fragment,e),g(T.$$.fragment,e),g(v.$$.fragment,e),g(U.$$.fragment,e),g(Z.$$.fragment,e),g(A.$$.fragment,e),g(C.$$.fragment,e),g(X.$$.fragment,e),be=!1},d(e){e&&(a(Y),a(N),a(z),a(V),a(_),a(L),a(S),a(M),a(Q),a(F),a(y),a(K),a(O),a(w),a(ee),a(se),a(J),a(ae),a(k),a(te),a(le),a($),a(ne),a(q),a(ie),a(H),a(ce),a(pe),a(R),a(ue),a(oe),a(x),a(re),a(G),a(he),a(D),a(ge),a(fe),a(I),a(de),a(me),a(P),a(_e),a(B)),a(d),f(m,e),f(b,e),f(j,e),f(T,e),f(v,e),f(U,e),f(Z,e),f(A,e),f(C,e),f(X,e)}}}const ze='{"title":"Interact with Discussions and Pull Requests","local":"interact-with-discussions-and-pull-requests","sections":[{"title":"Retrieve Discussions and Pull Requests from the Hub","local":"retrieve-discussions-and-pull-requests-from-the-hub","sections":[],"depth":2},{"title":"Create and edit a Discussion or Pull Request programmatically","local":"create-and-edit-a-discussion-or-pull-request-programmatically","sections":[],"depth":2},{"title":"Push changes to a Pull Request","local":"push-changes-to-a-pull-request","sections":[],"depth":2},{"title":"See also","local":"see-also","sections":[],"depth":2}],"depth":1}';function Ve(Me){return Xe(()=>{new URLSearchParams(window.location.search).get("fw"),window.hfDocGoto=We}),[]}class Ke extends Pe{constructor(d){super(),Ne(this,d,Ve,Ye,Ce,{})}}export{Ke as component};
