{"id":173463,"date":"2020-10-26T10:22:42","date_gmt":"2020-10-26T02:22:42","guid":{"rendered":"http:\/\/4563.org\/?p=173463"},"modified":"2020-10-26T10:22:42","modified_gmt":"2020-10-26T02:22:42","slug":"%e4%bd%bf%e7%94%a8-github-%e7%9a%84%e6%b5%81%e9%87%8f%e6%95%b0%e6%8d%ae%e4%b8%ba%e4%bb%93%e5%ba%93%e5%88%9b%e5%bb%ba%e8%ae%bf%e9%97%ae%e6%95%b0%e5%92%8c%e5%85%8b%e9%9a%86%e6%95%b0%e7%9a%84%e5%be%bd","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=173463","title":{"rendered":"\u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3\u5e93\u521b\u5efa\u8bbf\u95ee\u6570\u548c\u514b\u9686\u6570\u7684\u5fbd\u7ae0"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3\u5e93\u521b\u5efa\u8bbf\u95ee\u6570\u548c\u514b\u9686\u6570\u7684\u5fbd\u7ae0               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yiXu <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3\u5e93\u521b\u5efa\u8bbf\u95ee\u6570\u548c\u514b\u9686\u6570\u7684\u5fbd\u7ae0<\/h1>\n<p> <\/p>\n<p>\u6211\u53d1\u73b0 <code>GitHub<\/code> \u4ed3\u5e93\u4e2d\u7684 <code>Insights\/traffic<\/code> \u4e2d\u5305\u542b\u4e86 2 \u5468\u7684\u6d41\u91cf\u6570\u636e\uff0c\u6240\u4ee5\u60f3\u8981\u4f9d\u9760\u8fd9\u4e2a\u6570\u636e\u751f\u6210\u5fbd\u7ae0\u3002<\/p>\n<h2>\u601d\u8def<\/h2>\n<ol>\n<li>\u4f7f\u7528 <code>GitHub action<\/code> \u5b9a\u65f6\u83b7\u53d6\u4ed3\u5e93\u7684\u8be5\u6d41\u91cf\u6570\u636e\u3002\uff08\u9700\u8981\u5177\u6709\u6743\u9650\u7684 token \uff09<\/li>\n<li>\u501f\u52a9 <code>actions-gh-pages<\/code> \u63a8\u9001\u5230\u522b\u7684\u5206\u652f\u4fdd\u5b58\u3002<\/li>\n<li>\u6bcf\u6b21\u4ece\u4e0a\u4e00\u6b65\u5206\u652f\u83b7\u53d6\u6570\u636e\u5e76\u548c\u65b0\u83b7\u53d6\u7684\u6570\u636e\u5408\u5e76\uff0c\u8ba1\u7b97\u5f97\u5230\u7edf\u8ba1\u503c\u3002<\/li>\n<li>\u4f7f\u7528 https:\/\/shields.io\/ \u7684\u670d\u52a1\u4e0b\u8f7d\u5bf9\u5e94\u6570\u636e\u7684\u5fbd\u7ae0\u3002<\/li>\n<li>\u4e0b\u8f7d\u4e0b\u6765\u7684\u5fbd\u7ae0\u88ab\u4fdd\u5b58\u5728\u5206\u652f\u4e2d\uff0c\u53ef\u4ee5\u5728 <code>GitHub<\/code> \u4e2d\u627e\u5230\uff0c\u5e76\u5f15\u7528\u5bf9\u5e94\u7684 <code>raw<\/code> \u94fe\u63a5\u3002<\/li>\n<\/ol>\n<h2>GitHub action \u5b9e\u73b0<\/h2>\n<ul>\n<li>\n<p>Traffic to Badge<\/p>\n<\/li>\n<li>\n<p>traffic2badge &#8211; \u793a\u4f8b\u6a21\u677f\u4ed3\u5e93<\/p>\n<\/li>\n<\/ul>\n<h2>\u989d\u5916\u5185\u5bb9<\/h2>\n<p>\u4e3a\u4e86\u652f\u6301\u591a\u4ed3\u5e93\uff0c\u6211\u8bbe\u7f6e\u4e86 <code>static_list<\/code> \u4f5c\u4e3a\u4ed3\u5e93\u540d\u7684\u8f93\u5165\uff0c\u4e3a\u4e86\u83b7\u53d6\u540d\u4e0b\u6240\u6709\u516c\u5f00\u7684\u975e\u514b\u9686\u7684\u4ed3\u5e93\u7684\u540d\u5b57\uff0c\u6211\u521b\u5efa\u4e86\u4e00\u4e2a GitHub aciton \u5b8c\u6210\u3002<\/p>\n<ul>\n<li>Repo-List-Generator<\/li>\n<\/ul>\n<p><code>Repo-List-Generator<\/code> \u540c\u6837\u88ab\u6211\u7528\u5728 <code>GitHub<\/code> \u540c\u6b65 <code>Gitee<\/code> \u4e2d\uff0c\u89c1\u6a21\u677f\u4ed3\u5e93 hub-mirror \u3002 \u5728\u8fd9\u4e2a\u6a21\u677f\u4ed3\u5e93\u4e2d\uff0c\u53ef\u4ee5\u5b8c\u6210\u5b9a\u65f6\u5730\u540c\u6b65\u6240\u6709 <code>GitHub<\/code> \u4ed3\u5e93\u5230 <code>Gitee<\/code> \u4e2d\u53bb\uff0c\u540c\u6b65\u4e3b\u8981\u7528\u5230\u4e86 hub-mirror-aciton \u3002<\/p>\n<h2>\u6548\u679c<\/h2>\n<p>traffic2badge<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201027_5f97be547b5e8.svg\" alt=\"\u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3\u5e93\u521b\u5efa\u8bbf\u95ee\u6570\u548c\u514b\u9686\u6570\u7684\u5fbd\u7ae0\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201027_5f97be57d3146.svg\" alt=\"\u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3\u5e93\u521b\u5efa\u8bbf\u95ee\u6570\u548c\u514b\u9686\u6570\u7684\u5fbd\u7ae0\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3888289\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yiXu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             [Repo-List-Generator]( https:\/\/github.com\/marketplace\/actions\/repo-list-generator) \u53ef\u4ee5\u88ab\u7528\u5728\u8bb8\u591a\u9700\u8981\u64cd\u4f5c\u6240\u6709\u4ed3\u5e93\u7684 action\uff0c\u907f\u514d\u5bf9\u6bcf\u4e2a\u4ed3\u5e93\u90fd\u8bbe\u7f6e workflow\uff0c\u671f\u5f85\u66f4\u591a\u7684\u5e94\u7528~<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u6211\u7684\u4e24\u4e2a\u4f5c\u54c1\u4e0d\u9519\uff0c\u8bf7\u7ed9\u4e2a star \u652f\u6301\u4e00\u4e0b\uff0c\u611f\u8c22~                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3888290\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muyunyun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3888291\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muyunyun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f7f\u7528\u8d77\u6765\u6709\u70b9\u5c0f\u95ee\u9898, \u63d0\u4e86\u4e2a issue: https:\/\/github.com\/yi-Xu-0100\/traffic-to-badge\/issues\/21                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3888292\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yiXu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @muyunyun \u5df2\u7ecf\u7ed9\u4f60\u56de\u590d\u4e86~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 GitHub \u7684\u6d41\u91cf\u6570\u636e\u4e3a\u4ed3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/173463"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173463"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/173463\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173463"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}