¶¤¶¤GitLab»úеÈËÓÐʲôÓÃ
¶¤¶¤gitlab»úеÈËÊÇÒ»ÖÖ×Ô¶¯»¯¹¤¾ß£¬¿ÉÒÔ½«gitlabµÄ֪ͨÐÅÏ¢ÍÆË͵½¶¤¶¤Èº×éÖУ¬Ê¹ÍŶӳÉÔ±Äܹ»ÊµÊ±ÕÆÎÕÏîÄ¿Ï£ÍûÇéÐκÍbugÐÞ¸´×´Ì¬£¬Ìá¸ßÐ×÷ЧÂʺÍÏîÄ¿ÖÎÀíÄÜÁ¦¡£±¾ÎĽ«ÏÈÈݶ¤¶¤gitlab»úеÈ˵Ä×÷Óü°ÆäʹÓÃÒªÁì¡£
Ò»¡¢»úеÈ˵Ä×÷ÓÃ
ʵʱÍÆËÍGitLab֪ͨÐÅÏ¢
¶¤¶¤GitLab»úеÈË¿ÉÒÔ½«GitLabµÄ֪ͨÐÅϢʵʱÍÆË͵½¶¤¶¤Èº×éÖУ¬°üÀ¨Ê¹ÃüµÄ½¨Éè¡¢¸üС¢¹Ø±ÕÒÔ¼°BugµÄÐÞ¸´×´Ì¬µÈµÈ¡£³ÉÔ±¿ÉÒÔËæʱÉó²éÐÅÏ¢£¬ÊµÊ±ÏàʶÏîÄ¿Ï£ÍûÇéÐΣ¬ÓÐÓÃ×èÖ¹ÁËÐÅÏ¢ÑÓ³Ù»òɥʧµÄÎÊÌâ¡£
ÔöÇ¿ÍŶÓÏàͬÐ×÷ÄÜÁ¦
ͨ¹ý¶¤¶¤GitLab»úеÈË£¬ÍŶӳÉÔ±¿ÉÒÔÔÚ¶¤¶¤Èº×éÖм´Ê±ÌÖÂۺͷÖÏíGitLabµÄÏà¹ØÐÅÏ¢£¬¿ìËÙ¶¨Î»ÎÊÌ⣬Ìá¸ßÏàͬºÍÐ×÷µÄЧÂÊ¡£±ðµÄ£¬»úеÈË»¹Ö§³Ö@³ÉÔ±ºÍ·¢ËÍ̸Â۵ȹ¦Ð§£¬Äܹ»¸üÖ±½ÓºÍÓÐÓõظ濢ÊÂÇéÄ¿µÄ¡£
Ìá¸ßÏîÄ¿ÖÎÀíºÍÔËӪЧÂÊ
ʹÓûúеÈËʵÏÖGitLabÓ붤¶¤µÄ¶Ô½Ó£¬¿ÉÒÔ½«GitLabµÄÊý¾Ý×Ô¶¯Í¬²½µ½¶¤¶¤ÖУ¬Àû±ãÍŶӳÉÔ±ÔÚÒ»¸öƽ̨¾ÙÐÐÖÎÀí£¬×èÖ¹ÁËƵÈÔÇл»ÊÂÇéÇéÐεÄÎÊÌâ¡£±ðµÄ£¬»úеÈË»¹Ö§³ÖÒì³£±¨¾¯ÌáÐѵȹ¦Ð§£¬ÓÐÖúÓÚʵʱ·¢Ã÷ºÍÐÞ¸´ÎÊÌ⣬ÌáÉýÍŶÓÔËӪЧÂÊ¡£
¶þ¡¢»úеÈ˵ÄʹÓÃÒªÁì
×¼±¸ÊÂÇé
Ê×ÏÈ£¬ÐèÒªÔÚGitLabÖн¨ÉèÒ»¸öPersonal Access Token£¬²¢ÊÚȨ»úеÈË»á¼ûGitLabµÄÐÅÏ¢¡£Ïêϸ°ì·¨ÈçÏ£º
£¨1£©µÇ¼GitLab£¬½øÈëÓû§ÉèÖÃ-Access Tokens£»
£¨2£©½¨ÉèPersonal Access Token£¬ÉèÖÃNameºÍExpiry Date£¨Ñ¡ÔñÒ»¸öºÏÊʵÄʱ¼ä£©£¬¹´Ñ¡APIºÍread_userȨÏÞ£»
£¨3£©½«Personal Access Token¸´ÖÆ£¬×¼±¸ÓÃÓÚÉèÖûúеÈË¡£
½¨Éè»úеÈË
½ÓÏÂÀ´£¬ÐèÒªÔÚ¶¤¶¤¿ª·¢Õßƽ̨½¨ÉèÒ»¸öGitLab»úеÈË£¬Ïêϸ°ì·¨ÈçÏ£º
£¨1£©µÇ¼¶¤¶¤¿ª·¢Õßƽ̨£¬½øÈëÖÎÀíºǫ́-Ó¦Óÿª·¢£»
£¨2£©µã»÷×ó²à¡°×Ô½ç˵»úеÈË¡±£¬Ñ¡Ôñ¡°GitLab¡±£»
£¨3£©Ìîд»úеÈËÐÅÏ¢£¬°üÀ¨»úеÈËÃû³Æ¡¢Í·Ïñ¡¢ÐÎò¡¢GitLab url¡¢Personal Access TokenµÈ£»
£¨4£©Ìí¼Ó»úеÈ˵½¶¤¶¤Èº×é¡£
ÉèÖÃGitLabÏîÄ¿
×îºó£¬ÐèÒªÔÚGitLabÏîÄ¿ÖÐÉèÖÃwebhook£¬½«GitLabµÄ֪ͨÐÅÏ¢ÍÆË͵½»úеÈË¡£Ïêϸ°ì·¨ÈçÏ£º
£¨1£©µÇ¼GitLab£¬½øÈëÏîÄ¿ÉèÖÃ-Webhooks£»
£¨2£©µã»÷¡°Add webhook¡±£¬ÌîдPayload URL¡¢Secret Token£¬Ñ¡ÔñÐèÒªµÄÊÂÎñÀàÐÍ£»
£¨3£©µã»÷¡°Test¡±²âÊÔwebhookÊÇ·ñÀֳɣ»
£¨4£©Öظ´ÒÔÉÏ°ì·¨£¬½«ËùÓÐÐèÒªÍÆË͵ÄÏîÄ¿¶¼ÉèÖÃÒ»±é¡£
×ܽ᣺
ͨ¹ý¶Ô¶¤¶¤GitLab»úеÈ˵ÄÏÈÈÝ£¬ÎÒÃÇ¿ÉÒÔ¿´µ½£¬ËüÊÇÒ»ÖÖ¿ÉÒÔ¼ÓËÙÍŶÓÏìÓ¦ËÙÂʺÍÌá¸ßЧÂʵÄ×Ô¶¯»¯¹¤¾ß¡£»úеÈË¿ÉÒÔʵʱ½«GitLabµÄ֪ͨÐÅÏ¢ÍÆË͵½¶¤¶¤ÖУ¬²¢ÇÒÖ§³Ö³ÉÔ±@²Ù×÷ºÍ̸ÂÛ¹¦Ð§µÈ£¬×ÊÖúÍŶӳÉÔ±¿ìËÙ·´Ó¦Ï¢Õù¾öÎÊÌ⣬Ìá¸ßÏàͬºÍÐ×÷µÄЧÂÊ¡£
ÒÔÉϾÍÊǶ¤¶¤GitLab»úеÈËÓÐʲôÓõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡