{"id":482146,"date":"2026-06-02T17:31:10","date_gmt":"2026-06-02T17:31:10","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482146"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482146","title":{"rendered":"Chrome-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f GitLab: \u043e\u0442 rebase \u0434\u043e cherry-pick"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0441 GitLab \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0448\u044c \u043a\u0443\u0447\u0443 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c UI \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442. \u041a\u0430\u0436\u0434\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 \u044d\u0442\u043e 3-5 \u043a\u043b\u0438\u043a\u043e\u0432 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0438 \u044f \u0437\u0430\u043f\u0438\u043b\u0438\u043b Chrome-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043e\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0430\u0442\u044c.<\/p>\n<h3>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0435\u0437 \u0442\u043e\u043a\u0435\u043d\u043e\u0432<\/h3>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0442\u0430\u043b \u2014 \u043a\u0430\u043a \u0445\u043e\u0434\u0438\u0442\u044c \u0432 GitLab API. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c: \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c Personal Access Token, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 storage \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f. \u041d\u043e \u044d\u0442\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e (\u043b\u0438\u0448\u043d\u0438\u0439 \u0448\u0430\u0433 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435) \u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e (\u0442\u043e\u043a\u0435\u043d \u0441 \u0448\u0438\u0440\u043e\u043a\u0438\u043c scope \u043b\u0435\u0436\u0438\u0442 \u0432 \u0441\u0442\u043e\u0440\u0435, \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0435 \u043e\u0442\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f).<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0449\u0435. Content script \u0438\u043d\u0436\u0435\u043a\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b GitLab \u0438 \u0443 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a session cookies. API-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 <code>credentials: 'same-origin'<\/code> \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d \u0432 GitLab \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0420\u0430\u0437\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0441\u044f \u2014 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e.<\/p>\n<p>\u0414\u043b\u044f Jira \u0447\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0445\u0435\u043c\u0430. Content script \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a cookies \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u0435\u043b\u0430\u0435\u0442 background service worker \u0447\u0435\u0440\u0435\u0437 <code>chrome.cookies.getAll()<\/code>. \u0414\u043e\u0441\u0442\u0430\u0435\u0442 session cookies Jira, \u0434\u0435\u043b\u0430\u0435\u0442 fetch \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d Jira \u0447\u0435\u0440\u0435\u0437 <code>optional_host_permissions<\/code> \u0438 \u0432\u0441\u0435.<\/p>\n<p>\u041d\u0430\u0440\u0443\u0436\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u0445\u043e\u0434\u0438\u0442. \u0412\u0441\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<\/p>\n<h3>\u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 background worker<\/h3>\n<p>\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0438\u043f\u0430 rebase \u0438\u043b\u0438 retry failed jobs \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d API-\u0432\u044b\u0437\u043e\u0432 \u0438\u0437 content script. \u041d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u00abShip\u00bb \u2014 \u044d\u0442\u043e: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c rebase, \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f, \u0441\u0434\u0435\u043b\u0430\u0442\u044c bump \u0432\u0435\u0440\u0441\u0438\u0438 (\u043d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b, \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0442\u044c, \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c), \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c auto-merge.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0439\u0434\u0435\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, content script \u0443\u043c\u0440\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 background service worker. \u041e\u043d \u0436\u0438\u0432\u0435\u0442 \u043f\u043e\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u043a\u043b\u0430\u0434\u043e\u043a.<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>chrome.tabs.sendMessage<\/code> \u043d\u0430 \u0432\u0441\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 GitLab. \u041d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u043d\u0438\u0437\u0443 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u0438 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043e\u0442\u043c\u0435\u043d\u044b. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u044b \u0443\u0448\u0435\u043b \u0441 MR \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u043d\u043e\u043f\u043a\u0438: Rebase, Bump \u0432\u0435\u0440\u0441\u0438\u0438 (patch\/minor\/major, \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f), Auto-merge, Ship, Force merge, Retry failed, \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0412\u0441\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f drag&amp;drop\u2019\u043e\u043c. \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/ce7\/f5f\/558\/ce7f5f5587e9b1a8490a101691964cba.png\" alt=\"\u041a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/ce7\/f5f\/558\/ce7f5f5587e9b1a8490a101691964cba.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/ce7\/f5f\/558\/ce7f5f5587e9b1a8490a101691964cba.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR<\/figcaption><\/div>\n<\/figure>\n<h3>\u0411\u043e\u0440\u044c\u0431\u0430 \u0441 DOM GitLab<\/h3>\n<p>\u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u0431\u043e\u043b\u044c. GitLab \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043d\u0430 Vue, \u0438 \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 17.6 \u0438 17.11 DOM \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u0421\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a, \u043b\u043e\u043c\u0430\u043b\u0438\u0441\u044c \u0432 \u0441\u0440\u0435\u0434\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0432\u0441\u0435 CSS-\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u043b\u043b\u0431\u0435\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 <code>data-testid<\/code> (\u043f\u043e\u043b\u0443\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 API GitLab), \u043f\u043e\u0442\u043e\u043c \u043b\u0435\u0433\u0430\u0441\u0438 \u043a\u043b\u0430\u0441\u0441\u044b. \u041a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u2014 \u043f\u0440\u0430\u0432\u0438\u0448\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<\/p>\n<p>\u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0442\u0430\u0439\u043c\u0438\u043d\u0433. Vue \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a MR \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e, \u0438 \u043a \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f DOM \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439. MutationObserver \u0441 \u043f\u043e\u043b\u0438\u043d\u0433\u043e\u043c \u0438 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430\u043c\u0438 \u2014 \u0435\u0441\u043b\u0438 \u0437\u0430 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 body \u0438 \u0436\u0434\u0435\u043c \u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0439 \u0445\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u0438 DOM \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0444\u0438\u0447\u0438 \u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u0430 MR. \u0420\u0430\u0437 \u0443\u0436 \u044f \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u0436\u0434\u0443 \u0440\u0435\u043d\u0434\u0435\u0440 \u2014 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 GitLab \u043d\u0435\u0442.<\/p>\n<h3>\u0427\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u0430 \u0441\u043f\u0438\u0441\u043e\u043a MR<\/h3>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 MR \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442\u043d\u044b\u043c \u0431\u0435\u0439\u0434\u0436\u043e\u043c S\/M\/L\/XL \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u2014 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e \u043a\u0430\u043a\u043e\u0439 MR \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443. \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0431\u0435\u0439\u0434\u0436 \u041a\u041e\u041d\u0424\u041b\u0418\u041a\u0422\u042b \u0435\u0441\u043b\u0438 \u0432\u0435\u0442\u043a\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0443\u0435\u0442. \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u0435\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u0442\u0440\u0435\u0434\u043e\u0432.<\/p>\n<p>\u0418\u0437 \u0442\u043e\u0433\u043e \u0447\u0442\u043e GitLab \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u0443\u0431\u0440\u0430\u043b: \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u0430\u043f\u043f\u0440\u0443\u0432\u0430. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0435\u0440\u043d\u0443\u0442\u044c. \u0424\u0438\u043b\u044c\u0442\u0440 \u00ab\u0416\u0434\u0435\u0442 \u043c\u043e\u0435\u0433\u043e \u0440\u0435\u0432\u044c\u044e\u00bb \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e MR \u043d\u0430 \u0442\u0432\u043e\u0435\u043c \u0440\u0435\u0432\u044c\u044e. \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439.<\/p>\n<p>API-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0437\u0430 \u044d\u0442\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0434\u0443\u0442 \u0431\u0430\u0442\u0447\u0430\u043c\u0438 \u043f\u043e 5 \u0448\u0442\u0443\u043a \u0438 \u043a\u0435\u0448\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<h3>Jira \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430<\/h3>\n<p>\u041d\u0430 \u0441\u043f\u0438\u0441\u043a\u0435 MR \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0438\u0442 ID \u0442\u0438\u043a\u0435\u0442\u043e\u0432 \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 (\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f) \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0431\u0435\u0439\u0434\u0436\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u2014 \u0437\u0435\u043b\u0435\u043d\u044b\u0439 Done, \u0441\u0438\u043d\u0438\u0439 In Progress, \u0436\u0435\u043b\u0442\u044b\u0439 In Review.<\/p>\n<p>\u041d\u043e \u043a\u0430\u0439\u0444 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u2014 \u043a\u043b\u0438\u043a\u0430\u0435\u0448\u044c \u043d\u0430 \u0431\u0435\u0439\u0434\u0436 \u0438 \u043f\u0440\u044f\u043c\u043e \u0442\u0443\u0442, \u0432 GitLab, \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0434\u0431\u0430\u0440 \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0439 \u043f\u043e \u0442\u0438\u043a\u0435\u0442\u0443. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442, \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c, \u043b\u0435\u0439\u0431\u043b\u044b, \u0441\u043f\u0440\u0438\u043d\u0442, \u044d\u043f\u0438\u043a. \u041c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441, \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f.<\/p>\n<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 Jira-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 background worker (\u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435 \u2014 cookies API). \u041a\u0435\u0448 5 \u043c\u0438\u043d\u0443\u0442. \u041d\u0430 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR \u0431\u0435\u0439\u0434\u0436\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/319\/ed4\/8a5\/319ed48a58095af3a6c905a9470fd497.png\" alt=\"Jira \u043d\u0430 \u0441\u043f\u0438\u0441\u043a\u0435 MR\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/319\/ed4\/8a5\/319ed48a58095af3a6c905a9470fd497.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/319\/ed4\/8a5\/319ed48a58095af3a6c905a9470fd497.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Jira \u043d\u0430 \u0441\u043f\u0438\u0441\u043a\u0435 MR<\/figcaption><\/div>\n<\/figure>\n<h3>Cherry-pick: \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u043c\u0430\u043b\u043e<\/h3>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u0430\u0436\u0434\u044b\u043c SHA \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430 cherry-pick. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u043a\u0430 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0432\u0435\u0442\u043e\u043a, cherry-pick \u0438\u0434\u0435\u0442 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0432 \u043a\u0430\u0436\u0434\u0443\u044e. \u0421\u0442\u0430\u0442\u0443\u0441 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u2014 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0448\u043b\u043e, \u0430 \u0433\u0434\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442.<\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0433\u0434\u0430 cherry-pick \u043f\u0430\u0434\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438? \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044b\u0439 \u043a\u0435\u0439\u0441 \u0435\u0441\u043b\u0438 \u0431\u0430\u043c\u043f\u0438\u0448\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u0435. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043a\u043e\u043c\u043c\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 Commits API, \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u0444\u0430\u0439\u043b \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430. \u0412\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u043b\u043e\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e cherry-pick \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0438 merge request.<\/p>\n<h3>\u0412\u0441\u044f\u043a\u043e\u0435 \u0440\u0430\u0437\u043d\u043e\u0435<\/h3>\n<p><strong>Command Palette.<\/strong> Cmd+K \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 GitLab \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043a\u043e\u043c\u0430\u043d\u0434. \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c MR, \u043f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432. \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u0430\u044f \u2014 \u043d\u0430 MR \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u043a\u0448\u0435\u043d\u044b, \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e.<\/p>\n<p><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0443\u043f\u0430\u0432\u0448\u0438\u0445 \u0434\u0436\u043e\u0431\u043e\u0432.<\/strong> \u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u0430\u0434\u0430\u0435\u0442, \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0434\u043e \u0438\u0434\u0442\u0438 \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u043d\u0430\u0439\u0442\u0438 \u0443\u043f\u0430\u0432\u0448\u0438\u0439 \u0434\u0436\u043e\u0431, \u043e\u0442\u043a\u0440\u044b\u0442\u044c, \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u043b\u043e\u0433\u2026 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0443\u043f\u0430\u0432\u0448\u0438\u0445 \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR. ANSI-\u0446\u0432\u0435\u0442\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u044f\u0442\u0441\u044f.<\/p>\n<p><strong>\u041e\u0442\u0447\u0435\u0442 \u043f\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438.<\/strong> \u0421\u0432\u043e\u0434\u043a\u0430 \u0437\u0430 \u0434\u0435\u043d\u044c: MR \u0441\u043e\u0437\u0434\u0430\u043b, \u0437\u0430\u043c\u0435\u0440\u0434\u0436\u0438\u043b, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0430\u043f\u043f\u0440\u0443\u0432\u044b. \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 GitLab API. \u0414\u043b\u044f \u0434\u0435\u0439\u043b\u0438 \u2014 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u043b.<\/p>\n<h3>\u0421\u0442\u0435\u043a \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<p>Manifest V3. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 ES5. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u041f\u0440\u043e\u0441\u0442\u043e JS-\u0444\u0430\u0439\u043b\u044b. \u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 7 \u044f\u0437\u044b\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 <code>chrome.i18n<\/code>.<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 <code>chrome.storage.sync<\/code>, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438. \u0415\u0441\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c \u2014 \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0441\u0432\u043e\u0439 flow, \u0441\u043e\u0437\u0434\u0430\u0435\u0448\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e URL. \u0410\u0432\u0442\u043e\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441 debounce 500\u043c\u0441.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/d88\/ae5\/bed\/d88ae5bede51f39e07860395911b0b83.png\" alt=\"Popup \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/d88\/ae5\/bed\/d88ae5bede51f39e07860395911b0b83.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/d88\/ae5\/bed\/d88ae5bede51f39e07860395911b0b83.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Popup \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438<\/figcaption><\/div>\n<\/figure>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>Chrome Web Store: <a href=\"https:\/\/chromewebstore.google.com\/detail\/gitlab-mr-actions-auto-me\/lbploihmpffiihpgeojdlpcclegbdeak\" rel=\"noopener noreferrer nofollow\">GitLab MR Actions<\/a><\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<ul>\n<li>\n<p>Landing: <a href=\"https:\/\/termyanen.github.io\/gitlab-actions\" rel=\"noopener noreferrer nofollow\">termyanen.github.io\/gitlab-actions<\/a><\/p>\n<\/li>\n<li>\n<p>GitHub: <a href=\"https:\/\/github.com\/termyanen\/gitlab-actions\" rel=\"noopener noreferrer nofollow\">github.com\/termyanen\/gitlab-actions<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, open source. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c self-hosted GitLab.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c GitLab \u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0441\u0438\u0442 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0432 issues, \u0434\u043e\u0431\u0430\u0432\u043b\u044e.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1042862\/\">https:\/\/habr.com\/ru\/articles\/1042862\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0441 GitLab \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0448\u044c \u043a\u0443\u0447\u0443 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c UI \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442. \u041a\u0430\u0436\u0434\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 \u044d\u0442\u043e 3-5 \u043a\u043b\u0438\u043a\u043e\u0432 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0438 \u044f \u0437\u0430\u043f\u0438\u043b\u0438\u043b Chrome-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043e\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0430\u0442\u044c.\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0435\u0437 \u0442\u043e\u043a\u0435\u043d\u043e\u0432\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0442\u0430\u043b \u2014 \u043a\u0430\u043a \u0445\u043e\u0434\u0438\u0442\u044c \u0432 GitLab API. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c: \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c Personal Access Token, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 storage \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f. \u041d\u043e \u044d\u0442\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e (\u043b\u0438\u0448\u043d\u0438\u0439 \u0448\u0430\u0433 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435) \u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e (\u0442\u043e\u043a\u0435\u043d \u0441 \u0448\u0438\u0440\u043e\u043a\u0438\u043c scope \u043b\u0435\u0436\u0438\u0442 \u0432 \u0441\u0442\u043e\u0440\u0435, \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0435 \u043e\u0442\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f).\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0449\u0435. Content script \u0438\u043d\u0436\u0435\u043a\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b GitLab \u0438 \u0443 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a session cookies. API-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 credentials: &#8216;same-origin&#8217; \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d \u0432 GitLab \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0420\u0430\u0437\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0441\u044f \u2014 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e.\u0414\u043b\u044f Jira \u0447\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0445\u0435\u043c\u0430. Content script \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a cookies \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u0435\u043b\u0430\u0435\u0442 background service worker \u0447\u0435\u0440\u0435\u0437 chrome.cookies.getAll(). \u0414\u043e\u0441\u0442\u0430\u0435\u0442 session cookies Jira, \u0434\u0435\u043b\u0430\u0435\u0442 fetch \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d Jira \u0447\u0435\u0440\u0435\u0437 optional_host_permissions \u0438 \u0432\u0441\u0435.\u041d\u0430\u0440\u0443\u0436\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u0445\u043e\u0434\u0438\u0442. \u0412\u0441\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.\u0426\u0435\u043f\u043e\u0447\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 background worker\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0438\u043f\u0430 rebase \u0438\u043b\u0438 retry failed jobs \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d API-\u0432\u044b\u0437\u043e\u0432 \u0438\u0437 content script. \u041d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u00abShip\u00bb \u2014 \u044d\u0442\u043e: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c rebase, \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f, \u0441\u0434\u0435\u043b\u0430\u0442\u044c bump \u0432\u0435\u0440\u0441\u0438\u0438 (\u043d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b, \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0442\u044c, \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c), \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c auto-merge.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0439\u0434\u0435\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, content script \u0443\u043c\u0440\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 background service worker. \u041e\u043d \u0436\u0438\u0432\u0435\u0442 \u043f\u043e\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u043a\u043b\u0430\u0434\u043e\u043a.\u041f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 chrome.tabs.sendMessage \u043d\u0430 \u0432\u0441\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 GitLab. \u041d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u043d\u0438\u0437\u0443 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u0438 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043e\u0442\u043c\u0435\u043d\u044b. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u044b \u0443\u0448\u0435\u043b \u0441 MR \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.\u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u043d\u043e\u043f\u043a\u0438: Rebase, Bump \u0432\u0435\u0440\u0441\u0438\u0438 (patch\/minor\/major, \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f), Auto-merge, Ship, Force merge, Retry failed, \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0412\u0441\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f drag&amp;drop\u2019\u043e\u043c. \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b.\u041a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR\u0411\u043e\u0440\u044c\u0431\u0430 \u0441 DOM GitLab\u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u0431\u043e\u043b\u044c. GitLab \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043d\u0430 Vue, \u0438 \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 17.6 \u0438 17.11 DOM \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u0421\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a, \u043b\u043e\u043c\u0430\u043b\u0438\u0441\u044c \u0432 \u0441\u0440\u0435\u0434\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0432\u0441\u0435 CSS-\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u043b\u043b\u0431\u0435\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 data-testid (\u043f\u043e\u043b\u0443\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 API GitLab), \u043f\u043e\u0442\u043e\u043c \u043b\u0435\u0433\u0430\u0441\u0438 \u043a\u043b\u0430\u0441\u0441\u044b. \u041a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u2014 \u043f\u0440\u0430\u0432\u0438\u0448\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.\u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0442\u0430\u0439\u043c\u0438\u043d\u0433. Vue \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a MR \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e, \u0438 \u043a \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f DOM \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439. MutationObserver \u0441 \u043f\u043e\u043b\u0438\u043d\u0433\u043e\u043c \u0438 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430\u043c\u0438 \u2014 \u0435\u0441\u043b\u0438 \u0437\u0430 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 body \u0438 \u0436\u0434\u0435\u043c \u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434.\u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0439 \u0445\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u0438 DOM \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0444\u0438\u0447\u0438 \u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u0430 MR. \u0420\u0430\u0437 \u0443\u0436 \u044f \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u0436\u0434\u0443 \u0440\u0435\u043d\u0434\u0435\u0440 \u2014 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 GitLab \u043d\u0435\u0442.\u0427\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u0430 \u0441\u043f\u0438\u0441\u043e\u043a MR\u0420\u0430\u0437\u043c\u0435\u0440 MR \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442\u043d\u044b\u043c \u0431\u0435\u0439\u0434\u0436\u043e\u043c S\/M\/L\/XL \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u2014 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e \u043a\u0430\u043a\u043e\u0439 MR \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443. \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0431\u0435\u0439\u0434\u0436 \u041a\u041e\u041d\u0424\u041b\u0418\u041a\u0422\u042b \u0435\u0441\u043b\u0438 \u0432\u0435\u0442\u043a\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0443\u0435\u0442. \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u0435\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u0442\u0440\u0435\u0434\u043e\u0432.\u0418\u0437 \u0442\u043e\u0433\u043e \u0447\u0442\u043e GitLab \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u0443\u0431\u0440\u0430\u043b: \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u0430\u043f\u043f\u0440\u0443\u0432\u0430. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0435\u0440\u043d\u0443\u0442\u044c. \u0424\u0438\u043b\u044c\u0442\u0440 \u00ab\u0416\u0434\u0435\u0442 \u043c\u043e\u0435\u0433\u043e \u0440\u0435\u0432\u044c\u044e\u00bb \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e MR \u043d\u0430 \u0442\u0432\u043e\u0435\u043c \u0440\u0435\u0432\u044c\u044e. \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439.API-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0437\u0430 \u044d\u0442\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0434\u0443\u0442 \u0431\u0430\u0442\u0447\u0430\u043c\u0438 \u043f\u043e 5 \u0448\u0442\u0443\u043a \u0438 \u043a\u0435\u0448\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442.Jira \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430\u041d\u0430 \u0441\u043f\u0438\u0441\u043a\u0435 MR \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0438\u0442 ID \u0442\u0438\u043a\u0435\u0442\u043e\u0432 \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 (\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f) \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0431\u0435\u0439\u0434\u0436\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u2014 \u0437\u0435\u043b\u0435\u043d\u044b\u0439 Done, \u0441\u0438\u043d\u0438\u0439 In Progress, \u0436\u0435\u043b\u0442\u044b\u0439 In Review.\u041d\u043e \u043a\u0430\u0439\u0444 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u2014 \u043a\u043b\u0438\u043a\u0430\u0435\u0448\u044c \u043d\u0430 \u0431\u0435\u0439\u0434\u0436 \u0438 \u043f\u0440\u044f\u043c\u043e \u0442\u0443\u0442, \u0432 GitLab, \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0434\u0431\u0430\u0440 \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0439 \u043f\u043e \u0442\u0438\u043a\u0435\u0442\u0443. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442, \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c, \u043b\u0435\u0439\u0431\u043b\u044b, \u0441\u043f\u0440\u0438\u043d\u0442, \u044d\u043f\u0438\u043a. \u041c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441, \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f.\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 Jira-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 background worker (\u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435 \u2014 cookies API). \u041a\u0435\u0448 5 \u043c\u0438\u043d\u0443\u0442. \u041d\u0430 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR \u0431\u0435\u0439\u0434\u0436\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435.Jira \u043d\u0430 \u0441\u043f\u0438\u0441\u043a\u0435 MRCherry-pick: \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u043c\u0430\u043b\u043e\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u0430\u0436\u0434\u044b\u043c SHA \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430 cherry-pick. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u043a\u0430 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0432\u0435\u0442\u043e\u043a, cherry-pick \u0438\u0434\u0435\u0442 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0432 \u043a\u0430\u0436\u0434\u0443\u044e. \u0421\u0442\u0430\u0442\u0443\u0441 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u2014 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0448\u043b\u043e, \u0430 \u0433\u0434\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442.\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0433\u0434\u0430 cherry-pick \u043f\u0430\u0434\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438? \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044b\u0439 \u043a\u0435\u0439\u0441 \u0435\u0441\u043b\u0438 \u0431\u0430\u043c\u043f\u0438\u0448\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u0435. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043a\u043e\u043c\u043c\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 Commits API, \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u0444\u0430\u0439\u043b \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430. \u0412\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u043b\u043e\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e cherry-pick \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0438 merge request.\u0412\u0441\u044f\u043a\u043e\u0435 \u0440\u0430\u0437\u043d\u043e\u0435Command Palette. Cmd+K \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 GitLab \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043a\u043e\u043c\u0430\u043d\u0434. \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c MR, \u043f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432. \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u0430\u044f \u2014 \u043d\u0430 MR \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u043a\u0448\u0435\u043d\u044b, \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e.\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0443\u043f\u0430\u0432\u0448\u0438\u0445 \u0434\u0436\u043e\u0431\u043e\u0432. \u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u0430\u0434\u0430\u0435\u0442, \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0434\u043e \u0438\u0434\u0442\u0438 \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u043d\u0430\u0439\u0442\u0438 \u0443\u043f\u0430\u0432\u0448\u0438\u0439 \u0434\u0436\u043e\u0431, \u043e\u0442\u043a\u0440\u044b\u0442\u044c, \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u043b\u043e\u0433\u2026 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0443\u043f\u0430\u0432\u0448\u0438\u0445 \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 MR. ANSI-\u0446\u0432\u0435\u0442\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u044f\u0442\u0441\u044f.\u041e\u0442\u0447\u0435\u0442 \u043f\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u0421\u0432\u043e\u0434\u043a\u0430 \u0437\u0430 \u0434\u0435\u043d\u044c: MR \u0441\u043e\u0437\u0434\u0430\u043b, \u0437\u0430\u043c\u0435\u0440\u0434\u0436\u0438\u043b, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0430\u043f\u043f\u0440\u0443\u0432\u044b. \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 GitLab API. \u0414\u043b\u044f \u0434\u0435\u0439\u043b\u0438 \u2014 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u043b.\u0421\u0442\u0435\u043a \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044fManifest V3. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 ES5. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u041f\u0440\u043e\u0441\u0442\u043e JS-\u0444\u0430\u0439\u043b\u044b. \u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 7 \u044f\u0437\u044b\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 chrome.i18n.\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 chrome.storage.sync, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438. \u0415\u0441\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c \u2014 \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0441\u0432\u043e\u0439 flow, \u0441\u043e\u0437\u0434\u0430\u0435\u0448\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e URL. \u0410\u0432\u0442\u043e\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441 debounce 500\u043c\u0441.Popup \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430Chrome Web Store: GitLab MR Actions\u0421\u0441\u044b\u043b\u043a\u0438Landing: termyanen.github.io\/gitlab-actionsGitHub: github.com\/termyanen\/gitlab-actions\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, open source. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c self-hosted GitLab.\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c GitLab \u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0441\u0438\u0442 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0432 issues, \u0434\u043e\u0431\u0430\u0432\u043b\u044e.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1042862\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482146","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482146"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482146\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}