{"id":10020776,"date":"2025-04-27T00:45:54","date_gmt":"2025-04-26T16:45:54","guid":{"rendered":"https:\/\/itmax.cn\/?p=10020776"},"modified":"2025-04-27T00:45:54","modified_gmt":"2025-04-26T16:45:54","slug":"%e5%9f%ba%e4%ba%8e-github-api-%e7%9a%84-issue-%e5%92%8c-pr-%e8%87%aa%e5%8a%a8%e5%8c%96%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10020776","title":{"rendered":"\u57fa\u4e8e GitHub API \u7684 Issue \u548c PR \u81ea\u52a8\u5316\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<h2>\u6458\u8981<\/h2>\n<p>\u5728\u5f00\u6e90\u9879\u76ee\u4e2d\uff0cIssue \u548c Pull Request\uff08PR\uff09\u7684\u6570\u91cf\u5e9e\u5927\u4e14\u7ba1\u7406\u590d\u6742\uff0c\u8fd9\u53ef\u80fd\u5bf9\u9879\u76ee\u7684\u8fdb\u5ea6\u548c\u8d28\u91cf\u9020\u6210\u8d1f\u9762\u5f71\u54cd\u3002\u901a\u8fc7\u5f15\u5165\u81ea\u52a8\u5316\u5de5\u5177\u548c\u6807\u51c6\u5316\u6d41\u7a0b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u663e\u8457\u4f18\u5316 Issue \u548c PR \u7684\u7ba1\u7406\u6548\u7387\u3002\u672c\u6587\u5c06\u63a2\u7d22\u5982\u4f55\u901a\u8fc7\u5de5\u5177\uff08\u5982 GitHub Actions\uff09\u548c\u6d41\u7a0b\u6539\u8fdb\u7ba1\u7406 Issue \u548c PR \u7684\u4f18\u5148\u7ea7\u6392\u5e8f\u3001\u81ea\u52a8\u6807\u8bb0\u548c\u5206\u914d\u7b49\u529f\u80fd\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u57fa\u4e8e Python \u548c GitHub API \u7684\u53ef\u8fd0\u884c Demo\u3002<\/p>\n<h2>\u5f15\u8a00<\/h2>\n<p>\u968f\u7740\u5f00\u6e90\u9879\u76ee\u7684\u4e0d\u65ad\u58ee\u5927\uff0c\u8d8a\u6765\u8d8a\u591a\u7684 Issue \u548c Pull Request \u9700\u8981\u7ef4\u62a4\u8005\u7684\u5173\u6ce8\u3002\u7136\u800c\uff0c\u5e9e\u5927\u7684\u6570\u91cf\u4f7f\u5f97\u624b\u52a8\u7ba1\u7406\u6210\u4e3a\u4e00\u9879\u8017\u65f6\u4e14\u5bb9\u6613\u51fa\u9519\u7684\u4efb\u52a1\u3002\u6709\u6548\u7684 Issue \u548c PR \u7ba1\u7406\uff0c\u4e0d\u4ec5\u80fd\u63d0\u9ad8\u534f\u4f5c\u6548\u7387\uff0c\u8fd8\u80fd\u4fc3\u8fdb\u9879\u76ee\u5065\u5eb7\u53d1\u5c55\u3002<\/p>\n<h2>\u4f18\u5316 Issue \u548c PR \u7ba1\u7406\u7684\u65b9\u6cd5<\/h2>\n<h3>\u5de5\u5177\u9009\u62e9<\/h3>\n<p>\u4f18\u5316\u7ba1\u7406\u7684\u7b2c\u4e00\u6b65\u662f\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff1a<\/p>\n<ul>\n<li><strong>GitHub Actions<\/strong>\uff1a\u81ea\u52a8\u5316\u4efb\u52a1\u6267\u884c\uff0c\u53ef\u5b9e\u73b0 Issue \u548c PR \u7684\u81ea\u52a8\u6807\u8bb0\u3001\u5206\u914d\u548c\u5206\u7c7b\u3002<\/li>\n<li><strong>ZenHub \u6216 GitKraken<\/strong>\uff1a\u63d0\u4f9b\u9ad8\u7ea7\u7684\u5de5\u4f5c\u6d41\u548c\u89c6\u56fe\u652f\u6301\u3002<\/li>\n<li><strong>Probot<\/strong>\uff1a\u53ef\u7f16\u5199\u81ea\u5b9a\u4e49 Bot \u6765\u5904\u7406 Issue \u548c PR\u3002<\/li>\n<\/ul>\n<h3>\u6d41\u7a0b\u4f18\u5316<\/h3>\n<ol>\n<li><strong>\u4f18\u5148\u7ea7\u6392\u5e8f<\/strong>\uff1a\u4e3a Issue \u548c PR \u6dfb\u52a0\u4f18\u5148\u7ea7\u6807\u7b7e\uff08\u5982\u00a0<code>P1: High<\/code>\uff0c<code>P2: Medium<\/code>\uff09\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u6309\u91cd\u8981\u6027\u5904\u7406\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5206\u914d<\/strong>\uff1a\u6839\u636e\u6807\u7b7e\u6216\u5173\u952e\u5b57\uff0c\u5c06 Issue \u81ea\u52a8\u5206\u914d\u7ed9\u5bf9\u5e94\u7684\u5f00\u53d1\u8005\u3002<\/li>\n<li><strong>\u72b6\u6001\u81ea\u52a8\u5316<\/strong>\uff1a\u901a\u8fc7\u5de5\u5177\u8bbe\u7f6e\u72b6\u6001\u8f6c\u79fb\uff08\u5982\u00a0<code>open<\/code>\u00a0-&gt;\u00a0<code>in progress<\/code>\u00a0-&gt;\u00a0<code>closed<\/code>\uff09\u3002<\/li>\n<li><strong>\u5206\u7c7b\u7ba1\u7406<\/strong>\uff1a\u4e3a Issue \u81ea\u52a8\u6dfb\u52a0\u5206\u7c7b\u6807\u7b7e\uff08\u5982\u00a0<code>bug<\/code>\uff0c<code>feature request<\/code>\uff0c<code>documentation<\/code>\uff09\u3002<\/li>\n<\/ol>\n<h2>\u81ea\u52a8\u5316 Issue \u548c PR \u7ba1\u7406<\/h2>\n<p>\u4e0b\u9762\u5c06\u5bf9\u4ee3\u7801\u6a21\u5757\u8fdb\u884c\u8be6\u7ec6\u8bb2\u89e3\uff0c\u4ece\u529f\u80fd\u5230\u4ee3\u7801\u903b\u8f91\uff0c\u518d\u5230\u5b9e\u9645\u8fd0\u884c\u540e\u7684\u6548\u679c\u4e00\u4e00\u8bf4\u660e\u3002<\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u4e3b\u8981\u529f\u80fd\u662f\u901a\u8fc7\u8c03\u7528 GitHub API \u6765\u7ba1\u7406\u5f00\u6e90\u9879\u76ee\u4e2d\u7684 Issue \u548c Pull Request\uff0c\u5305\u62ec\u4ee5\u4e0b\u81ea\u52a8\u5316\u7ba1\u7406\u4efb\u52a1\uff1a<\/p>\n<ol>\n<li>\u81ea\u52a8\u83b7\u53d6\u6240\u6709\u6253\u5f00\u7684 Issue\u3002<\/li>\n<li>\u6839\u636e Issue \u7684\u6807\u9898\u5185\u5bb9\u5224\u65ad\u662f\u5426\u7b26\u5408\u6761\u4ef6\uff08\u5982\u5305\u542b\u5173\u952e\u8bcd\u201cbug\u201d\uff09\u3002<\/li>\n<li>\u5411\u7b26\u5408\u6761\u4ef6\u7684 Issue \u6dfb\u52a0\u6807\u7b7e\uff08\u5982\u201cbug\u201d\uff09\u3002<\/li>\n<li>\u5c06\u7b26\u5408\u6761\u4ef6\u7684 Issue \u81ea\u52a8\u5206\u914d\u7ed9\u6307\u5b9a\u5f00\u53d1\u8005\u3002<\/li>\n<\/ol>\n<h2>\u4ee3\u7801\u903b\u8f91\u8be6\u89e3<\/h2>\n<h3>\u83b7\u53d6 Issue \u6570\u636e<\/h3>\n<p>\u4ee3\u7801\u4e2d\u7684 <code>get_issues()<\/code> \u51fd\u6570\u662f\u7528\u6765\u4ece GitHub \u4ed3\u5e93\u4e2d\u62c9\u53d6\u6240\u6709\u7684\u6253\u5f00 Issue \u6570\u636e\u7684\u3002<\/p>\n<pre><code class=\"python\">def get_issues():\n    &quot;&quot;&quot;Fetch all open issues.&quot;&quot;&quot;\n    response = requests.get(f&quot;{API_URL}\/issues&quot;, headers=HEADERS)\n    return response.json()<\/code><\/pre>\n<ul>\n<li><strong>API Endpoint<\/strong>: <code>https:\/\/api.github.com\/repos\/{REPO}\/issues<\/code> \u662f GitHub \u7528\u4e8e\u83b7\u53d6 Issue \u6570\u636e\u7684 RESTful API \u63a5\u53e3\u3002<\/li>\n<li>\n<p><strong>\u8bf7\u6c42\u5934 (Headers)<\/strong>:<\/p>\n<ul>\n<li><code>Authorization<\/code> \u4f7f\u7528\u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c\uff08Personal Access Token\uff09\u6765\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/li>\n<li><code>Accept<\/code> \u6307\u5b9a\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u4e3a JSON\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd4\u56de\u6570\u636e<\/strong>:<\/p>\n<ul>\n<li>\u54cd\u5e94\u7ed3\u679c\u662f\u4e00\u4e2a\u5305\u542b Issue \u6570\u636e\u7684 JSON \u5217\u8868\u3002\u6bcf\u4e2a Issue \u662f\u4e00\u4e2a\u5b57\u5178\uff0c\u5305\u542b <code>title<\/code>\u3001<code>number<\/code>\u3001<code>labels<\/code> \u7b49\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u4e3a Issue \u6dfb\u52a0\u6807\u7b7e<\/h3>\n<p><code>add_label_to_issue()<\/code> \u51fd\u6570\u901a\u8fc7\u8c03\u7528 GitHub API\uff0c\u4e3a\u6307\u5b9a Issue \u6dfb\u52a0\u6807\u7b7e\u3002<\/p>\n<pre><code class=\"python\">def add_label_to_issue(issue_number, label):\n    &quot;&quot;&quot;Add a label to a specific issue.&quot;&quot;&quot;\n    url = f&quot;{API_URL}\/issues\/{issue_number}\/labels&quot;\n    data = {&quot;labels&quot;: [label]}\n    response = requests.post(url, json=data, headers=HEADERS)\n    return response.status_code == 200<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u53c2\u6570\u89e3\u6790<\/strong>:<\/p>\n<ul>\n<li><code>issue_number<\/code>: Issue \u7684\u552f\u4e00\u7f16\u53f7\uff0c\u7528\u4e8e\u5b9a\u4f4d\u5177\u4f53 Issue\u3002<\/li>\n<li><code>label<\/code>: \u8981\u6dfb\u52a0\u7684\u6807\u7b7e\u540d\u79f0\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>API Endpoint<\/strong>: <code>https:\/\/api.github.com\/repos\/{REPO}\/issues\/{issue_number}\/labels<\/code> \u662f GitHub \u63d0\u4f9b\u7684\u63a5\u53e3\uff0c\u7528\u4e8e\u7ba1\u7406 Issue \u7684\u6807\u7b7e\u3002<\/li>\n<li><strong>\u8bf7\u6c42\u6570\u636e (data)<\/strong>: \u63d0\u4f9b\u8981\u6dfb\u52a0\u7684\u6807\u7b7e\u5217\u8868\uff08\u8fd9\u91cc\u4ec5\u5305\u542b\u4e00\u4e2a\u6807\u7b7e\uff0c\u5982 <code>&quot;bug&quot;<\/code>\uff09\u3002<\/li>\n<li><strong>\u8fd4\u56de\u7ed3\u679c<\/strong>: \u6210\u529f\u6dfb\u52a0\u6807\u7b7e\u65f6\uff0cAPI \u8fd4\u56de\u72b6\u6001\u7801 <code>200<\/code>\u3002<\/li>\n<\/ul>\n<h3>\u5c06 Issue \u5206\u914d\u7ed9\u5f00\u53d1\u8005<\/h3>\n<p><code>assign_issue()<\/code> \u51fd\u6570\u7528\u6765\u5c06\u67d0\u4e2a Issue \u5206\u914d\u7ed9\u4e00\u4e2a\u6216\u591a\u4e2a\u5f00\u53d1\u8005\u3002<\/p>\n<pre><code class=\"python\">def assign_issue(issue_number, assignees):\n    &quot;&quot;&quot;Assign an issue to specific developers.&quot;&quot;&quot;\n    url = f&quot;{API_URL}\/issues\/{issue_number}&quot;\n    data = {&quot;assignees&quot;: assignees}\n    response = requests.patch(url, json=data, headers=HEADERS)\n    return response.status_code == 200<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u53c2\u6570\u89e3\u6790<\/strong>:<\/p>\n<ul>\n<li><code>issue_number<\/code>: Issue \u7684\u7f16\u53f7\u3002<\/li>\n<li><code>assignees<\/code>: \u4e00\u4e2a\u5217\u8868\uff0c\u5305\u542b\u5f00\u53d1\u8005\u7684 GitHub \u7528\u6237\u540d\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>API Endpoint<\/strong>: <code>https:\/\/api.github.com\/repos\/{REPO}\/issues\/{issue_number}<\/code> \u662f\u7528\u4e8e\u66f4\u65b0 Issue \u4fe1\u606f\u7684\u63a5\u53e3\u3002<\/li>\n<li><strong>\u8bf7\u6c42\u6570\u636e (data)<\/strong>: \u63d0\u4f9b\u9700\u8981\u5206\u914d\u7684\u5f00\u53d1\u8005\u7528\u6237\u540d\u5217\u8868\u3002<\/li>\n<li><strong>\u8fd4\u56de\u7ed3\u679c<\/strong>: \u6210\u529f\u5206\u914d\u5f00\u53d1\u8005\u65f6\uff0cAPI \u8fd4\u56de\u72b6\u6001\u7801 <code>200<\/code>\u3002<\/li>\n<\/ul>\n<h3>\u4e3b\u903b\u8f91<\/h3>\n<p>\u4e3b\u811a\u672c\u7684\u4f5c\u7528\u662f\u6574\u5408\u4e0a\u8ff0\u529f\u80fd\uff0c\u6279\u91cf\u5904\u7406 Issue\u3002<\/p>\n<pre><code class=\"python\">issues = get_issues()\nfor issue in issues:\n    if &quot;bug&quot; in issue[&quot;title&quot;].lower():\n        add_label_to_issue(issue[&quot;number&quot;], &quot;bug&quot;)\n        assign_issue(issue[&quot;number&quot;], [&quot;developer_username&quot;])\n        print(f&quot;Issue #{issue['number']} labeled as 'bug' and assigned.&quot;)<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u903b\u8f91\u6d41\u7a0b<\/strong>:<\/p>\n<ol>\n<li>\u83b7\u53d6\u6240\u6709\u7684 Issue \u6570\u636e\u3002<\/li>\n<li>\u904d\u5386 Issue \u5217\u8868\uff0c\u9010\u4e00\u68c0\u67e5\u6bcf\u4e2a Issue \u7684\u6807\u9898\uff08<code>title<\/code>\uff09\u3002<\/li>\n<li>\n<p>\u5982\u679c\u6807\u9898\u4e2d\u5305\u542b\u5173\u952e\u8bcd\u201cbug\u201d\uff08\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff09\uff0c\u6267\u884c\u4ee5\u4e0b\u4e24\u6b65\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u8c03\u7528 <code>add_label_to_issue()<\/code>\uff0c\u4e3a\u8be5 Issue \u6dfb\u52a0\u201cbug\u201d\u6807\u7b7e\u3002<\/li>\n<li>\u8c03\u7528 <code>assign_issue()<\/code>\uff0c\u5c06\u8be5 Issue \u5206\u914d\u7ed9\u6307\u5b9a\u5f00\u53d1\u8005\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6253\u5370\u64cd\u4f5c\u7ed3\u679c\uff08Issue \u7f16\u53f7\u3001\u5df2\u6dfb\u52a0\u7684\u6807\u7b7e\u3001\u5df2\u5206\u914d\u7684\u5f00\u53d1\u8005\uff09\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h2>\u5b9e\u9645\u8fd0\u884c\u6548\u679c<\/h2>\n<p>\u5047\u8bbe\u4ed3\u5e93\u4e2d\u6709\u4ee5\u4e0b\u4e09\u4e2a Issue\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>Issue \u7f16\u53f7<\/th>\n<th>\u6807\u9898<\/th>\n<th>\u9884\u671f\u64cd\u4f5c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Fix critical bug in login API<\/td>\n<td>\u6dfb\u52a0\u6807\u7b7e\u201cbug\u201d\uff0c\u5206\u914d\u5f00\u53d1\u8005<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Add feature for user reports<\/td>\n<td>\u65e0\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Resolve bug in payment module<\/td>\n<td>\u6dfb\u52a0\u6807\u7b7e\u201cbug\u201d\uff0c\u5206\u914d\u5f00\u53d1\u8005<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd0\u884c\u811a\u672c\u540e\uff0c\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"txt\">Issue #1 labeled as 'bug' and assigned.\nIssue #3 labeled as 'bug' and assigned.<\/code><\/pre>\n<ul>\n<li>Issue #2 \u4e0d\u542b\u201cbug\u201d\u5173\u952e\u8bcd\uff0c\u672a\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n<li>Issue #1 \u548c #3 \u81ea\u52a8\u6dfb\u52a0\u6807\u7b7e\u201cbug\u201d\u5e76\u5206\u914d\u7ed9\u5f00\u53d1\u8005\u3002<\/li>\n<\/ul>\n<h2>\u8fdb\u4e00\u6b65\u6269\u5c55<\/h2>\n<ul>\n<li><strong>\u4f18\u5148\u7ea7\u6807\u7b7e<\/strong>: \u6839\u636e\u6807\u9898\u6216\u63cf\u8ff0\u5185\u5bb9\u6dfb\u52a0\u4f18\u5148\u7ea7\u6807\u7b7e\uff08\u5982\u201cP1\u201d\uff09\u3002<\/li>\n<li><strong>PR \u81ea\u52a8\u7ba1\u7406<\/strong>: \u589e\u52a0\u5bf9 PR \u7684\u7ba1\u7406\u903b\u8f91\uff0c\u5982\u81ea\u52a8\u8bf7\u6c42 Reviewers\u3002<\/li>\n<li><strong>Webhooks<\/strong>: \u901a\u8fc7 GitHub Webhooks \u5b9e\u73b0\u5b9e\u65f6\u89e6\u53d1\u64cd\u4f5c\uff0c\u8fdb\u4e00\u6b65\u63d0\u9ad8\u81ea\u52a8\u5316\u6c34\u5e73\u3002<\/li>\n<li><strong>\u9519\u8bef\u5904\u7406<\/strong>: \u589e\u52a0\u5bf9 API \u8c03\u7528\u5931\u8d25\u7684\u5904\u7406\u903b\u8f91\uff08\u5982\u8d85\u65f6\u91cd\u8bd5\uff09\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7 GitHub API \u548c Python\uff0c\u81ea\u52a8\u5316\u5f00\u6e90\u9879\u76ee\u4e2d\u7684 Issue \u7ba1\u7406\u3002\u901a\u8fc7\u4f18\u5148\u7ea7\u6807\u8bb0\u3001\u5206\u7c7b\u7ba1\u7406\u548c\u5206\u914d\u4efb\u52a1\u7b49\u529f\u80fd\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u7ba1\u7406\u5f00\u6e90\u9879\u76ee\u4e2d\u7684\u5de5\u4f5c\u6d41\uff0c\u4e3a\u793e\u533a\u7684\u6301\u7eed\u53d1\u5c55\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n<h2>QA \u73af\u8282<\/h2>\n<ol>\n<li>\n<p><strong>\u5982\u4f55\u5904\u7406 API \u8bbf\u95ee\u9650\u5236\uff1f<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 GitHub \u63d0\u4f9b\u7684\u00a0<a href=\"https:\/\/link.segmentfault.com\/?enc=Otnvg7CK09eGpRxxQHAJaQ%3D%3D.Jc4LvxGkr8vuMftPUfTJNc7XKnCtkbAqunL9nDqNsh0TYpi%2Fh7BVSTPIuU8RCeg7\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Rate Limit API<\/a>\u00a0\u76d1\u63a7\u8bf7\u6c42\u914d\u989d\u3002<\/li>\n<li>\u5408\u7406\u5206\u914d\u4efb\u52a1\uff0c\u907f\u514d\u9891\u7e41\u8c03\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u6269\u5c55\u529f\u80fd\uff1f<\/strong><\/p>\n<ul>\n<li>\u662f\u7684\uff0c\u53ef\u589e\u52a0\u529f\u80fd\uff0c\u5982\u6839\u636e PR \u6539\u52a8\u7684\u6587\u4ef6\u81ea\u52a8\u6807\u8bb0 Reviewer\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u901a\u8fc7\u81ea\u52a8\u5316\u5de5\u5177\u548c\u4f18\u5316\u6d41\u7a0b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8 Issue \u548c PR \u7684\u7ba1\u7406\u6548\u7387\u3002\u65e0\u8bba\u662f\u4f18\u5148\u7ea7\u6392\u5e8f\u3001\u5206\u7c7b\u7ba1\u7406\u8fd8\u662f\u81ea\u52a8\u5206\u914d\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u80fd\u5e2e\u52a9\u5f00\u6e90\u9879\u76ee\u66f4\u9ad8\u6548\u5730\u8fd0\u884c\u3002<\/p>\n<p>\u672a\u6765\uff0c\u968f\u7740\u5f00\u6e90\u9879\u76ee\u89c4\u6a21\u7684\u8fdb\u4e00\u6b65\u6269\u5927\uff0cAI \u9a71\u52a8\u7684\u81ea\u52a8\u5316\u5de5\u5177\uff08\u5982\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff09\u53ef\u80fd\u6210\u4e3a Issue \u548c PR \u7ba1\u7406\u7684\u91cd\u8981\u52a9\u529b\u3002<\/p>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ol>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=KOn3oQ%2F0zQkHmadQROygVw%3D%3D.H8LrUwK8LLuwnNoUATPkkTgC43tYjYX1GXyZtBnqtGE%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">GitHub API \u6587\u6863<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=GgPc7Fq6NKaPnsrgw5Z9vA%3D%3D.iERmaMPh2JX1UkxJ7uZqEQF7LOTVGjMb%2Bd16egR2o4tWriqPNciVJrdy8%2FjUGw4b\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">GitHub Actions \u5165\u95e8<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=BTV6SCc5qHqUfGOdTSq0lQ%3D%3D.aZZUFdRxmxv03WatBVUfNbujJTzvXqqMglFPS1trUow%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Probot \u5b98\u65b9\u6587\u6863<\/a><\/li>\n<\/ol>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000046484217\">https:\/\/segmentfault.com\/a\/1190000046484217<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981 \u5728\u5f00\u6e90\u9879\u76ee\u4e2d\uff0cIssue \u548c Pull Request\uff08PR\uff09\u7684\u6570\u91cf\u5e9e\u5927\u4e14\u7ba1\u7406\u590d\u6742\uff0c\u8fd9\u53ef\u80fd\u5bf9\u9879\u76ee\u7684\u8fdb\u5ea6\u548c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10020776","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10020776"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020776\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10020776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10020776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10020776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}