import{s as Ps,n as Vs,o as Ws}from"../chunks/scheduler.6062bdaf.js";import{S as Ys,i as Ls,g as i,s as l,r as u,A as Ss,h as c,f as a,c as n,j as Bs,u as o,x as p,k as Es,y as Qs,a as t,v as r,d as h,t as g,w as m}from"../chunks/index.4bca734e.js";import{C as P}from"../chunks/CodeBlock.fa01571c.js";import{H as Y,E as Fs}from"../chunks/EditOnGithub.74ab2baa.js";function Ks(Us){let f,L,V,S,d,Q,_,ks=`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.`,F,M,K,b,$s="The <code>HfApi</code> class allows you to retrieve Discussions and Pull Requests on a given repo:",O,j,ss,y,vs="<code>HfApi.get_repo_discussions</code> supports filtering by author, type (Pull Request or Discussion) and status (<code>open</code> or <code>closed</code>):",es,T,as,w,qs=`<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:`,ts,J,ls,U,Hs=`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>:`,ns,k,is,$,Zs=`<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>.`,cs,v,Gs=`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>.`,ps,q,us,H,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.`,os,Z,Rs=`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>:`,rs,G,Cs='<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>',hs,A,gs,R,Xs=`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.`,ms,C,fs,X,Is='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:',ds,I,xs='<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>',_s,x,Ns='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.',Ms,N,bs,z,zs="<em>Coming soon !</em>",js,D,ys,B,Ds='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.',Ts,E,ws,W,Js;return d=new Y({props:{title:"Interact with Discussions and Pull Requests",local:"interact-with-discussions-and-pull-requests",headingTag:"h1"}}),M=new Y({props:{title:"Retrieve Discussions and Pull Requests from the Hub",local:"retrieve-discussions-and-pull-requests-from-the-hub",headingTag:"h2"}}),j=new P({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}}),T=new P({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}}),J=new P({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 P({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}}),q=new Y({props:{title:"Create and edit a Discussion or Pull Request programmatically",local:"create-and-edit-a-discussion-or-pull-request-programmatically",headingTag:"h2"}}),A=new P({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}}),C=new P({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}}),N=new Y({props:{title:"Push changes to a Pull Request",local:"push-changes-to-a-pull-request",headingTag:"h2"}}),D=new Y({props:{title:"See also",local:"see-also",headingTag:"h2"}}),E=new Fs({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/community.md"}}),{c(){f=i("meta"),L=l(),V=i("p"),S=l(),u(d.$$.fragment),Q=l(),_=i("p"),_.innerHTML=ks,F=l(),u(M.$$.fragment),K=l(),b=i("p"),b.innerHTML=$s,O=l(),u(j.$$.fragment),ss=l(),y=i("p"),y.innerHTML=vs,es=l(),u(T.$$.fragment),as=l(),w=i("p"),w.innerHTML=qs,ts=l(),u(J.$$.fragment),ls=l(),U=i("p"),U.innerHTML=Hs,ns=l(),u(k.$$.fragment),is=l(),$=i("p"),$.innerHTML=Zs,cs=l(),v=i("p"),v.innerHTML=Gs,ps=l(),u(q.$$.fragment),us=l(),H=i("p"),H.innerHTML=As,os=l(),Z=i("p"),Z.innerHTML=Rs,rs=l(),G=i("ul"),G.innerHTML=Cs,hs=l(),u(A.$$.fragment),gs=l(),R=i("p"),R.innerHTML=Xs,ms=l(),u(C.$$.fragment),fs=l(),X=i("p"),X.innerHTML=Is,ds=l(),I=i("ul"),I.innerHTML=xs,_s=l(),x=i("p"),x.innerHTML=Ns,Ms=l(),u(N.$$.fragment),bs=l(),z=i("p"),z.innerHTML=zs,js=l(),u(D.$$.fragment),ys=l(),B=i("p"),B.innerHTML=Ds,Ts=l(),u(E.$$.fragment),ws=l(),W=i("p"),this.h()},l(s){const e=Ss("svelte-u9bgzb",document.head);f=c(e,"META",{name:!0,content:!0}),e.forEach(a),L=n(s),V=c(s,"P",{}),Bs(V).forEach(a),S=n(s),o(d.$$.fragment,s),Q=n(s),_=c(s,"P",{"data-svelte-h":!0}),p(_)!=="svelte-1wn47li"&&(_.innerHTML=ks),F=n(s),o(M.$$.fragment,s),K=n(s),b=c(s,"P",{"data-svelte-h":!0}),p(b)!=="svelte-6bkla6"&&(b.innerHTML=$s),O=n(s),o(j.$$.fragment,s),ss=n(s),y=c(s,"P",{"data-svelte-h":!0}),p(y)!=="svelte-1ehry1x"&&(y.innerHTML=vs),es=n(s),o(T.$$.fragment,s),as=n(s),w=c(s,"P",{"data-svelte-h":!0}),p(w)!=="svelte-xgnyq7"&&(w.innerHTML=qs),ts=n(s),o(J.$$.fragment,s),ls=n(s),U=c(s,"P",{"data-svelte-h":!0}),p(U)!=="svelte-1nki2ij"&&(U.innerHTML=Hs),ns=n(s),o(k.$$.fragment,s),is=n(s),$=c(s,"P",{"data-svelte-h":!0}),p($)!=="svelte-9kvbaj"&&($.innerHTML=Zs),cs=n(s),v=c(s,"P",{"data-svelte-h":!0}),p(v)!=="svelte-1pbvmum"&&(v.innerHTML=Gs),ps=n(s),o(q.$$.fragment,s),us=n(s),H=c(s,"P",{"data-svelte-h":!0}),p(H)!=="svelte-18dadh4"&&(H.innerHTML=As),os=n(s),Z=c(s,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-1vg9jkc"&&(Z.innerHTML=Rs),rs=n(s),G=c(s,"UL",{"data-svelte-h":!0}),p(G)!=="svelte-1naswzm"&&(G.innerHTML=Cs),hs=n(s),o(A.$$.fragment,s),gs=n(s),R=c(s,"P",{"data-svelte-h":!0}),p(R)!=="svelte-13pgu7n"&&(R.innerHTML=Xs),ms=n(s),o(C.$$.fragment,s),fs=n(s),X=c(s,"P",{"data-svelte-h":!0}),p(X)!=="svelte-mjic2q"&&(X.innerHTML=Is),ds=n(s),I=c(s,"UL",{"data-svelte-h":!0}),p(I)!=="svelte-1ncz1sk"&&(I.innerHTML=xs),_s=n(s),x=c(s,"P",{"data-svelte-h":!0}),p(x)!=="svelte-kyitjd"&&(x.innerHTML=Ns),Ms=n(s),o(N.$$.fragment,s),bs=n(s),z=c(s,"P",{"data-svelte-h":!0}),p(z)!=="svelte-1j277qo"&&(z.innerHTML=zs),js=n(s),o(D.$$.fragment,s),ys=n(s),B=c(s,"P",{"data-svelte-h":!0}),p(B)!=="svelte-19t3fo7"&&(B.innerHTML=Ds),Ts=n(s),o(E.$$.fragment,s),ws=n(s),W=c(s,"P",{}),Bs(W).forEach(a),this.h()},h(){Es(f,"name","hf:doc:metadata"),Es(f,"content",Os)},m(s,e){Qs(document.head,f),t(s,L,e),t(s,V,e),t(s,S,e),r(d,s,e),t(s,Q,e),t(s,_,e),t(s,F,e),r(M,s,e),t(s,K,e),t(s,b,e),t(s,O,e),r(j,s,e),t(s,ss,e),t(s,y,e),t(s,es,e),r(T,s,e),t(s,as,e),t(s,w,e),t(s,ts,e),r(J,s,e),t(s,ls,e),t(s,U,e),t(s,ns,e),r(k,s,e),t(s,is,e),t(s,$,e),t(s,cs,e),t(s,v,e),t(s,ps,e),r(q,s,e),t(s,us,e),t(s,H,e),t(s,os,e),t(s,Z,e),t(s,rs,e),t(s,G,e),t(s,hs,e),r(A,s,e),t(s,gs,e),t(s,R,e),t(s,ms,e),r(C,s,e),t(s,fs,e),t(s,X,e),t(s,ds,e),t(s,I,e),t(s,_s,e),t(s,x,e),t(s,Ms,e),r(N,s,e),t(s,bs,e),t(s,z,e),t(s,js,e),r(D,s,e),t(s,ys,e),t(s,B,e),t(s,Ts,e),r(E,s,e),t(s,ws,e),t(s,W,e),Js=!0},p:Vs,i(s){Js||(h(d.$$.fragment,s),h(M.$$.fragment,s),h(j.$$.fragment,s),h(T.$$.fragment,s),h(J.$$.fragment,s),h(k.$$.fragment,s),h(q.$$.fragment,s),h(A.$$.fragment,s),h(C.$$.fragment,s),h(N.$$.fragment,s),h(D.$$.fragment,s),h(E.$$.fragment,s),Js=!0)},o(s){g(d.$$.fragment,s),g(M.$$.fragment,s),g(j.$$.fragment,s),g(T.$$.fragment,s),g(J.$$.fragment,s),g(k.$$.fragment,s),g(q.$$.fragment,s),g(A.$$.fragment,s),g(C.$$.fragment,s),g(N.$$.fragment,s),g(D.$$.fragment,s),g(E.$$.fragment,s),Js=!1},d(s){s&&(a(L),a(V),a(S),a(Q),a(_),a(F),a(K),a(b),a(O),a(ss),a(y),a(es),a(as),a(w),a(ts),a(ls),a(U),a(ns),a(is),a($),a(cs),a(v),a(ps),a(us),a(H),a(os),a(Z),a(rs),a(G),a(hs),a(gs),a(R),a(ms),a(fs),a(X),a(ds),a(I),a(_s),a(x),a(Ms),a(bs),a(z),a(js),a(ys),a(B),a(Ts),a(ws),a(W)),a(f),m(d,s),m(M,s),m(j,s),m(T,s),m(J,s),m(k,s),m(q,s),m(A,s),m(C,s),m(N,s),m(D,s),m(E,s)}}}const Os='{"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 se(Us){return Ws(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ne extends Ys{constructor(f){super(),Ls(this,f,se,Ks,Ps,{})}}export{ne as component};
