import{s as Ws,n as Ys,o as Ls}from"../chunks/scheduler.0cf4ef2e.js";import{S as Ss,i as Qs,e as i,s as l,c as u,h as Fs,a as p,d as a,b as n,f as Ps,g as o,j as c,k as Vs,l as Ks,m as t,n as r,t as h,o as g,p as f}from"../chunks/index.abc433bf.js";import{C as Os}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{C as V}from"../chunks/CodeBlock.00dcd05e.js";import{H as L,E as se}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function ee(ks){let m,S,W,Q,d,F,_,K,M,vs=`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.`,O,b,ss,j,qs="The <code>HfApi</code> class allows you to retrieve Discussions and Pull Requests on a given repo:",es,y,as,T,Hs="<code>HfApi.get_repo_discussions</code> supports filtering by author, type (Pull Request or Discussion) and status (<code>open</code> or <code>closed</code>):",ts,w,ls,J,Zs=`<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/main/en/package_reference/community#huggingface_hub.Discussion">Discussion</a> objects. To get all the Discussions in a single list, run:`,ns,U,is,$,Gs=`The <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.Discussion">Discussion</a> object returned by <a href="/docs/huggingface_hub/main/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/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">HfApi.get_discussion_details()</a>:`,ps,k,cs,v,Cs=`<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">HfApi.get_discussion_details()</a> returns a <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a> object, which is a subclass of <a href="/docs/huggingface_hub/main/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>.`,us,q,Rs=`In case of a Pull Request, you can retrieve the raw git diff with <code>DiscussionWithDetails.diff</code>. All the commits of the
Pull Requests are listed in <code>DiscussionWithDetails.events</code>.`,os,H,rs,Z,As=`The <a href="/docs/huggingface_hub/main/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.`,hs,G,Xs=`The simplest way to propose changes on a repo on the Hub is via the <a href="/docs/huggingface_hub/main/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/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>:`,gs,C,xs='<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_file">delete_file()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_folder">delete_folder()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.metadata_update">metadata_update()</a></li>',fs,R,ms,A,Is=`You can also use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a> (respectively <a href="/docs/huggingface_hub/main/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.`,ds,X,_s,x,Ns='Managing Pull Requests and Discussions can be done entirely with the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class. For example:',Ms,I,zs='<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.comment_discussion">comment_discussion()</a> to add comments</li> <li><a href="/docs/huggingface_hub/main/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/main/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/main/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/main/en/package_reference/hf_api#huggingface_hub.HfApi.merge_pull_request">merge_pull_request()</a> to merge a Pull Request</li>',bs,N,Ds='Visit the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> documentation page for an exhaustive reference of all available methods.',js,z,ys,D,Bs="<em>Coming soon !</em>",Ts,B,ws,E,Es='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.',Js,P,Us,Y,$s;return d=new Os({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),_=new L({props:{title:"Interact with Discussions and Pull Requests",local:"interact-with-discussions-and-pull-requests",headingTag:"h1"}}),b=new L({props:{title:"Retrieve Discussions and Pull Requests from the Hub",local:"retrieve-discussions-and-pull-requests-from-the-hub",headingTag:"h2"}}),y=new V({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZm9yJTIwZGlzY3Vzc2lvbiUyMGluJTIwZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJpZ3NjaWVuY2UlMkZibG9vbSUyMiklM0ElMEElMjAlMjAlMjAlMjBwcmludChmJTIyJTdCZGlzY3Vzc2lvbi5udW0lN0QlMjAtJTIwJTdCZGlzY3Vzc2lvbi50aXRsZSU3RCUyQyUyMHByJTNBJTIwJTdCZGlzY3Vzc2lvbi5pc19wdWxsX3JlcXVlc3QlN0QlMjIpJTBB",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&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}}),w=new V({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZm9yJTIwZGlzY3Vzc2lvbiUyMGluJTIwZ2V0X3JlcG9fZGlzY3Vzc2lvbnMoJTBBJTIwJTIwJTIwcmVwb19pZCUzRCUyMmJpZ3NjaWVuY2UlMkZibG9vbSUyMiUyQyUwQSUyMCUyMCUyMGF1dGhvciUzRCUyMkFydGh1clolMjIlMkMlMEElMjAlMjAlMjBkaXNjdXNzaW9uX3R5cGUlM0QlMjJwdWxsX3JlcXVlc3QlMjIlMkMlMEElMjAlMjAlMjBkaXNjdXNzaW9uX3N0YXR1cyUzRCUyMm9wZW4lMjIlMkMlMEEpJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoZiUyMiU3QmRpc2N1c3Npb24ubnVtJTdEJTIwLSUyMCU3QmRpc2N1c3Npb24udGl0bGUlN0QlMjBieSUyMCU3QmRpc2N1c3Npb24uYXV0aG9yJTdEJTJDJTIwcHIlM0ElMjAlN0JkaXNjdXNzaW9uLmlzX3B1bGxfcmVxdWVzdCU3RCUyMiklMEE=",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(
<span class="hljs-meta">... </span>   repo_id=<span class="hljs-string">&quot;bigscience/bloom&quot;</span>,
<span class="hljs-meta">... </span>   author=<span class="hljs-string">&quot;ArthurZ&quot;</span>,
<span class="hljs-meta">... </span>   discussion_type=<span class="hljs-string">&quot;pull_request&quot;</span>,
<span class="hljs-meta">... </span>   discussion_status=<span class="hljs-string">&quot;open&quot;</span>,
<span class="hljs-meta">... </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> by <span class="hljs-subst">{discussion.author}</span>, pr: <span class="hljs-subst">{discussion.is_pull_request}</span>&quot;</span>)

<span class="hljs-comment"># 19 - Add Flax weights by ArthurZ, pr: True</span>`,wrap:!1}}),U=new V({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}}),k=new V({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}}),H=new L({props:{title:"Create and edit a Discussion or Pull Request programmatically",local:"create-and-edit-a-discussion-or-pull-request-programmatically",headingTag:"h2"}}),R=new V({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}}),X=new V({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}}),z=new L({props:{title:"Push changes to a Pull Request",local:"push-changes-to-a-pull-request",headingTag:"h2"}}),B=new L({props:{title:"See also",local:"see-also",headingTag:"h2"}}),P=new se({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/community.md"}}),{c(){m=i("meta"),S=l(),W=i("p"),Q=l(),u(d.$$.fragment),F=l(),u(_.$$.fragment),K=l(),M=i("p"),M.innerHTML=vs,O=l(),u(b.$$.fragment),ss=l(),j=i("p"),j.innerHTML=qs,es=l(),u(y.$$.fragment),as=l(),T=i("p"),T.innerHTML=Hs,ts=l(),u(w.$$.fragment),ls=l(),J=i("p"),J.innerHTML=Zs,ns=l(),u(U.$$.fragment),is=l(),$=i("p"),$.innerHTML=Gs,ps=l(),u(k.$$.fragment),cs=l(),v=i("p"),v.innerHTML=Cs,us=l(),q=i("p"),q.innerHTML=Rs,os=l(),u(H.$$.fragment),rs=l(),Z=i("p"),Z.innerHTML=As,hs=l(),G=i("p"),G.innerHTML=Xs,gs=l(),C=i("ul"),C.innerHTML=xs,fs=l(),u(R.$$.fragment),ms=l(),A=i("p"),A.innerHTML=Is,ds=l(),u(X.$$.fragment),_s=l(),x=i("p"),x.innerHTML=Ns,Ms=l(),I=i("ul"),I.innerHTML=zs,bs=l(),N=i("p"),N.innerHTML=Ds,js=l(),u(z.$$.fragment),ys=l(),D=i("p"),D.innerHTML=Bs,Ts=l(),u(B.$$.fragment),ws=l(),E=i("p"),E.innerHTML=Es,Js=l(),u(P.$$.fragment),Us=l(),Y=i("p"),this.h()},l(s){const e=Fs("svelte-u9bgzb",document.head);m=p(e,"META",{name:!0,content:!0}),e.forEach(a),S=n(s),W=p(s,"P",{}),Ps(W).forEach(a),Q=n(s),o(d.$$.fragment,s),F=n(s),o(_.$$.fragment,s),K=n(s),M=p(s,"P",{"data-svelte-h":!0}),c(M)!=="svelte-1wn47li"&&(M.innerHTML=vs),O=n(s),o(b.$$.fragment,s),ss=n(s),j=p(s,"P",{"data-svelte-h":!0}),c(j)!=="svelte-6bkla6"&&(j.innerHTML=qs),es=n(s),o(y.$$.fragment,s),as=n(s),T=p(s,"P",{"data-svelte-h":!0}),c(T)!=="svelte-1ehry1x"&&(T.innerHTML=Hs),ts=n(s),o(w.$$.fragment,s),ls=n(s),J=p(s,"P",{"data-svelte-h":!0}),c(J)!=="svelte-xgnyq7"&&(J.innerHTML=Zs),ns=n(s),o(U.$$.fragment,s),is=n(s),$=p(s,"P",{"data-svelte-h":!0}),c($)!=="svelte-1nki2ij"&&($.innerHTML=Gs),ps=n(s),o(k.$$.fragment,s),cs=n(s),v=p(s,"P",{"data-svelte-h":!0}),c(v)!=="svelte-9kvbaj"&&(v.innerHTML=Cs),us=n(s),q=p(s,"P",{"data-svelte-h":!0}),c(q)!=="svelte-1llfnff"&&(q.innerHTML=Rs),os=n(s),o(H.$$.fragment,s),rs=n(s),Z=p(s,"P",{"data-svelte-h":!0}),c(Z)!=="svelte-18dadh4"&&(Z.innerHTML=As),hs=n(s),G=p(s,"P",{"data-svelte-h":!0}),c(G)!=="svelte-1vg9jkc"&&(G.innerHTML=Xs),gs=n(s),C=p(s,"UL",{"data-svelte-h":!0}),c(C)!=="svelte-1naswzm"&&(C.innerHTML=xs),fs=n(s),o(R.$$.fragment,s),ms=n(s),A=p(s,"P",{"data-svelte-h":!0}),c(A)!=="svelte-13pgu7n"&&(A.innerHTML=Is),ds=n(s),o(X.$$.fragment,s),_s=n(s),x=p(s,"P",{"data-svelte-h":!0}),c(x)!=="svelte-mjic2q"&&(x.innerHTML=Ns),Ms=n(s),I=p(s,"UL",{"data-svelte-h":!0}),c(I)!=="svelte-1ncz1sk"&&(I.innerHTML=zs),bs=n(s),N=p(s,"P",{"data-svelte-h":!0}),c(N)!=="svelte-kyitjd"&&(N.innerHTML=Ds),js=n(s),o(z.$$.fragment,s),ys=n(s),D=p(s,"P",{"data-svelte-h":!0}),c(D)!=="svelte-1j277qo"&&(D.innerHTML=Bs),Ts=n(s),o(B.$$.fragment,s),ws=n(s),E=p(s,"P",{"data-svelte-h":!0}),c(E)!=="svelte-19t3fo7"&&(E.innerHTML=Es),Js=n(s),o(P.$$.fragment,s),Us=n(s),Y=p(s,"P",{}),Ps(Y).forEach(a),this.h()},h(){Vs(m,"name","hf:doc:metadata"),Vs(m,"content",ae)},m(s,e){Ks(document.head,m),t(s,S,e),t(s,W,e),t(s,Q,e),r(d,s,e),t(s,F,e),r(_,s,e),t(s,K,e),t(s,M,e),t(s,O,e),r(b,s,e),t(s,ss,e),t(s,j,e),t(s,es,e),r(y,s,e),t(s,as,e),t(s,T,e),t(s,ts,e),r(w,s,e),t(s,ls,e),t(s,J,e),t(s,ns,e),r(U,s,e),t(s,is,e),t(s,$,e),t(s,ps,e),r(k,s,e),t(s,cs,e),t(s,v,e),t(s,us,e),t(s,q,e),t(s,os,e),r(H,s,e),t(s,rs,e),t(s,Z,e),t(s,hs,e),t(s,G,e),t(s,gs,e),t(s,C,e),t(s,fs,e),r(R,s,e),t(s,ms,e),t(s,A,e),t(s,ds,e),r(X,s,e),t(s,_s,e),t(s,x,e),t(s,Ms,e),t(s,I,e),t(s,bs,e),t(s,N,e),t(s,js,e),r(z,s,e),t(s,ys,e),t(s,D,e),t(s,Ts,e),r(B,s,e),t(s,ws,e),t(s,E,e),t(s,Js,e),r(P,s,e),t(s,Us,e),t(s,Y,e),$s=!0},p:Ys,i(s){$s||(h(d.$$.fragment,s),h(_.$$.fragment,s),h(b.$$.fragment,s),h(y.$$.fragment,s),h(w.$$.fragment,s),h(U.$$.fragment,s),h(k.$$.fragment,s),h(H.$$.fragment,s),h(R.$$.fragment,s),h(X.$$.fragment,s),h(z.$$.fragment,s),h(B.$$.fragment,s),h(P.$$.fragment,s),$s=!0)},o(s){g(d.$$.fragment,s),g(_.$$.fragment,s),g(b.$$.fragment,s),g(y.$$.fragment,s),g(w.$$.fragment,s),g(U.$$.fragment,s),g(k.$$.fragment,s),g(H.$$.fragment,s),g(R.$$.fragment,s),g(X.$$.fragment,s),g(z.$$.fragment,s),g(B.$$.fragment,s),g(P.$$.fragment,s),$s=!1},d(s){s&&(a(S),a(W),a(Q),a(F),a(K),a(M),a(O),a(ss),a(j),a(es),a(as),a(T),a(ts),a(ls),a(J),a(ns),a(is),a($),a(ps),a(cs),a(v),a(us),a(q),a(os),a(rs),a(Z),a(hs),a(G),a(gs),a(C),a(fs),a(ms),a(A),a(ds),a(_s),a(x),a(Ms),a(I),a(bs),a(N),a(js),a(ys),a(D),a(Ts),a(ws),a(E),a(Js),a(Us),a(Y)),a(m),f(d,s),f(_,s),f(b,s),f(y,s),f(w,s),f(U,s),f(k,s),f(H,s),f(R,s),f(X,s),f(z,s),f(B,s),f(P,s)}}}const ae='{"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 te(ks){return Ls(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends Ss{constructor(m){super(),Qs(this,m,te,ee,Ws,{})}}export{ue as component};
