[{"data":1,"prerenderedAt":1565},["ShallowReactive",2],{"/blog/applying-gitlab-labels-automatically":3,"navigation-en-us":779,"banner-en-us":1206,"footer-en-us":1216,"blog-post-authors-en-us-Brian O'Connell":1461,"blog-related-posts-en-us-applying-gitlab-labels-automatically":1477,"blog-promotions-en-us":1501,"next-steps-en-us":1555},{"id":4,"title":5,"authors":6,"body":8,"category":748,"date":749,"description":750,"extension":751,"externalUrl":752,"faq":752,"featured":753,"heroImage":754,"meta":755,"navigation":281,"path":770,"seo":771,"slug":775,"stem":776,"tags":752,"template":777,"updatedDate":752,"__hash__":778},"blogPosts/en-us/blog/applying-gitlab-labels-automatically.md","Applying GitLab Labels Automatically",[7],"Brian O'Connell",{"type":9,"value":10,"toc":741},"minimark",[11,27,36,41,50,59,64,72,76,84,135,150,159,716,720,731,734,737],[12,13,14,15,21,22,26],"p",{},"This is a customer story on how Brian uses ",[16,17,20],"a",{"href":18,"rel":19},"https://docs.gitlab.com/user/project/integrations/webhooks/",[],"GitLab Webhooks","\nto apply ",[23,24,25],"strong",{},"labels"," automatically to his projects' merge requests.",[12,28,29,30,35],{},"This article follows up his previous post, on how ",[16,31,34],{"href":32,"rel":33},"https://about.gitlab.com/blog/using-gitlab-labels/",[],"using GitLab Labels","\nhelps him to direct focus and improve his workflow.",[37,38,40],"h2",{"id":39},"automatic-application-of-gitlab-labels","Automatic application of GitLab Labels",[12,42,43,44,49],{},"In my previous post I described how to use ",[16,45,48],{"href":46,"rel":47},"https://docs.gitlab.com/user/project/labels/",[],"GitLab Labels","\nto easily triage. @shochdoerfer asked me:",[51,52,53],"blockquote",{},[12,54,55],{},[56,57,58],"em",{},"@boc_tothefuture how can @GitLab labels be applied automatically\nfor issues or merge requests?",[60,61,63],"h3",{"id":62},"a-quick-webhook-server","A quick webhook server",[12,65,66,67,71],{},"We use ",[16,68,70],{"href":18,"rel":69},[],"GitLab webhooks"," to automatically apply labels\nto incoming merge requests (MRs). To process the webhooks, we wrote a\nsimple webrick server whose process is supervised by runit and the\nincredibly well-written runit cookbook.",[60,73,75],{"id":74},"adding-labels-automatically","Adding labels automatically",[12,77,78,79,83],{},"Using the Webrick as a base it’s fairly easy to get labels added to your\nMRs when they are opened. When the request comes in to your webrick server,\nlook at the GitLab ",[80,81,82],"code",{},"object_kind"," to see if it's a MR.",[85,86,91],"pre",{"className":87,"code":88,"language":89,"meta":90,"style":90},"language-ruby shiki shiki-themes github-light","def merge_request?(request_body)\n  body['object_kind'] == 'merge_request'\nend\n","ruby","",[80,92,93,110,129],{"__ignoreMap":90},[94,95,98,102,106],"span",{"class":96,"line":97},"line",1,[94,99,101],{"class":100},"sD7c4","def",[94,103,105],{"class":104},"s7eDp"," merge_request?",[94,107,109],{"class":108},"sgsFI","(request_body)\n",[94,111,113,116,120,123,126],{"class":96,"line":112},2,[94,114,115],{"class":108},"  body[",[94,117,119],{"class":118},"sYBdl","'object_kind'",[94,121,122],{"class":108},"] ",[94,124,125],{"class":100},"==",[94,127,128],{"class":118}," 'merge_request'\n",[94,130,132],{"class":96,"line":131},3,[94,133,134],{"class":100},"end\n",[12,136,137,138,141,142,145,146,149],{},"If the code is a merge request, the next step is calculate the labels that\nshould be applied to the MR. In our case that is a ‘Needs Review’ label\nif the MR is just being opened. Then because we use Semver and\nthor-scmversion we just scan all the commit messages for ",[80,139,140],{},"#patch",", ",[80,143,144],{},"#minor","\nand ",[80,147,148],{},"#major"," to apply the appropriate Semver tag to the MR.",[12,151,152,153,158],{},"You will need a valid ",[16,154,157],{"href":155,"rel":156},"https://docs.gitlab.com/api/",[],"GitLab API"," key to modify and or request data about a MR.",[85,160,162],{"className":87,"code":161,"language":89,"meta":90,"style":90},"def update_labels(gitlab_server, api_key, request_body )\n  project_id = request_body['object_attributes']['target_project_id']\n  request_id = ['object_attributes']['id']\n  labels = ['Needs Review'] if request_body['object_attributes']['action']\n  semver_increment = semver_increment(gitlab_server, api_key,request_body )\n  labels += semver_increment if semver_increment\n\n  merge_data = {id: hook_id(hook), project_id: project_id(hook), labels: labels.to_a.sort.join(',')}\n  url = \"#{gitlab_server}/api/v3/projects/#{project_id}/merge_requests/#{request_id}?private_token=#{api_key}\"\n  RestClient::Request.execute(:method => :put, :payload => merge_data, :url => url)\nend\n\ndef semver_increment(gitlab_server, api_key, request_body)\n  from_branch = request_body['object_attributes']['target_branch']\n  to_branch = request_body['object_attributes']['source_branch']\n  project_id = request_body['object_attributes']['target_project_id']\n\n  params = { private_token: api_key, from: from_branch, to: to_branch }\n  url = \"#{gitlab_server}/api/v3/projects/#{project_id}/repository/compare\"\n  changelog = JSON.parse(RestClient::Request.execute(:method => :get, :url => url, :headers => { params: params }))\n  changelog = (changelog['commits'] || []).map { |commit| commit['message'] }\n  return 'Major' if changelog.any? { |msg| msg.include? '#major' }\n  return 'Minor' if changelog.any? { |msg| msg.include? '#minor' }\n  return 'Patch' if changelog.any? { |msg| msg.include? '#patch' }\nend\n",[80,163,164,174,198,217,246,260,276,283,341,376,418,423,428,438,457,476,493,498,527,545,602,635,665,688,711],{"__ignoreMap":90},[94,165,166,168,171],{"class":96,"line":97},[94,167,101],{"class":100},[94,169,170],{"class":104}," update_labels",[94,172,173],{"class":108},"(gitlab_server, api_key, request_body )\n",[94,175,176,180,183,186,189,192,195],{"class":96,"line":112},[94,177,179],{"class":178},"sqxcx","  project_id",[94,181,182],{"class":100}," =",[94,184,185],{"class":108}," request_body[",[94,187,188],{"class":118},"'object_attributes'",[94,190,191],{"class":108},"][",[94,193,194],{"class":118},"'target_project_id'",[94,196,197],{"class":108},"]\n",[94,199,200,203,205,208,210,212,215],{"class":96,"line":131},[94,201,202],{"class":178},"  request_id",[94,204,182],{"class":100},[94,206,207],{"class":108}," [",[94,209,188],{"class":118},[94,211,191],{"class":108},[94,213,214],{"class":118},"'id'",[94,216,197],{"class":108},[94,218,220,223,225,227,230,232,235,237,239,241,244],{"class":96,"line":219},4,[94,221,222],{"class":178},"  labels",[94,224,182],{"class":100},[94,226,207],{"class":108},[94,228,229],{"class":118},"'Needs Review'",[94,231,122],{"class":108},[94,233,234],{"class":100},"if",[94,236,185],{"class":108},[94,238,188],{"class":118},[94,240,191],{"class":108},[94,242,243],{"class":118},"'action'",[94,245,197],{"class":108},[94,247,249,252,254,257],{"class":96,"line":248},5,[94,250,251],{"class":178},"  semver_increment",[94,253,182],{"class":100},[94,255,256],{"class":104}," semver_increment",[94,258,259],{"class":108},"(gitlab_server, api_key,request_body )\n",[94,261,263,265,268,271,273],{"class":96,"line":262},6,[94,264,222],{"class":178},[94,266,267],{"class":100}," +=",[94,269,270],{"class":108}," semver_increment ",[94,272,234],{"class":100},[94,274,275],{"class":108}," semver_increment\n",[94,277,279],{"class":96,"line":278},7,[94,280,282],{"emptyLinePlaceholder":281},true,"\n",[94,284,286,289,291,294,298,301,304,307,310,312,315,318,321,324,327,329,332,335,338],{"class":96,"line":285},8,[94,287,288],{"class":178},"  merge_data",[94,290,182],{"class":100},[94,292,293],{"class":108}," {",[94,295,297],{"class":296},"sYu0t","id:",[94,299,300],{"class":104}," hook_id",[94,302,303],{"class":108},"(hook), ",[94,305,306],{"class":296},"project_id:",[94,308,309],{"class":104}," project_id",[94,311,303],{"class":108},[94,313,314],{"class":296},"labels:",[94,316,317],{"class":108}," labels.",[94,319,320],{"class":104},"to_a",[94,322,323],{"class":108},".",[94,325,326],{"class":104},"sort",[94,328,323],{"class":108},[94,330,331],{"class":104},"join",[94,333,334],{"class":108},"(",[94,336,337],{"class":118},"','",[94,339,340],{"class":108},")}\n",[94,342,344,347,349,352,355,358,361,364,367,370,373],{"class":96,"line":343},9,[94,345,346],{"class":178},"  url",[94,348,182],{"class":100},[94,350,351],{"class":118}," \"",[94,353,354],{"class":118},"#{gitlab_server}",[94,356,357],{"class":118},"/api/v3/projects/",[94,359,360],{"class":118},"#{project_id}",[94,362,363],{"class":118},"/merge_requests/",[94,365,366],{"class":118},"#{request_id}",[94,368,369],{"class":118},"?private_token=",[94,371,372],{"class":118},"#{api_key}",[94,374,375],{"class":118},"\"\n",[94,377,379,382,385,388,390,393,395,398,401,404,406,409,412,415],{"class":96,"line":378},10,[94,380,381],{"class":296},"  RestClient",[94,383,384],{"class":108},"::",[94,386,387],{"class":296},"Request",[94,389,323],{"class":108},[94,391,392],{"class":104},"execute",[94,394,334],{"class":108},[94,396,397],{"class":296},":method",[94,399,400],{"class":108}," => ",[94,402,403],{"class":296},":put",[94,405,141],{"class":108},[94,407,408],{"class":296},":payload",[94,410,411],{"class":108}," => merge_data, ",[94,413,414],{"class":296},":url",[94,416,417],{"class":108}," => url)\n",[94,419,421],{"class":96,"line":420},11,[94,422,134],{"class":100},[94,424,426],{"class":96,"line":425},12,[94,427,282],{"emptyLinePlaceholder":281},[94,429,431,433,435],{"class":96,"line":430},13,[94,432,101],{"class":100},[94,434,256],{"class":104},[94,436,437],{"class":108},"(gitlab_server, api_key, request_body)\n",[94,439,441,444,446,448,450,452,455],{"class":96,"line":440},14,[94,442,443],{"class":178},"  from_branch",[94,445,182],{"class":100},[94,447,185],{"class":108},[94,449,188],{"class":118},[94,451,191],{"class":108},[94,453,454],{"class":118},"'target_branch'",[94,456,197],{"class":108},[94,458,460,463,465,467,469,471,474],{"class":96,"line":459},15,[94,461,462],{"class":178},"  to_branch",[94,464,182],{"class":100},[94,466,185],{"class":108},[94,468,188],{"class":118},[94,470,191],{"class":108},[94,472,473],{"class":118},"'source_branch'",[94,475,197],{"class":108},[94,477,479,481,483,485,487,489,491],{"class":96,"line":478},16,[94,480,179],{"class":178},[94,482,182],{"class":100},[94,484,185],{"class":108},[94,486,188],{"class":118},[94,488,191],{"class":108},[94,490,194],{"class":118},[94,492,197],{"class":108},[94,494,496],{"class":96,"line":495},17,[94,497,282],{"emptyLinePlaceholder":281},[94,499,501,504,506,509,512,515,518,521,524],{"class":96,"line":500},18,[94,502,503],{"class":178},"  params",[94,505,182],{"class":100},[94,507,508],{"class":108}," { ",[94,510,511],{"class":296},"private_token:",[94,513,514],{"class":108}," api_key, ",[94,516,517],{"class":296},"from:",[94,519,520],{"class":108}," from_branch, ",[94,522,523],{"class":296},"to:",[94,525,526],{"class":108}," to_branch }\n",[94,528,530,532,534,536,538,540,542],{"class":96,"line":529},19,[94,531,346],{"class":178},[94,533,182],{"class":100},[94,535,351],{"class":118},[94,537,354],{"class":118},[94,539,357],{"class":118},[94,541,360],{"class":118},[94,543,544],{"class":118},"/repository/compare\"\n",[94,546,548,551,553,556,558,561,563,566,568,570,572,574,576,578,580,583,585,587,590,593,596,599],{"class":96,"line":547},20,[94,549,550],{"class":178},"  changelog",[94,552,182],{"class":100},[94,554,555],{"class":296}," JSON",[94,557,323],{"class":108},[94,559,560],{"class":104},"parse",[94,562,334],{"class":108},[94,564,565],{"class":296},"RestClient",[94,567,384],{"class":108},[94,569,387],{"class":296},[94,571,323],{"class":108},[94,573,392],{"class":104},[94,575,334],{"class":108},[94,577,397],{"class":296},[94,579,400],{"class":108},[94,581,582],{"class":296},":get",[94,584,141],{"class":108},[94,586,414],{"class":296},[94,588,589],{"class":108}," => url, ",[94,591,592],{"class":296},":headers",[94,594,595],{"class":108}," => { ",[94,597,598],{"class":296},"params:",[94,600,601],{"class":108}," params }))\n",[94,603,605,607,609,612,615,617,620,623,626,629,632],{"class":96,"line":604},21,[94,606,550],{"class":178},[94,608,182],{"class":100},[94,610,611],{"class":108}," (changelog[",[94,613,614],{"class":118},"'commits'",[94,616,122],{"class":108},[94,618,619],{"class":100},"||",[94,621,622],{"class":108}," []).",[94,624,625],{"class":104},"map",[94,627,628],{"class":108}," { |commit| commit[",[94,630,631],{"class":118},"'message'",[94,633,634],{"class":108},"] }\n",[94,636,638,641,644,647,650,653,656,659,662],{"class":96,"line":637},22,[94,639,640],{"class":100},"  return",[94,642,643],{"class":118}," 'Major'",[94,645,646],{"class":100}," if",[94,648,649],{"class":108}," changelog.",[94,651,652],{"class":104},"any?",[94,654,655],{"class":108}," { |msg| msg.",[94,657,658],{"class":104},"include?",[94,660,661],{"class":118}," '#major'",[94,663,664],{"class":108}," }\n",[94,666,668,670,673,675,677,679,681,683,686],{"class":96,"line":667},23,[94,669,640],{"class":100},[94,671,672],{"class":118}," 'Minor'",[94,674,646],{"class":100},[94,676,649],{"class":108},[94,678,652],{"class":104},[94,680,655],{"class":108},[94,682,658],{"class":104},[94,684,685],{"class":118}," '#minor'",[94,687,664],{"class":108},[94,689,691,693,696,698,700,702,704,706,709],{"class":96,"line":690},24,[94,692,640],{"class":100},[94,694,695],{"class":118}," 'Patch'",[94,697,646],{"class":100},[94,699,649],{"class":108},[94,701,652],{"class":104},[94,703,655],{"class":108},[94,705,658],{"class":104},[94,707,708],{"class":118}," '#patch'",[94,710,664],{"class":108},[94,712,714],{"class":96,"line":713},25,[94,715,134],{"class":100},[37,717,719],{"id":718},"pro-tips","Pro tips",[12,721,722,723,725,726,728,729,323],{},"You will need to do some extra work to make this work on updates.\nFor updates you will need pull the current labels and merge them\nwhere appropriate. This is necessary to update the labels when a\nsubsequent commit to the MR takes it from a ",[80,724,140],{}," to a ",[80,727,144],{},"\nor ",[80,730,148],{},[12,732,733],{},"You should thread your webrick server so the processing of the updating\nof incoming requests is in an different thread than the accepting of\nwebhooks from GitLab. If you don’t do multi-thread you may run into\nissues where GitLab resends the webhooks because of a timeout. The\ndefault timeout in GitLab is 10 seconds. Simple threading with rubythread and a queue should be sufficient.",[12,735,736],{},"Thanks to my colleague Cameron McAvoy, who added the label processing\nto the original webhook server I wrote.",[738,739,740],"style",{},"html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}",{"title":90,"searchDepth":112,"depth":112,"links":742},[743,747],{"id":39,"depth":112,"text":40,"children":744},[745,746],{"id":62,"depth":131,"text":63},{"id":74,"depth":131,"text":75},{"id":718,"depth":112,"text":719},"company","2016-08-19","Learn how to use GitLab Webhooks to apply labels automatically to MRs.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749672498/Blog/Hero%20Images/applying-gitlab-labels-automatically-cover.jpg",{"excerpt":756},{"type":9,"value":757},[758,765],[12,759,14,760,21,763,26],{},[16,761,20],{"href":18,"rel":762},[],[23,764,25],{},[12,766,29,767,35],{},[16,768,34],{"href":32,"rel":769},[],"/en-us/blog/applying-gitlab-labels-automatically",{"title":5,"description":750,"ogTitle":5,"ogDescription":750,"noIndex":753,"ogImage":754,"ogUrl":772,"ogSiteName":773,"ogType":774,"canonicalUrls":772},"https://about.gitlab.com/blog/applying-gitlab-labels-automatically","https://about.gitlab.com","article","applying-gitlab-labels-automatically","en-us/blog/applying-gitlab-labels-automatically","BlogPost","vvwGg2A1Zz0zHCNZZnrdhsd1LnIPZfCGS-iS4YsoFKQ",{"logo":780,"freeTrial":785,"sales":790,"login":795,"items":800,"search":1126,"minimal":1157,"duo":1176,"switchNav":1185,"pricingDeployment":1196},{"config":781},{"href":782,"dataGaName":783,"dataGaLocation":784},"/","gitlab logo","header",{"text":786,"config":787},"Get free trial",{"href":788,"dataGaName":789,"dataGaLocation":784},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":791,"config":792},"Request a demo",{"href":793,"dataGaName":794,"dataGaLocation":784},"/sales/?contact-topic=request-demo","sales",{"text":796,"config":797},"Sign in",{"href":798,"dataGaName":799,"dataGaLocation":784},"https://gitlab.com/users/sign_in/","sign in",[801,830,930,935,1049,1104],{"text":802,"config":803,"menu":805},"Platform",{"dataNavLevelOne":804},"platform",{"type":806,"columns":807},"cards",[808,814,822],{"title":802,"description":809,"link":810},"The intelligent orchestration platform for DevSecOps",{"text":811,"config":812},"Explore our Platform",{"href":813,"dataGaName":804,"dataGaLocation":784},"/platform/",{"title":815,"description":816,"link":817},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":818,"config":819},"Meet GitLab Duo",{"href":820,"dataGaName":821,"dataGaLocation":784},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":823,"description":824,"link":825},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":826,"config":827},"Learn more",{"href":828,"dataGaName":829,"dataGaLocation":784},"/why-gitlab/","why gitlab",{"text":831,"left":281,"config":832,"menu":834},"Product",{"dataNavLevelOne":833},"solutions",{"type":835,"link":836,"columns":840,"feature":909},"lists",{"text":837,"config":838},"View all Solutions",{"href":839,"dataGaName":833,"dataGaLocation":784},"/solutions/",[841,865,888],{"title":842,"description":843,"link":844,"items":849},"Automation","CI/CD and automation to accelerate deployment",{"config":845},{"icon":846,"href":847,"dataGaName":848,"dataGaLocation":784},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[850,854,857,861],{"text":851,"config":852},"CI/CD",{"href":853,"dataGaLocation":784,"dataGaName":851},"/solutions/continuous-integration/",{"text":815,"config":855},{"href":820,"dataGaLocation":784,"dataGaName":856},"gitlab duo agent platform - product menu",{"text":858,"config":859},"Source Code Management",{"href":860,"dataGaLocation":784,"dataGaName":858},"/solutions/source-code-management/",{"text":862,"config":863},"Automated Software Delivery",{"href":847,"dataGaLocation":784,"dataGaName":864},"Automated software delivery",{"title":866,"description":867,"link":868,"items":873},"Security","Deliver code faster without compromising security",{"config":869},{"href":870,"dataGaName":871,"dataGaLocation":784,"icon":872},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[874,878,883],{"text":875,"config":876},"Application Security Testing",{"href":870,"dataGaName":877,"dataGaLocation":784},"Application security testing",{"text":879,"config":880},"Software Supply Chain Security",{"href":881,"dataGaLocation":784,"dataGaName":882},"/solutions/supply-chain/","Software supply chain security",{"text":884,"config":885},"Software Compliance",{"href":886,"dataGaName":887,"dataGaLocation":784},"/solutions/software-compliance/","software compliance",{"title":889,"link":890,"items":895},"Measurement",{"config":891},{"icon":892,"href":893,"dataGaName":894,"dataGaLocation":784},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[896,900,904],{"text":897,"config":898},"Visibility & Measurement",{"href":893,"dataGaLocation":784,"dataGaName":899},"Visibility and Measurement",{"text":901,"config":902},"Value Stream Management",{"href":903,"dataGaLocation":784,"dataGaName":901},"/solutions/value-stream-management/",{"text":905,"config":906},"Analytics & Insights",{"href":907,"dataGaLocation":784,"dataGaName":908},"/solutions/analytics-and-insights/","Analytics and insights",{"title":910,"type":835,"items":911},"GitLab for",[912,918,924],{"text":913,"config":914},"Enterprise",{"icon":915,"href":916,"dataGaLocation":784,"dataGaName":917},"Building","/enterprise/","enterprise",{"text":919,"config":920},"Small Business",{"icon":921,"href":922,"dataGaLocation":784,"dataGaName":923},"Work","/small-business/","small business",{"text":925,"config":926},"Public Sector",{"icon":927,"href":928,"dataGaLocation":784,"dataGaName":929},"Organization","/solutions/public-sector/","public sector",{"text":931,"config":932},"Pricing",{"href":933,"dataGaName":934,"dataGaLocation":784,"dataNavLevelOne":934},"/pricing/","pricing",{"text":936,"config":937,"menu":939},"Resources",{"dataNavLevelOne":938},"resources",{"type":835,"link":940,"columns":944,"feature":1038},{"text":941,"config":942},"View all resources",{"href":943,"dataGaName":938,"dataGaLocation":784},"/resources/",[945,978,1005],{"title":946,"items":947},"Getting started",[948,953,958,963,968,973],{"text":949,"config":950},"Install",{"href":951,"dataGaName":952,"dataGaLocation":784},"/install/","install",{"text":954,"config":955},"Quick start guides",{"href":956,"dataGaName":957,"dataGaLocation":784},"/get-started/","quick setup checklists",{"text":959,"config":960},"Learn",{"href":961,"dataGaLocation":784,"dataGaName":962},"https://university.gitlab.com/","learn",{"text":964,"config":965},"Product documentation",{"href":966,"dataGaName":967,"dataGaLocation":784},"https://docs.gitlab.com/","product documentation",{"text":969,"config":970},"Best practice videos",{"href":971,"dataGaName":972,"dataGaLocation":784},"/getting-started-videos/","best practice videos",{"text":974,"config":975},"Integrations",{"href":976,"dataGaName":977,"dataGaLocation":784},"/integrations/","integrations",{"title":979,"items":980},"Discover",[981,986,991,996,1000],{"text":982,"config":983},"Customer success stories",{"href":984,"dataGaName":985,"dataGaLocation":784},"/customers/","customer success stories",{"text":987,"config":988},"Blog",{"href":989,"dataGaName":990,"dataGaLocation":784},"/blog/","blog",{"text":992,"config":993},"Demo Hub",{"href":994,"dataGaName":995,"dataGaLocation":784},"/demo-hub/","demo hub",{"text":997,"config":998},"The Source",{"href":999,"dataGaName":990,"dataGaLocation":784},"/the-source/",{"text":1001,"config":1002},"Remote",{"href":1003,"dataGaName":1004,"dataGaLocation":784},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":1006,"items":1007},"Connect",[1008,1013,1018,1023,1028,1033],{"text":1009,"config":1010},"GitLab Services",{"href":1011,"dataGaName":1012,"dataGaLocation":784},"/services/","services",{"text":1014,"config":1015},"Contribute",{"href":1016,"dataGaName":1017,"dataGaLocation":784},"https://contributors.gitlab.com","contribute",{"text":1019,"config":1020},"Community",{"href":1021,"dataGaName":1022,"dataGaLocation":784},"/community/","community",{"text":1024,"config":1025},"Forum",{"href":1026,"dataGaName":1027,"dataGaLocation":784},"https://forum.gitlab.com/","forum",{"text":1029,"config":1030},"Events",{"href":1031,"dataGaName":1032,"dataGaLocation":784},"/events/","events",{"text":1034,"config":1035},"Partners",{"href":1036,"dataGaName":1037,"dataGaLocation":784},"/partners/","partners",{"config":1039,"title":1042,"text":1043,"link":1044},{"background":1040,"textColor":1041},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1045,"config":1046},"Read the latest",{"href":1047,"dataGaName":1048,"dataGaLocation":784},"/whats-new/","whats new",{"text":1050,"config":1051,"menu":1052},"Company",{"dataNavLevelOne":748},{"type":835,"columns":1053},[1054],{"items":1055},[1056,1061,1067,1069,1074,1079,1084,1089,1094,1099],{"text":1057,"config":1058},"About",{"href":1059,"dataGaName":1060,"dataGaLocation":784},"/company/","about",{"text":1062,"config":1063,"footerGa":1066},"Jobs",{"href":1064,"dataGaName":1065,"dataGaLocation":784},"/jobs/","jobs",{"dataGaName":1065},{"text":1029,"config":1068},{"href":1031,"dataGaName":1032,"dataGaLocation":784},{"text":1070,"config":1071},"Leadership",{"href":1072,"dataGaName":1073,"dataGaLocation":784},"/company/team/e-group/","leadership",{"text":1075,"config":1076},"Handbook",{"href":1077,"dataGaName":1078,"dataGaLocation":784},"https://handbook.gitlab.com/","handbook",{"text":1080,"config":1081},"Investor relations",{"href":1082,"dataGaName":1083,"dataGaLocation":784},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1085,"config":1086},"Trust Center",{"href":1087,"dataGaName":1088,"dataGaLocation":784},"/security/","trust center",{"text":1090,"config":1091},"AI Transparency Center",{"href":1092,"dataGaName":1093,"dataGaLocation":784},"/ai-transparency-center/","ai transparency center",{"text":1095,"config":1096},"Newsletter",{"href":1097,"dataGaName":1098,"dataGaLocation":784},"/company/contact/#contact-forms","newsletter",{"text":1100,"config":1101},"Press",{"href":1102,"dataGaName":1103,"dataGaLocation":784},"/press/","press",{"text":1105,"config":1106,"menu":1107},"Contact us",{"dataNavLevelOne":748},{"type":835,"columns":1108},[1109],{"items":1110},[1111,1116,1121],{"text":1112,"config":1113},"Talk to sales",{"href":1114,"dataGaName":1115,"dataGaLocation":784},"/sales/","talk to sales",{"text":1117,"config":1118},"Support portal",{"href":1119,"dataGaName":1120,"dataGaLocation":784},"https://support.gitlab.com/hc/en-us","support portal",{"text":1122,"config":1123},"Customer portal",{"href":1124,"dataGaName":1125,"dataGaLocation":784},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1127,"login":1128,"suggestions":1135},"Close",{"text":1129,"link":1130},"To search repositories and projects, login to",{"text":1131,"config":1132},"gitlab.com",{"href":798,"dataGaName":1133,"dataGaLocation":1134},"search login","search",{"text":1136,"default":1137},"Suggestions",[1138,1140,1144,1146,1150,1154],{"text":815,"config":1139},{"href":820,"dataGaName":815,"dataGaLocation":1134},{"text":1141,"config":1142},"Code Suggestions (AI)",{"href":1143,"dataGaName":1141,"dataGaLocation":1134},"/solutions/code-suggestions/",{"text":851,"config":1145},{"href":853,"dataGaName":851,"dataGaLocation":1134},{"text":1147,"config":1148},"GitLab on AWS",{"href":1149,"dataGaName":1147,"dataGaLocation":1134},"/partners/technology-partners/aws/",{"text":1151,"config":1152},"GitLab on Google Cloud",{"href":1153,"dataGaName":1151,"dataGaLocation":1134},"/partners/technology-partners/google-cloud-platform/",{"text":1155,"config":1156},"Why GitLab?",{"href":828,"dataGaName":1155,"dataGaLocation":1134},{"freeTrial":1158,"mobileIcon":1163,"desktopIcon":1168,"secondaryButton":1171},{"text":1159,"config":1160},"Start free trial",{"href":1161,"dataGaName":789,"dataGaLocation":1162},"https://gitlab.com/-/trials/new/","nav",{"altText":1164,"config":1165},"Gitlab Icon",{"src":1166,"dataGaName":1167,"dataGaLocation":1162},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1164,"config":1169},{"src":1170,"dataGaName":1167,"dataGaLocation":1162},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1172,"config":1173},"Get Started",{"href":1174,"dataGaName":1175,"dataGaLocation":1162},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1177,"mobileIcon":1181,"desktopIcon":1183},{"text":1178,"config":1179},"Learn more about GitLab Duo",{"href":820,"dataGaName":1180,"dataGaLocation":1162},"gitlab duo",{"altText":1164,"config":1182},{"src":1166,"dataGaName":1167,"dataGaLocation":1162},{"altText":1164,"config":1184},{"src":1170,"dataGaName":1167,"dataGaLocation":1162},{"button":1186,"mobileIcon":1191,"desktopIcon":1193},{"text":1187,"config":1188},"/switch",{"href":1189,"dataGaName":1190,"dataGaLocation":1162},"#contact","switch",{"altText":1164,"config":1192},{"src":1166,"dataGaName":1167,"dataGaLocation":1162},{"altText":1164,"config":1194},{"src":1195,"dataGaName":1167,"dataGaLocation":1162},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1197,"mobileIcon":1202,"desktopIcon":1204},{"text":1198,"config":1199},"Back to pricing",{"href":933,"dataGaName":1200,"dataGaLocation":1162,"icon":1201},"back to pricing","GoBack",{"altText":1164,"config":1203},{"src":1166,"dataGaName":1167,"dataGaLocation":1162},{"altText":1164,"config":1205},{"src":1170,"dataGaName":1167,"dataGaLocation":1162},{"title":1207,"titleMobile":1208,"button":1209,"config":1214},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":826,"config":1210},{"href":1211,"dataGaName":1212,"dataGaLocation":1213},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":1215,"disabled":753},"release",{"data":1217},{"text":1218,"source":1219,"edit":1225,"contribute":1230,"config":1235,"items":1240,"minimal":1450},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":1220,"config":1221},"View page source",{"href":1222,"dataGaName":1223,"dataGaLocation":1224},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":1226,"config":1227},"Edit this page",{"href":1228,"dataGaName":1229,"dataGaLocation":1224},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":1231,"config":1232},"Please contribute",{"href":1233,"dataGaName":1234,"dataGaLocation":1224},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":1236,"facebook":1237,"youtube":1238,"linkedin":1239},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1241,1288,1342,1386,1418],{"title":931,"links":1242,"subMenu":1257},[1243,1247,1252],{"text":1244,"config":1245},"View plans",{"href":933,"dataGaName":1246,"dataGaLocation":1224},"view plans",{"text":1248,"config":1249},"Why Premium?",{"href":1250,"dataGaName":1251,"dataGaLocation":1224},"/pricing/premium/","why premium",{"text":1253,"config":1254},"Why Ultimate?",{"href":1255,"dataGaName":1256,"dataGaLocation":1224},"/pricing/ultimate/","why ultimate",[1258],{"title":1259,"links":1260},"Contact Us",[1261,1264,1266,1268,1273,1278,1283],{"text":1262,"config":1263},"Contact sales",{"href":1114,"dataGaName":794,"dataGaLocation":1224},{"text":1117,"config":1265},{"href":1119,"dataGaName":1120,"dataGaLocation":1224},{"text":1122,"config":1267},{"href":1124,"dataGaName":1125,"dataGaLocation":1224},{"text":1269,"config":1270},"Status",{"href":1271,"dataGaName":1272,"dataGaLocation":1224},"https://status.gitlab.com/","status",{"text":1274,"config":1275},"Terms of use",{"href":1276,"dataGaName":1277,"dataGaLocation":1224},"/terms/","terms of use",{"text":1279,"config":1280},"Privacy statement",{"href":1281,"dataGaName":1282,"dataGaLocation":1224},"/privacy/","privacy statement",{"text":1284,"config":1285},"Cookie preferences",{"dataGaName":1286,"dataGaLocation":1224,"id":1287,"isOneTrustButton":281},"cookie preferences","ot-sdk-btn",{"title":831,"links":1289,"subMenu":1298},[1290,1294],{"text":1291,"config":1292},"DevSecOps platform",{"href":813,"dataGaName":1293,"dataGaLocation":1224},"devsecops platform",{"text":1295,"config":1296},"AI-Assisted Development",{"href":820,"dataGaName":1297,"dataGaLocation":1224},"ai-assisted development",[1299],{"title":1300,"links":1301},"Topics",[1302,1307,1312,1317,1322,1327,1332,1337],{"text":1303,"config":1304},"CICD",{"href":1305,"dataGaName":1306,"dataGaLocation":1224},"/topics/ci-cd/","cicd",{"text":1308,"config":1309},"GitOps",{"href":1310,"dataGaName":1311,"dataGaLocation":1224},"/topics/gitops/","gitops",{"text":1313,"config":1314},"DevOps",{"href":1315,"dataGaName":1316,"dataGaLocation":1224},"/topics/devops/","devops",{"text":1318,"config":1319},"Version Control",{"href":1320,"dataGaName":1321,"dataGaLocation":1224},"/topics/version-control/","version control",{"text":1323,"config":1324},"DevSecOps",{"href":1325,"dataGaName":1326,"dataGaLocation":1224},"/topics/devsecops/","devsecops",{"text":1328,"config":1329},"Cloud Native",{"href":1330,"dataGaName":1331,"dataGaLocation":1224},"/topics/cloud-native/","cloud native",{"text":1333,"config":1334},"AI for Coding",{"href":1335,"dataGaName":1336,"dataGaLocation":1224},"/topics/devops/ai-for-coding/","ai for coding",{"text":1338,"config":1339},"Agentic AI",{"href":1340,"dataGaName":1341,"dataGaLocation":1224},"/topics/agentic-ai/","agentic ai",{"title":1343,"links":1344},"Solutions",[1345,1347,1349,1354,1358,1361,1365,1368,1370,1373,1376,1381],{"text":875,"config":1346},{"href":870,"dataGaName":875,"dataGaLocation":1224},{"text":864,"config":1348},{"href":847,"dataGaName":848,"dataGaLocation":1224},{"text":1350,"config":1351},"Agile development",{"href":1352,"dataGaName":1353,"dataGaLocation":1224},"/solutions/agile-delivery/","agile delivery",{"text":1355,"config":1356},"SCM",{"href":860,"dataGaName":1357,"dataGaLocation":1224},"source code management",{"text":1303,"config":1359},{"href":853,"dataGaName":1360,"dataGaLocation":1224},"continuous integration & delivery",{"text":1362,"config":1363},"Value stream management",{"href":903,"dataGaName":1364,"dataGaLocation":1224},"value stream management",{"text":1308,"config":1366},{"href":1367,"dataGaName":1311,"dataGaLocation":1224},"/solutions/gitops/",{"text":913,"config":1369},{"href":916,"dataGaName":917,"dataGaLocation":1224},{"text":1371,"config":1372},"Small business",{"href":922,"dataGaName":923,"dataGaLocation":1224},{"text":1374,"config":1375},"Public sector",{"href":928,"dataGaName":929,"dataGaLocation":1224},{"text":1377,"config":1378},"Education",{"href":1379,"dataGaName":1380,"dataGaLocation":1224},"/solutions/education/","education",{"text":1382,"config":1383},"Financial services",{"href":1384,"dataGaName":1385,"dataGaLocation":1224},"/solutions/finance/","financial services",{"title":936,"links":1387},[1388,1390,1392,1394,1397,1399,1402,1404,1406,1408,1410,1412,1414,1416],{"text":949,"config":1389},{"href":951,"dataGaName":952,"dataGaLocation":1224},{"text":954,"config":1391},{"href":956,"dataGaName":957,"dataGaLocation":1224},{"text":959,"config":1393},{"href":961,"dataGaName":962,"dataGaLocation":1224},{"text":964,"config":1395},{"href":966,"dataGaName":1396,"dataGaLocation":1224},"docs",{"text":987,"config":1398},{"href":989,"dataGaName":990,"dataGaLocation":1224},{"text":1400,"config":1401},"What's new",{"href":1047,"dataGaName":1048,"dataGaLocation":1224},{"text":982,"config":1403},{"href":984,"dataGaName":985,"dataGaLocation":1224},{"text":1001,"config":1405},{"href":1003,"dataGaName":1004,"dataGaLocation":1224},{"text":1009,"config":1407},{"href":1011,"dataGaName":1012,"dataGaLocation":1224},{"text":1014,"config":1409},{"href":1016,"dataGaName":1017,"dataGaLocation":1224},{"text":1019,"config":1411},{"href":1021,"dataGaName":1022,"dataGaLocation":1224},{"text":1024,"config":1413},{"href":1026,"dataGaName":1027,"dataGaLocation":1224},{"text":1029,"config":1415},{"href":1031,"dataGaName":1032,"dataGaLocation":1224},{"text":1034,"config":1417},{"href":1036,"dataGaName":1037,"dataGaLocation":1224},{"title":1050,"links":1419},[1420,1422,1424,1426,1428,1430,1434,1439,1441,1443,1445],{"text":1057,"config":1421},{"href":1059,"dataGaName":748,"dataGaLocation":1224},{"text":1062,"config":1423},{"href":1064,"dataGaName":1065,"dataGaLocation":1224},{"text":1070,"config":1425},{"href":1072,"dataGaName":1073,"dataGaLocation":1224},{"text":1075,"config":1427},{"href":1077,"dataGaName":1078,"dataGaLocation":1224},{"text":1080,"config":1429},{"href":1082,"dataGaName":1083,"dataGaLocation":1224},{"text":1431,"config":1432},"Sustainability",{"href":1433,"dataGaName":1431,"dataGaLocation":1224},"/sustainability/",{"text":1435,"config":1436},"Diversity, inclusion and belonging (DIB)",{"href":1437,"dataGaName":1438,"dataGaLocation":1224},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1085,"config":1440},{"href":1087,"dataGaName":1088,"dataGaLocation":1224},{"text":1095,"config":1442},{"href":1097,"dataGaName":1098,"dataGaLocation":1224},{"text":1100,"config":1444},{"href":1102,"dataGaName":1103,"dataGaLocation":1224},{"text":1446,"config":1447},"Modern Slavery Transparency Statement",{"href":1448,"dataGaName":1449,"dataGaLocation":1224},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1451},[1452,1455,1458],{"text":1453,"config":1454},"Terms",{"href":1276,"dataGaName":1277,"dataGaLocation":1224},{"text":1456,"config":1457},"Cookies",{"dataGaName":1286,"dataGaLocation":1224,"id":1287,"isOneTrustButton":281},{"text":1459,"config":1460},"Privacy",{"href":1281,"dataGaName":1282,"dataGaLocation":1224},[1462],{"id":1463,"title":1464,"body":752,"config":1465,"content":1467,"description":752,"extension":1471,"meta":1472,"navigation":281,"path":1473,"seo":1474,"stem":1475,"__hash__":1476},"blogAuthors/en-us/blog/authors/brian-oconnell.yml","Brian Oconnell",{"template":1466},"BlogAuthor",{"name":7,"config":1468},{"headshot":1469,"ctfId":1470},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659488/Blog/Author%20Headshots/gitlab-logo-extra-whitespace.png","Brian-OConnell","yml",{},"/en-us/blog/authors/brian-oconnell",{},"en-us/blog/authors/brian-oconnell","M8MA0zU4Unoy8wwdb8s-a8wSjrvBxAD-SlvQ61kxEzY",[1478,1486,1493],{"title":1479,"description":1480,"heroImage":1481,"category":748,"date":1482,"authors":1483,"slug":1485,"externalUrl":752},"Why GitLab signed the Open Weights and American AI Leadership letter","GitLab supports customer choice, data privacy, and AI model neutrality, empowering teams to run secure, cost-effective, local solutions.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1785333264/ww4mlighwlvvzgnmbe6w.png","2026-07-29",[1484],"Bill Staples","open-weight-model-letter",{"title":1487,"description":1488,"heroImage":1489,"category":748,"date":1490,"authors":1491,"slug":1492,"externalUrl":752},"GitLab Act 2","A letter to our customers and our investors.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1776362275/ozbwn9tk0dditpnfddlz.png","2026-05-11",[1484],"gitlab-act-2",{"title":1494,"description":1495,"heroImage":1496,"category":748,"date":1497,"authors":1498,"slug":1500,"externalUrl":752},"GitLab named a 2026 Omdia Universe Leader","Omdia's 2026 report on AI-assisted software development ranked 19 vendors. Here is what GitLab's top scores mean for engineering teams.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-13",[1499],"Rebecca Carter","gitlab-named-a-2026-omdia-universe-leader",{"promotions":1502},[1503,1517,1529,1541],{"id":1504,"categories":1505,"header":1507,"text":1508,"button":1509,"image":1514},"ai-modernization",[1506],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":1510,"config":1511},"Get your AI maturity score",{"href":1512,"dataGaName":1513,"dataGaLocation":990},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":1515},{"src":1516},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":1518,"categories":1519,"header":1521,"text":1508,"button":1522,"image":1526},"devops-modernization",[1520,1326],"product","Are you just managing tools or shipping innovation?",{"text":1523,"config":1524},"Get your DevOps maturity score",{"href":1525,"dataGaName":1513,"dataGaLocation":990},"/assessments/devops-modernization-assessment/",{"config":1527},{"src":1528},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":1530,"categories":1531,"header":1533,"text":1508,"button":1534,"image":1538},"security-modernization",[1532],"security","Are you trading speed for security?",{"text":1535,"config":1536},"Get your security maturity score",{"href":1537,"dataGaName":1513,"dataGaLocation":990},"/assessments/security-modernization-assessment/",{"config":1539},{"src":1540},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":1542,"paths":1543,"header":1546,"text":1547,"button":1548,"image":1553},"github-azure-migration",[1544,1545],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":1549,"config":1550},"See how GitLab compares to GitHub",{"href":1551,"dataGaName":1552,"dataGaLocation":990},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":1554},{"src":1528},{"header":1556,"blurb":1557,"button":1558,"secondaryButton":1563},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1559,"config":1560},"Get your free trial",{"href":1561,"dataGaName":789,"dataGaLocation":1562},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1262,"config":1564},{"href":1114,"dataGaName":794,"dataGaLocation":1562},1786803744711]