import{s as Ls,n as Ps,o as Qs}from"../chunks/scheduler.de5597d1.js";import{S as Ss,i as Ds,e as i,s as a,c as u,h as Fs,a as p,d as l,b as n,f as Ws,g as o,j as c,k as Ys,l as Ks,m as t,n as d,t as m,o as r,p as h}from"../chunks/index.bf1177c2.js";import{C as Os,H as Q,E as se}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.cd8e640f.js";import{C as Y}from"../chunks/CodeBlock.257e0f66.js";function ee(Zs){let M,S,L,D,f,F,j,K,g,Gs=`huggingface_hub 库提供了一个 Python 接口，用于与 Hub 上的拉取请求（Pull Request）和讨论互动。
访问 <a href="https://huggingface.co/docs/hub/repositories-pull-requests-discussions" rel="nofollow">相关的文档页面</a>
，了解有关 Hub 上讨论和拉取请求（Pull Request）的更深入的介绍及其工作原理。`,O,y,ss,b,ks="<code>HfApi</code> 类允许您获取给定仓库中的讨论和拉取请求（Pull Request）：",es,_,ls,T,vs="<code>HfApi.get_repo_discussions</code> 支持按作者、类型（拉取请求或讨论）和状态（<code>open</code> 或 <code>closed</code>）进行过滤：",ts,J,as,U,qs=`<code>HfApi.get_repo_discussions</code> 返回一个 <a href="https://docs.python.org/3.7/howto/functional.html#generators" rel="nofollow">生成器</a> 生成
<code>Discussion</code> 对象。 要获取所有讨论并存储为列表，可以运行：`,ns,$,is,w,Cs="<code>HfApi.get_repo_discussions()</code> 返回的 <code>Discussion</code> 对象提供讨论或拉取请求（Pull Request）的高级概览。您还可以使用 <code>HfApi.get_discussion_details()</code> 获取更详细的信息：",ps,Z,cs,G,Xs="<code>HfApi.get_discussion_details()</code> 返回一个 <code>DiscussionWithDetails</code> 对象，它是 <code>Discussion</code> 的子类，包含有关讨论或拉取请求（Pull Request）的更详细信息。详细信息包括所有评论、状态更改以及讨论的重命名信息，可通过 <code>DiscussionWithDetails.events</code> 获取。",us,k,Hs="如果是拉取请求（Pull Request），您可以通过 <code>DiscussionWithDetails.diff</code> 获取原始的 git diff。拉取请求（Pull Request）的所有提交都列在 <code>DiscussionWithDetails.events</code> 中。",os,v,ds,q,xs=`<code>HfApi</code> 类还提供了创建和编辑讨论及拉取请求（Pull Request）的方法。
您需要一个 <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">访问令牌</a> 来创建和编辑讨论或拉取请求（Pull Request）。`,ms,C,Ns="在 Hub 上对 repo 提出修改建议的最简单方法是使用 <code>create_commit()</code> API：只需将 <code>create_pr</code> 参数设置为 <code>True</code> 。此参数也适用于其他封装了 <code>create_commit()</code> 的方法：",rs,X,Is="<li><code>upload_file()</code></li> <li><code>upload_folder()</code></li> <li><code>delete_file()</code></li> <li><code>delete_folder()</code></li> <li><code>metadata_update()</code></li>",hs,H,Ms,x,Rs="您还可以使用 <code>HfApi.create_discussion()</code>（或 <code>HfApi.create_pull_request()</code>）在仓库上创建讨论（或拉取请求）。以这种方式打开拉取请求在您需要本地处理更改时很有用。以这种方式打开的拉取请求将处于“draft”模式。",fs,N,js,I,zs="您可以使用 <code>HfApi</code> 类来方便地管理拉取请求和讨论。例如：",gs,R,Bs="<li><code>comment_discussion()</code> 添加评论</li> <li><code>edit_discussion_comment()</code> 编辑评论</li> <li><code>rename_discussion()</code> 重命名讨论或拉取请求</li> <li><code>change_discussion_status()</code> 打开或关闭讨论/拉取请求</li> <li><code>merge_pull_request()</code> 合并拉取请求</li>",ys,z,Es="请访问 <code>HfApi</code> 文档页面，获取所有可用方法的完整参考",bs,B,_s,E,As="<em>敬请期待！</em>",Ts,A,Js,V,Vs='有关更详细的参考，请访问 <a href="../package_reference/community">讨论和拉取请求</a> 和 <a href="../package_reference/hf_api">hf_api</a> 文档页面。',Us,W,$s,P,ws;return f=new Os({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),j=new Q({props:{title:"互动讨论与拉取请求（Pull Request）",local:"互动讨论与拉取请求pull-request",headingTag:"h1"}}),y=new Q({props:{title:"从 Hub 获取讨论和拉取请求（Pull Request）",local:"从-hub-获取讨论和拉取请求pull-request",headingTag:"h2"}}),_=new Y({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}}),J=new Y({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}}),$=new Y({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}}),Z=new Y({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}}),v=new Q({props:{title:"以编程方式创建和编辑讨论或拉取请求",local:"以编程方式创建和编辑讨论或拉取请求",headingTag:"h2"}}),H=new Y({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}}),N=new Y({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}}),B=new Q({props:{title:"推送更改到拉取请求（Pull Request）",local:"推送更改到拉取请求pull-request",headingTag:"h2"}}),A=new Q({props:{title:"参见",local:"参见",headingTag:"h2"}}),W=new se({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/cn/guides/community.md"}}),{c(){M=i("meta"),S=a(),L=i("p"),D=a(),u(f.$$.fragment),F=a(),u(j.$$.fragment),K=a(),g=i("p"),g.innerHTML=Gs,O=a(),u(y.$$.fragment),ss=a(),b=i("p"),b.innerHTML=ks,es=a(),u(_.$$.fragment),ls=a(),T=i("p"),T.innerHTML=vs,ts=a(),u(J.$$.fragment),as=a(),U=i("p"),U.innerHTML=qs,ns=a(),u($.$$.fragment),is=a(),w=i("p"),w.innerHTML=Cs,ps=a(),u(Z.$$.fragment),cs=a(),G=i("p"),G.innerHTML=Xs,us=a(),k=i("p"),k.innerHTML=Hs,os=a(),u(v.$$.fragment),ds=a(),q=i("p"),q.innerHTML=xs,ms=a(),C=i("p"),C.innerHTML=Ns,rs=a(),X=i("ul"),X.innerHTML=Is,hs=a(),u(H.$$.fragment),Ms=a(),x=i("p"),x.innerHTML=Rs,fs=a(),u(N.$$.fragment),js=a(),I=i("p"),I.innerHTML=zs,gs=a(),R=i("ul"),R.innerHTML=Bs,ys=a(),z=i("p"),z.innerHTML=Es,bs=a(),u(B.$$.fragment),_s=a(),E=i("p"),E.innerHTML=As,Ts=a(),u(A.$$.fragment),Js=a(),V=i("p"),V.innerHTML=Vs,Us=a(),u(W.$$.fragment),$s=a(),P=i("p"),this.h()},l(s){const e=Fs("svelte-u9bgzb",document.head);M=p(e,"META",{name:!0,content:!0}),e.forEach(l),S=n(s),L=p(s,"P",{}),Ws(L).forEach(l),D=n(s),o(f.$$.fragment,s),F=n(s),o(j.$$.fragment,s),K=n(s),g=p(s,"P",{"data-svelte-h":!0}),c(g)!=="svelte-1k8p0d6"&&(g.innerHTML=Gs),O=n(s),o(y.$$.fragment,s),ss=n(s),b=p(s,"P",{"data-svelte-h":!0}),c(b)!=="svelte-1cfobpj"&&(b.innerHTML=ks),es=n(s),o(_.$$.fragment,s),ls=n(s),T=p(s,"P",{"data-svelte-h":!0}),c(T)!=="svelte-1kt3ote"&&(T.innerHTML=vs),ts=n(s),o(J.$$.fragment,s),as=n(s),U=p(s,"P",{"data-svelte-h":!0}),c(U)!=="svelte-1s38wct"&&(U.innerHTML=qs),ns=n(s),o($.$$.fragment,s),is=n(s),w=p(s,"P",{"data-svelte-h":!0}),c(w)!=="svelte-nwdbi5"&&(w.innerHTML=Cs),ps=n(s),o(Z.$$.fragment,s),cs=n(s),G=p(s,"P",{"data-svelte-h":!0}),c(G)!=="svelte-1eeh46s"&&(G.innerHTML=Xs),us=n(s),k=p(s,"P",{"data-svelte-h":!0}),c(k)!=="svelte-109hv58"&&(k.innerHTML=Hs),os=n(s),o(v.$$.fragment,s),ds=n(s),q=p(s,"P",{"data-svelte-h":!0}),c(q)!=="svelte-ucc6nc"&&(q.innerHTML=xs),ms=n(s),C=p(s,"P",{"data-svelte-h":!0}),c(C)!=="svelte-1tkynsg"&&(C.innerHTML=Ns),rs=n(s),X=p(s,"UL",{"data-svelte-h":!0}),c(X)!=="svelte-138si5a"&&(X.innerHTML=Is),hs=n(s),o(H.$$.fragment,s),Ms=n(s),x=p(s,"P",{"data-svelte-h":!0}),c(x)!=="svelte-81ol7i"&&(x.innerHTML=Rs),fs=n(s),o(N.$$.fragment,s),js=n(s),I=p(s,"P",{"data-svelte-h":!0}),c(I)!=="svelte-1jw80dq"&&(I.innerHTML=zs),gs=n(s),R=p(s,"UL",{"data-svelte-h":!0}),c(R)!=="svelte-19zygd2"&&(R.innerHTML=Bs),ys=n(s),z=p(s,"P",{"data-svelte-h":!0}),c(z)!=="svelte-1oe1ik4"&&(z.innerHTML=Es),bs=n(s),o(B.$$.fragment,s),_s=n(s),E=p(s,"P",{"data-svelte-h":!0}),c(E)!=="svelte-81tdt9"&&(E.innerHTML=As),Ts=n(s),o(A.$$.fragment,s),Js=n(s),V=p(s,"P",{"data-svelte-h":!0}),c(V)!=="svelte-1hsby6n"&&(V.innerHTML=Vs),Us=n(s),o(W.$$.fragment,s),$s=n(s),P=p(s,"P",{}),Ws(P).forEach(l),this.h()},h(){Ys(M,"name","hf:doc:metadata"),Ys(M,"content",le)},m(s,e){Ks(document.head,M),t(s,S,e),t(s,L,e),t(s,D,e),d(f,s,e),t(s,F,e),d(j,s,e),t(s,K,e),t(s,g,e),t(s,O,e),d(y,s,e),t(s,ss,e),t(s,b,e),t(s,es,e),d(_,s,e),t(s,ls,e),t(s,T,e),t(s,ts,e),d(J,s,e),t(s,as,e),t(s,U,e),t(s,ns,e),d($,s,e),t(s,is,e),t(s,w,e),t(s,ps,e),d(Z,s,e),t(s,cs,e),t(s,G,e),t(s,us,e),t(s,k,e),t(s,os,e),d(v,s,e),t(s,ds,e),t(s,q,e),t(s,ms,e),t(s,C,e),t(s,rs,e),t(s,X,e),t(s,hs,e),d(H,s,e),t(s,Ms,e),t(s,x,e),t(s,fs,e),d(N,s,e),t(s,js,e),t(s,I,e),t(s,gs,e),t(s,R,e),t(s,ys,e),t(s,z,e),t(s,bs,e),d(B,s,e),t(s,_s,e),t(s,E,e),t(s,Ts,e),d(A,s,e),t(s,Js,e),t(s,V,e),t(s,Us,e),d(W,s,e),t(s,$s,e),t(s,P,e),ws=!0},p:Ps,i(s){ws||(m(f.$$.fragment,s),m(j.$$.fragment,s),m(y.$$.fragment,s),m(_.$$.fragment,s),m(J.$$.fragment,s),m($.$$.fragment,s),m(Z.$$.fragment,s),m(v.$$.fragment,s),m(H.$$.fragment,s),m(N.$$.fragment,s),m(B.$$.fragment,s),m(A.$$.fragment,s),m(W.$$.fragment,s),ws=!0)},o(s){r(f.$$.fragment,s),r(j.$$.fragment,s),r(y.$$.fragment,s),r(_.$$.fragment,s),r(J.$$.fragment,s),r($.$$.fragment,s),r(Z.$$.fragment,s),r(v.$$.fragment,s),r(H.$$.fragment,s),r(N.$$.fragment,s),r(B.$$.fragment,s),r(A.$$.fragment,s),r(W.$$.fragment,s),ws=!1},d(s){s&&(l(S),l(L),l(D),l(F),l(K),l(g),l(O),l(ss),l(b),l(es),l(ls),l(T),l(ts),l(as),l(U),l(ns),l(is),l(w),l(ps),l(cs),l(G),l(us),l(k),l(os),l(ds),l(q),l(ms),l(C),l(rs),l(X),l(hs),l(Ms),l(x),l(fs),l(js),l(I),l(gs),l(R),l(ys),l(z),l(bs),l(_s),l(E),l(Ts),l(Js),l(V),l(Us),l($s),l(P)),l(M),h(f,s),h(j,s),h(y,s),h(_,s),h(J,s),h($,s),h(Z,s),h(v,s),h(H,s),h(N,s),h(B,s),h(A,s),h(W,s)}}}const le='{"title":"互动讨论与拉取请求（Pull Request）","local":"互动讨论与拉取请求pull-request","sections":[{"title":"从 Hub 获取讨论和拉取请求（Pull Request）","local":"从-hub-获取讨论和拉取请求pull-request","sections":[],"depth":2},{"title":"以编程方式创建和编辑讨论或拉取请求","local":"以编程方式创建和编辑讨论或拉取请求","sections":[],"depth":2},{"title":"推送更改到拉取请求（Pull Request）","local":"推送更改到拉取请求pull-request","sections":[],"depth":2},{"title":"参见","local":"参见","sections":[],"depth":2}],"depth":1}';function te(Zs){return Qs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ce extends Ss{constructor(M){super(),Ds(this,M,te,ee,Ls,{})}}export{ce as component};
