{"id":20406,"date":"2024-11-19T10:16:06","date_gmt":"2024-11-19T02:16:06","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20406\/"},"modified":"2024-11-19T10:16:06","modified_gmt":"2024-11-19T02:16:06","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8gitlab%e4%b8%ad%e7%ae%a1%e7%90%86%e9%a1%b9%e7%9b%ae%e7%9a%84%e5%8d%8f%e8%ae%ae%e5%92%8c%e8%ae%b8%e5%8f%af%e8%af%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20406\/","title":{"rendered":"\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/887\/227\/169785462190431.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u63d2\u56fe\" \/><\/p>\n<p>\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff0c\u9700\u8981\u5177\u4f53\u4ee3\u7801\u793a\u4f8b<\/p>\n<p>\u5f15\u8a00\uff1a<br \/>\u5728\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u5728\u4fdd\u62a4\u77e5\u8bc6\u4ea7\u6743\u548c\u7ba1\u7406\u9879\u76ee\u7684\u6cd5\u5f8b\u65b9\u9762\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002GitLab\u4f5c\u4e3a\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u4ee3\u7801\u7ba1\u7406\u5e73\u53f0\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u7ba1\u7406\u4ee3\u7801\uff0c\u8fd8\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<p>\u4e00\u3001\u4e86\u89e3\u9879\u76ee\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1<br \/>\u5728\u5f00\u59cb\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u4e00\u4e9b\u57fa\u672c\u6982\u5ff5\u3002\u9879\u76ee\u534f\u8bae\u901a\u5e38\u662f\u9879\u76ee\u56e2\u961f\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9075\u5b88\u7684\u4e00\u7ec4\u89c4\u5219\u548c\u7ea6\u5b9a\uff0c\u5b83\u5b9a\u4e49\u4e86\u56e2\u961f\u6210\u5458\u4e4b\u95f4\u7684\u8d23\u4efb\u548c\u6743\u5229\u3002\u800c\u8bb8\u53ef\u8bc1\u5219\u662f\u4e00\u79cd\u6cd5\u5f8b\u6587\u4ef6\uff0c\u6388\u4e88\u4ed6\u4eba\u4f7f\u7528\u9879\u76ee\u7684\u6743\u5229\uff0c\u5e76\u89c4\u5b9a\u4e86\u4f7f\u7528\u8be5\u9879\u76ee\u7684\u6761\u4ef6\u3002\u4e86\u89e3\u8fd9\u4e9b\u6982\u5ff5\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u6b63\u786e\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002<\/p>\n<p>\u4e8c\u3001\u521b\u5efa\u9879\u76ee\u7684\u534f\u8bae\u6587\u4ef6<br \/>\u5728GitLab\u4e2d\u7ba1\u7406\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u7684\u7b2c\u4e00\u6b65\u662f\u521b\u5efa\u76f8\u5e94\u7684\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u5728\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cLICENSE\u201d\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u5b58\u653e\u9879\u76ee\u7684\u8bb8\u53ef\u8bc1\u3002\u5e38\u89c1\u7684\u8bb8\u53ef\u8bc1\u6587\u4ef6\u6709MIT License\u3001Apache License\u7b49\u3002\u4e0b\u9762\u662f\u4e00\u4e2aMIT License\u7684\u793a\u4f8b\uff1a<\/p>\n<pre>MIT License\n\nCopyright (c) [year] [project's author(s)]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u521b\u5efa\u597d\u8bb8\u53ef\u8bc1\u6587\u4ef6\u540e\uff0c\u8fd8\u53ef\u4ee5\u5728\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cCONTRIBUTING.md\u201d\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u63cf\u8ff0\u9879\u76ee\u7684\u8d21\u732e\u65b9\u5f0f\u548c\u89c4\u5219\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684Contributing\u6587\u4ef6\u7684\u793a\u4f8b\uff1a<\/p>\n<pre># Contributing to [project name]\n\nContributing guidelines for [project name].\n\n## How to contribute\n\n1. Fork the project.\n2. Make your changes in a new branch.\n3. Create a pull request.\n\n## Code style\n\nPlease follow the project's code style guidelines.<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e09\u3001\u4f7f\u7528GitLab\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u529f\u80fd<br \/>GitLab\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7279\u6b8a\u7684\u529f\u80fd\uff0c\u5e2e\u52a9\u6211\u4eec\u66f4\u65b9\u4fbf\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u529f\u80fd\u793a\u4f8b\uff1a<\/p>\n<ol>\n<li>\u9009\u62e9\u9879\u76ee\u7684\u8bb8\u53ef\u8bc1<\/li>\n<\/ol>\n<p>\u5728GitLab\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u9879\u76ee\u8bbe\u7f6e\u4e2d\u7684&#8221;License&#8221;\u9009\u9879\u6765\u9009\u62e9\u9879\u76ee\u7684\u8bb8\u53ef\u8bc1\u3002\u6211\u4eec\u53ef\u4ee5\u4eceGitLab\u63d0\u4f9b\u7684\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u8bb8\u53ef\u8bc1\u4e2d\u9009\u62e9\uff0c\u4e5f\u53ef\u4ee5\u5bfc\u5165\u81ea\u5b9a\u4e49\u7684\u8bb8\u53ef\u8bc1\u6587\u4ef6\u3002<\/p>\n<ol>\n<li>\u6dfb\u52a0\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u94fe\u63a5<\/li>\n<\/ol>\n<p>\u6211\u4eec\u53ef\u4ee5\u5728\u9879\u76ee\u7684README\u6587\u4ef6\u4e2d\u6dfb\u52a0\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u7684\u94fe\u63a5\uff0c\u65b9\u4fbf\u5176\u4ed6\u4eba\u67e5\u770b\u3002\u4f8b\u5982\uff0c\u5728README\u6587\u4ef6\u7684\u5e95\u90e8\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre>## License\n\nThis project is licensed under the [MIT License](LICENSE).<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u663e\u793a\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u4fe1\u606f<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u4f7f\u7528GitLab\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u9879\u76ee\u6982\u89c8\u9875\u9762\u4e0a\u65b9\u663e\u793a\u8bb8\u53ef\u8bc1\u7684\u540d\u79f0\u548c\u94fe\u63a5\u3002\u5176\u4ed6\u4eba\u8bbf\u95ee\u9879\u76ee\u9875\u9762\u65f6\u53ef\u4ee5\u5feb\u901f\u4e86\u89e3\u9879\u76ee\u4f7f\u7528\u7684\u8bb8\u53ef\u8bc1\u3002<\/p>\n<p>\u56db\u3001\u9879\u76ee\u7ba1\u7406\u4e2d\u7684\u6700\u4f73\u5b9e\u8df5<br \/>\u9664\u4e86\u4f7f\u7528GitLab\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u529f\u80fd\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff1a<\/p>\n<ol>\n<li>\u5b9a\u671f\u66f4\u65b0\u8bb8\u53ef\u8bc1\u6587\u4ef6<\/li>\n<\/ol>\n<p>\u5728\u9879\u76ee\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u53d8\u66f4\u8bb8\u53ef\u8bc1\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5e94\u8be5\u5b9a\u671f\u68c0\u67e5\u8bb8\u53ef\u8bc1\u6587\u4ef6\uff0c\u786e\u4fdd\u5176\u4e0e\u9879\u76ee\u7684\u5b9e\u9645\u6388\u6743\u4e00\u81f4\u3002<\/p>\n<ol>\n<li>\u6dfb\u52a0\u7248\u6743\u58f0\u660e<\/li>\n<\/ol>\n<p>\u5728\u9879\u76ee\u7684\u6e90\u4ee3\u7801\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u5e94\u8be5\u6dfb\u52a0\u7248\u6743\u58f0\u660e\uff0c\u6307\u660e\u9879\u76ee\u7684\u6240\u6709\u6743\u548c\u8bb8\u53ef\u8bc1\u3002\u8fd9\u6709\u52a9\u4e8e\u4fdd\u62a4\u9879\u76ee\u7684\u77e5\u8bc6\u4ea7\u6743\u3002<\/p>\n<ol>\n<li>\u9075\u5faa\u5408\u9002\u7684\u8bb8\u53ef\u8bc1<\/li>\n<\/ol>\n<p>\u786e\u4fdd\u9009\u62e9\u9002\u5408\u4f60\u9879\u76ee\u7684\u8bb8\u53ef\u8bc1\uff0c\u4ee5\u6ee1\u8db3\u9879\u76ee\u7684\u9700\u6c42\uff0c\u5e76\u9075\u5faa\u5f00\u6e90\u793e\u533a\u7684\u5171\u8bc6\u3002<\/p>\n<p>\u603b\u7ed3\uff1a<br \/>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002\u6211\u4eec\u4e86\u89e3\u4e86\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u7684\u6982\u5ff5\uff0c\u521b\u5efa\u4e86\u8bb8\u53ef\u8bc1\u548cContributing\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528\u4e86GitLab\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u529f\u80fd\u3002\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86\u4e00\u4e9b\u9879\u76ee\u7ba1\u7406\u4e2d\u7684\u6700\u4f73\u5b9e\u8df5\u3002\u901a\u8fc7\u6b63\u786e\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u4fdd\u62a4\u77e5\u8bc6\u4ea7\u6743\uff0c\u7ba1\u7406\u9879\u76ee\u7684\u6cd5\u5f8b\u65b9\u9762\uff0c\u4ee5\u53ca\u4e0e\u4ed6\u4eba\u5408\u4f5c\u5f00\u53d1\u9879\u76ee\u3002<\/p>\n<p>\u6587\u7ae0\u5b57\u6570\uff1a\u7ea61500\u5b57\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff0c\u9700\u8981\u5177\u4f53\u4ee3\u7801\u793a\u4f8b \u5f15\u8a00\uff1a\u5728\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u5728\u4fdd\u62a4\u77e5\u8bc6\u4ea7\u6743\u548c\u7ba1\u7406\u9879\u76ee\u7684\u6cd5\u5f8b\u65b9\u9762\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002GitLab\u4f5c\u4e3a\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u4ee3\u7801\u7ba1\u7406\u5e73\u53f0\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u7ba1\u7406\u4ee3\u7801\uff0c\u8fd8\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728GitLab\u4e2d\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002 \u4e00\u3001\u4e86\u89e3\u9879\u76ee\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u5728\u5f00\u59cb\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u4e00\u4e9b\u57fa\u672c\u6982\u5ff5\u3002\u9879\u76ee\u534f\u8bae\u901a\u5e38\u662f\u9879\u76ee\u56e2\u961f\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9075\u5b88\u7684\u4e00\u7ec4\u89c4\u5219\u548c\u7ea6\u5b9a\uff0c\u5b83\u5b9a\u4e49\u4e86\u56e2\u961f\u6210\u5458\u4e4b\u95f4\u7684\u8d23\u4efb\u548c\u6743\u5229\u3002\u800c\u8bb8\u53ef\u8bc1\u5219\u662f\u4e00\u79cd\u6cd5\u5f8b\u6587\u4ef6\uff0c\u6388\u4e88\u4ed6\u4eba\u4f7f\u7528\u9879\u76ee\u7684\u6743\u5229\uff0c\u5e76\u89c4\u5b9a\u4e86\u4f7f\u7528\u8be5\u9879\u76ee\u7684\u6761\u4ef6\u3002\u4e86\u89e3\u8fd9\u4e9b\u6982\u5ff5\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u6b63\u786e\u5730\u7ba1\u7406\u9879\u76ee\u7684\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u3002 \u4e8c\u3001\u521b\u5efa\u9879\u76ee\u7684\u534f\u8bae\u6587\u4ef6\u5728GitLab\u4e2d\u7ba1\u7406\u534f\u8bae\u548c\u8bb8\u53ef\u8bc1\u7684\u7b2c\u4e00\u6b65\u662f\u521b\u5efa\u76f8\u5e94\u7684\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u5728\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cLICENSE\u201d\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u5b58\u653e\u9879\u76ee\u7684\u8bb8\u53ef\u8bc1\u3002\u5e38\u89c1\u7684\u8bb8\u53ef\u8bc1\u6587\u4ef6\u6709MIT License\u3001Apache License\u7b49\u3002\u4e0b\u9762\u662f\u4e00\u4e2aMIT License\u7684\u793a\u4f8b\uff1a MIT License Copyright (c) [year] [project&#8217;s author(s)] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &#8220;Software&#8221;), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20406","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=20406"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20406\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}