[{"data":1,"prerenderedAt":1531},["ShallowReactive",2],{"/blog/applying-gitlab-labels-automatically":3,"navigation-en-us":779,"banner-en-us":1216,"footer-en-us":1224,"blog-post-authors-en-us-Brian O'Connell":1471,"blog-related-posts-en-us-applying-gitlab-labels-automatically":1487,"blog-share-wrapper-en-us":1511,"next-steps-en-us":1521},{"id":4,"title":5,"authors":6,"body":8,"category":748,"date":749,"description":750,"extension":751,"externalUrl":752,"faq":752,"featured":753,"heroImage":754,"hidePromo":753,"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","GOq6Gm0NDWBTcFre3ITB0etxqpDKSGARl8YJ6HQ4Xp4",{"logo":780,"freeTrial":785,"sales":790,"login":795,"items":800,"search":1135,"minimal":1167,"duo":1186,"switchNav":1195,"pricingDeployment":1206},{"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},"/request-a-demo/","sales",{"text":796,"config":797},"Sign in",{"href":798,"dataGaName":799,"dataGaLocation":784},"https://gitlab.com/users/sign_in/","sign in",[801,887,975,980,1060,1113],{"text":802,"left":281,"config":803,"menu":805},"Platform",{"dataNavLevelOne":804},"platform",{"type":806,"link":807,"columns":811,"feature":876},"lists",{"text":808,"config":809},"Explore the Platform",{"href":810,"dataGaName":804,"dataGaLocation":784},"/platform/",[812,835,858],{"title":813,"items":814},"DevOps",[815,820,825,830],{"text":816,"config":817},"CI/CD",{"href":818,"dataGaLocation":784,"dataGaName":819},"/solutions/continuous-integration/","ci/cd",{"text":821,"config":822},"Source Code Management",{"href":823,"dataGaLocation":784,"dataGaName":824},"/solutions/source-code-management/","source code management",{"text":826,"config":827},"Agile Delivery",{"href":828,"dataGaLocation":784,"dataGaName":829},"/solutions/agile-delivery/","agile delivery",{"text":831,"config":832},"Artifact Management",{"href":833,"dataGaLocation":784,"dataGaName":834},"/artifact-central/","artifact management",{"title":836,"items":837},"Security & Governance",[838,843,848,853],{"text":839,"config":840},"Application Security Testing",{"href":841,"dataGaLocation":784,"dataGaName":842},"/solutions/application-security-testing/","application security testing",{"text":844,"config":845},"Governance & Compliance",{"href":846,"dataGaLocation":784,"dataGaName":847},"/solutions/software-compliance/","governance and compliance",{"text":849,"config":850},"Secrets Management",{"href":851,"dataGaLocation":784,"dataGaName":852},"/gitlab-secrets-manager/","secrets management",{"text":854,"config":855},"Supply Chain Security",{"href":856,"dataGaLocation":784,"dataGaName":857},"/solutions/supply-chain/","supply chain security",{"title":859,"items":860},"Agentic AI & Context",[861,866,871],{"text":862,"config":863},"Duo Agent Platform",{"href":864,"dataGaLocation":784,"dataGaName":865},"/gitlab-duo-agent-platform/","duo agent platform",{"text":867,"config":868},"Orbit Context Graph",{"href":869,"dataGaLocation":784,"dataGaName":870},"/gitlab-orbit/","orbit",{"text":872,"config":873},"Visibility & Measurement",{"href":874,"dataGaLocation":784,"dataGaName":875},"/solutions/visibility-measurement/","visibility and measurement",{"config":877,"title":880,"text":881,"link":882},{"background":878,"textColor":879},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":883,"config":884},"Read the announcement",{"href":885,"dataGaName":886,"dataGaLocation":784},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":888,"left":281,"config":889,"menu":891},"Solutions",{"dataNavLevelOne":890},"solutions",{"type":806,"link":892,"columns":896,"feature":966},{"text":893,"config":894},"View all Solutions",{"href":895,"dataGaName":890,"dataGaLocation":784},"/solutions/",[897,915,933],{"title":898,"items":899},"Outcomes",[900,905,910],{"text":901,"config":902},"DevOps Modernization",{"href":903,"dataGaLocation":784,"dataGaName":904},"/assessments/devops-modernization-assessment/","devops modernization",{"text":906,"config":907},"Security Modernization",{"href":908,"dataGaLocation":784,"dataGaName":909},"/assessments/security-modernization-assessment/","security modernization",{"text":911,"config":912},"AI Modernization",{"href":913,"dataGaLocation":784,"dataGaName":914},"/assessments/ai-modernization-assessment/","ai modernization",{"title":916,"items":917},"By size",[918,923,928],{"text":919,"config":920},"Enterprise",{"href":921,"dataGaLocation":784,"dataGaName":922},"/enterprise/","enterprise",{"text":924,"config":925},"Small Business",{"href":926,"dataGaLocation":784,"dataGaName":927},"/small-business/","small business",{"text":929,"config":930},"Startups",{"href":931,"dataGaLocation":784,"dataGaName":932},"/solutions/startups/","startups",{"title":934,"items":935},"Industries",[936,941,946,951,956,961],{"text":937,"config":938},"Financial Services",{"href":939,"dataGaLocation":784,"dataGaName":940},"/solutions/finance/","financial services",{"text":942,"config":943},"Public Sector",{"href":944,"dataGaLocation":784,"dataGaName":945},"/solutions/public-sector/","public sector",{"text":947,"config":948},"Telecommunications",{"href":949,"dataGaLocation":784,"dataGaName":950},"/solutions/telecommunications/","telecommunications",{"text":952,"config":953},"Automotive",{"href":954,"dataGaLocation":784,"dataGaName":955},"/solutions/automotive/","automotive",{"text":957,"config":958},"Education",{"href":959,"dataGaLocation":784,"dataGaName":960},"/solutions/education/","education",{"text":962,"config":963},"Aerospace",{"href":964,"dataGaLocation":784,"dataGaName":965},"/solutions/aerospace/","aerospace",{"config":967,"title":968,"text":969,"link":970},{"background":878,"textColor":879},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":971,"config":972},"Explore the standard",{"href":973,"dataGaName":974,"dataGaLocation":784},"/gitlab-security-standard/","gitlab security standard",{"text":976,"config":977},"Pricing",{"href":978,"dataGaName":979,"dataGaLocation":784,"dataNavLevelOne":979},"/pricing/","pricing",{"text":981,"config":982,"menu":984},"Resources",{"dataNavLevelOne":983},"resources",{"type":806,"link":985,"columns":989,"feature":1051},{"text":986,"config":987},"View all resources",{"href":988,"dataGaName":983,"dataGaLocation":784},"/resources/",[990,1023],{"title":991,"items":992},"Discover",[993,998,1003,1008,1013,1018],{"text":994,"config":995},"Docs",{"href":996,"dataGaName":997,"dataGaLocation":784},"https://docs.gitlab.com/","docs",{"text":999,"config":1000},"University",{"href":1001,"dataGaName":1002,"dataGaLocation":784},"https://university.gitlab.com/","university",{"text":1004,"config":1005},"Demo Series",{"href":1006,"dataGaName":1007,"dataGaLocation":784},"/gitlab-technical-demo-series/","demo series",{"text":1009,"config":1010},"Demo Hub",{"href":1011,"dataGaName":1012,"dataGaLocation":784},"/demo-hub/","demo hub",{"text":1014,"config":1015},"Services",{"href":1016,"dataGaName":1017,"dataGaLocation":784},"/services/","services",{"text":1019,"config":1020},"Well Architected",{"href":1021,"dataGaName":1022,"dataGaLocation":784},"/resources/well-architected/","well architected",{"title":1024,"items":1025},"Connect",[1026,1031,1036,1041,1046],{"text":1027,"config":1028},"Blog",{"href":1029,"dataGaName":1030,"dataGaLocation":784},"/blog/","blog",{"text":1032,"config":1033},"Community",{"href":1034,"dataGaName":1035,"dataGaLocation":784},"/community/","community",{"text":1037,"config":1038},"Customers",{"href":1039,"dataGaName":1040,"dataGaLocation":784},"/customers/","customers",{"text":1042,"config":1043},"Partners",{"href":1044,"dataGaName":1045,"dataGaLocation":784},"/partners/","partners",{"text":1047,"config":1048},"Events",{"href":1049,"dataGaName":1050,"dataGaLocation":784},"/events/","events",{"config":1052,"title":1053,"text":1054,"link":1055},{"background":878,"textColor":879},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1056,"config":1057},"Read the latest",{"href":1058,"dataGaName":1059,"dataGaLocation":784},"/whats-new/","whats new",{"text":1061,"config":1062,"menu":1063},"Company",{"dataNavLevelOne":748},{"type":806,"columns":1064},[1065],{"items":1066},[1067,1072,1078,1083,1088,1093,1098,1103,1108],{"text":1068,"config":1069},"About",{"href":1070,"dataGaName":1071,"dataGaLocation":784},"/company/","about",{"text":1073,"config":1074,"footerGa":1077},"Jobs",{"href":1075,"dataGaName":1076,"dataGaLocation":784},"/jobs/","jobs",{"dataGaName":1076},{"text":1079,"config":1080},"Press",{"href":1081,"dataGaName":1082,"dataGaLocation":784},"/press/","press",{"text":1084,"config":1085},"Handbook",{"href":1086,"dataGaName":1087,"dataGaLocation":784},"https://handbook.gitlab.com/","handbook",{"text":1089,"config":1090},"Leadership",{"href":1091,"dataGaName":1092,"dataGaLocation":784},"/company/team/e-group/","leadership",{"text":1094,"config":1095},"Investor relations",{"href":1096,"dataGaName":1097,"dataGaLocation":784},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1099,"config":1100},"Trust Center",{"href":1101,"dataGaName":1102,"dataGaLocation":784},"/security/","trust center",{"text":1104,"config":1105},"AI Transparency Center",{"href":1106,"dataGaName":1107,"dataGaLocation":784},"/ai-transparency-center/","ai transparency center",{"text":1109,"config":1110},"Newsletter",{"href":1111,"dataGaName":1112,"dataGaLocation":784},"/company/contact/#contact-forms","newsletter",{"text":1114,"config":1115,"menu":1116},"Contact us",{"dataNavLevelOne":748},{"type":806,"columns":1117},[1118],{"items":1119},[1120,1125,1130],{"text":1121,"config":1122},"Talk to sales",{"href":1123,"dataGaName":1124,"dataGaLocation":784},"/sales/","talk to sales",{"text":1126,"config":1127},"Support portal",{"href":1128,"dataGaName":1129,"dataGaLocation":784},"https://support.gitlab.com/hc/en-us","support portal",{"text":1131,"config":1132},"Customer portal",{"href":1133,"dataGaName":1134,"dataGaLocation":784},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1136,"login":1137,"suggestions":1144},"Close",{"text":1138,"link":1139},"To search repositories and projects, login to",{"text":1140,"config":1141},"gitlab.com",{"href":798,"dataGaName":1142,"dataGaLocation":1143},"search login","search",{"text":1145,"default":1146},"Suggestions",[1147,1150,1153,1155,1159,1163],{"text":1148,"config":1149},"GitLab Duo Agent Platform",{"href":864,"dataGaName":1148,"dataGaLocation":1143},{"text":1151,"config":1152},"Code Suggestions (AI)",{"href":864,"dataGaName":1151,"dataGaLocation":1143},{"text":816,"config":1154},{"href":818,"dataGaName":816,"dataGaLocation":1143},{"text":1156,"config":1157},"GitLab on AWS",{"href":1158,"dataGaName":1156,"dataGaLocation":1143},"/partners/technology-partners/aws/",{"text":1160,"config":1161},"GitLab on Google Cloud",{"href":1162,"dataGaName":1160,"dataGaLocation":1143},"/partners/technology-partners/google-cloud-platform/",{"text":1164,"config":1165},"Why GitLab?",{"href":1166,"dataGaName":1164,"dataGaLocation":1143},"/why-gitlab/",{"freeTrial":1168,"mobileIcon":1173,"desktopIcon":1178,"secondaryButton":1181},{"text":1169,"config":1170},"Start free trial",{"href":1171,"dataGaName":789,"dataGaLocation":1172},"https://gitlab.com/-/trials/new/","nav",{"altText":1174,"config":1175},"Gitlab Icon",{"src":1176,"dataGaName":1177,"dataGaLocation":1172},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1174,"config":1179},{"src":1180,"dataGaName":1177,"dataGaLocation":1172},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1182,"config":1183},"Get Started",{"href":1184,"dataGaName":1185,"dataGaLocation":1172},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1187,"mobileIcon":1191,"desktopIcon":1193},{"text":1188,"config":1189},"Learn more about GitLab Duo",{"href":864,"dataGaName":1190,"dataGaLocation":1172},"gitlab duo",{"altText":1174,"config":1192},{"src":1176,"dataGaName":1177,"dataGaLocation":1172},{"altText":1174,"config":1194},{"src":1180,"dataGaName":1177,"dataGaLocation":1172},{"button":1196,"mobileIcon":1201,"desktopIcon":1203},{"text":1197,"config":1198},"/switch",{"href":1199,"dataGaName":1200,"dataGaLocation":1172},"#contact","switch",{"altText":1174,"config":1202},{"src":1176,"dataGaName":1177,"dataGaLocation":1172},{"altText":1174,"config":1204},{"src":1205,"dataGaName":1177,"dataGaLocation":1172},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1207,"mobileIcon":1212,"desktopIcon":1214},{"text":1208,"config":1209},"Back to pricing",{"href":978,"dataGaName":1210,"dataGaLocation":1172,"icon":1211},"back to pricing","GoBack",{"altText":1174,"config":1213},{"src":1176,"dataGaName":1177,"dataGaLocation":1172},{"altText":1174,"config":1215},{"src":1180,"dataGaName":1177,"dataGaLocation":1172},{"title":1217,"button":1218,"config":1222},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":883,"config":1219},{"href":885,"dataGaName":1220,"dataGaLocation":1221},"orbit-ga-banner","global-banner",{"layout":1223,"disabled":753},"release",{"data":1225},{"text":1226,"config":1227,"items":1232,"minimal":1460},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1228,"facebook":1229,"youtube":1230,"linkedin":1231},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1233,1281,1340,1387,1428],{"title":976,"links":1234,"subMenu":1250},[1235,1240,1245],{"text":1236,"config":1237},"View plans",{"href":978,"dataGaName":1238,"dataGaLocation":1239},"view plans","footer",{"text":1241,"config":1242},"Why Premium?",{"href":1243,"dataGaName":1244,"dataGaLocation":1239},"/pricing/premium/","why premium",{"text":1246,"config":1247},"Why Ultimate?",{"href":1248,"dataGaName":1249,"dataGaLocation":1239},"/pricing/ultimate/","why ultimate",[1251],{"title":1252,"links":1253},"Contact Us",[1254,1257,1259,1261,1266,1271,1276],{"text":1255,"config":1256},"Contact sales",{"href":1123,"dataGaName":794,"dataGaLocation":1239},{"text":1126,"config":1258},{"href":1128,"dataGaName":1129,"dataGaLocation":1239},{"text":1131,"config":1260},{"href":1133,"dataGaName":1134,"dataGaLocation":1239},{"text":1262,"config":1263},"Status",{"href":1264,"dataGaName":1265,"dataGaLocation":1239},"https://status.gitlab.com/","status",{"text":1267,"config":1268},"Terms of use",{"href":1269,"dataGaName":1270,"dataGaLocation":1239},"/terms/","terms of use",{"text":1272,"config":1273},"Privacy statement",{"href":1274,"dataGaName":1275,"dataGaLocation":1239},"/privacy/","privacy statement",{"text":1277,"config":1278},"Cookie preferences",{"dataGaName":1279,"dataGaLocation":1239,"id":1280,"isOneTrustButton":281},"cookie preferences","ot-sdk-btn",{"title":802,"links":1282,"subMenu":1298},[1283,1286,1288,1290,1292,1294],{"text":1284,"config":1285},"Explore the platform",{"href":810,"dataGaName":804,"dataGaLocation":1239},{"text":862,"config":1287},{"href":864,"dataGaName":865,"dataGaLocation":1239},{"text":816,"config":1289},{"href":818,"dataGaName":819,"dataGaLocation":1239},{"text":867,"config":1291},{"href":869,"dataGaName":870,"dataGaLocation":1239},{"text":849,"config":1293},{"href":851,"dataGaName":852,"dataGaLocation":1239},{"text":1295,"config":1296},"Why GitLab",{"href":1166,"dataGaName":1297,"dataGaLocation":1239},"why gitlab",[1299],{"title":1300,"links":1301},"Topics",[1302,1306,1311,1315,1320,1325,1330,1335],{"text":816,"config":1303},{"href":1304,"dataGaName":1305,"dataGaLocation":1239},"/topics/ci-cd/","cicd",{"text":1307,"config":1308},"GitOps",{"href":1309,"dataGaName":1310,"dataGaLocation":1239},"/topics/gitops/","gitops",{"text":813,"config":1312},{"href":1313,"dataGaName":1314,"dataGaLocation":1239},"/topics/devops/","devops",{"text":1316,"config":1317},"Version Control",{"href":1318,"dataGaName":1319,"dataGaLocation":1239},"/topics/version-control/","version control",{"text":1321,"config":1322},"DevSecOps",{"href":1323,"dataGaName":1324,"dataGaLocation":1239},"/topics/devsecops/","devsecops",{"text":1326,"config":1327},"Cloud Native",{"href":1328,"dataGaName":1329,"dataGaLocation":1239},"/topics/cloud-native/","cloud native",{"text":1331,"config":1332},"AI for Coding",{"href":1333,"dataGaName":1334,"dataGaLocation":1239},"/topics/devops/ai-for-coding/","ai for coding",{"text":1336,"config":1337},"Agentic AI",{"href":1338,"dataGaName":1339,"dataGaLocation":1239},"/topics/agentic-ai/","agentic ai",{"title":888,"links":1341},[1342,1345,1348,1351,1354,1357,1359,1361,1363,1365,1367,1370,1372,1375,1379,1383],{"text":1343,"config":1344},"DevOps modernization",{"href":903,"dataGaName":904,"dataGaLocation":1239},{"text":1346,"config":1347},"Security modernization",{"href":908,"dataGaName":909,"dataGaLocation":1239},{"text":1349,"config":1350},"AI modernization",{"href":913,"dataGaName":914,"dataGaLocation":1239},{"text":1352,"config":1353},"Financial services",{"href":939,"dataGaName":940,"dataGaLocation":1239},{"text":1355,"config":1356},"Public sector",{"href":944,"dataGaName":945,"dataGaLocation":1239},{"text":947,"config":1358},{"href":949,"dataGaName":950,"dataGaLocation":1239},{"text":952,"config":1360},{"href":954,"dataGaName":955,"dataGaLocation":1239},{"text":957,"config":1362},{"href":959,"dataGaName":960,"dataGaLocation":1239},{"text":962,"config":1364},{"href":964,"dataGaName":965,"dataGaLocation":1239},{"text":919,"config":1366},{"href":921,"dataGaName":922,"dataGaLocation":1239},{"text":1368,"config":1369},"Small business",{"href":926,"dataGaName":927,"dataGaLocation":1239},{"text":929,"config":1371},{"href":931,"dataGaName":932,"dataGaLocation":1239},{"text":1307,"config":1373},{"href":1374,"dataGaName":1310,"dataGaLocation":1239},"/solutions/gitops/",{"text":1376,"config":1377},"Software composition analysis",{"href":856,"dataGaName":1378,"dataGaLocation":1239},"software composition analysis",{"text":1380,"config":1381},"Value stream management",{"href":874,"dataGaName":1382,"dataGaLocation":1239},"value stream management",{"text":1384,"config":1385},"All solutions",{"href":895,"dataGaName":1386,"dataGaLocation":1239},"all solutions",{"title":981,"links":1388},[1389,1394,1399,1401,1403,1405,1407,1409,1411,1413,1415,1417,1419,1421,1424],{"text":1390,"config":1391},"Install",{"href":1392,"dataGaName":1393,"dataGaLocation":1239},"/install/","install",{"text":1395,"config":1396},"Quick start guides",{"href":1397,"dataGaName":1398,"dataGaLocation":1239},"/get-started/","quick setup checklists",{"text":994,"config":1400},{"href":996,"dataGaName":997,"dataGaLocation":1239},{"text":999,"config":1402},{"href":1001,"dataGaName":1002,"dataGaLocation":1239},{"text":1004,"config":1404},{"href":1006,"dataGaName":1007,"dataGaLocation":1239},{"text":1009,"config":1406},{"href":1011,"dataGaName":1012,"dataGaLocation":1239},{"text":1014,"config":1408},{"href":1016,"dataGaName":1017,"dataGaLocation":1239},{"text":1027,"config":1410},{"href":1029,"dataGaName":1030,"dataGaLocation":1239},{"text":1032,"config":1412},{"href":1034,"dataGaName":1035,"dataGaLocation":1239},{"text":1037,"config":1414},{"href":1039,"dataGaName":1040,"dataGaLocation":1239},{"text":1042,"config":1416},{"href":1044,"dataGaName":1045,"dataGaLocation":1239},{"text":1047,"config":1418},{"href":1049,"dataGaName":1050,"dataGaLocation":1239},{"text":1109,"config":1420},{"href":1111,"dataGaName":1112,"dataGaLocation":1239},{"text":1422,"config":1423},"What's new",{"href":1058,"dataGaName":1059,"dataGaLocation":1239},{"text":1425,"config":1426},"All resources",{"href":988,"dataGaName":1427,"dataGaLocation":1239},"all resources",{"title":1061,"links":1429},[1430,1432,1434,1436,1438,1440,1442,1444,1446,1450,1455],{"text":1068,"config":1431},{"href":1070,"dataGaName":748,"dataGaLocation":1239},{"text":1073,"config":1433},{"href":1075,"dataGaName":1076,"dataGaLocation":1239},{"text":1079,"config":1435},{"href":1081,"dataGaName":1082,"dataGaLocation":1239},{"text":1084,"config":1437},{"href":1086,"dataGaName":1087,"dataGaLocation":1239},{"text":1089,"config":1439},{"href":1091,"dataGaName":1092,"dataGaLocation":1239},{"text":1094,"config":1441},{"href":1096,"dataGaName":1097,"dataGaLocation":1239},{"text":1099,"config":1443},{"href":1101,"dataGaName":1102,"dataGaLocation":1239},{"text":1104,"config":1445},{"href":1106,"dataGaName":1107,"dataGaLocation":1239},{"text":1447,"config":1448},"Sustainability",{"href":1449,"dataGaName":1447,"dataGaLocation":1239},"/sustainability/",{"text":1451,"config":1452},"Diversity, inclusion and belonging (DIB)",{"href":1453,"dataGaName":1454,"dataGaLocation":1239},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1456,"config":1457},"Modern Slavery Transparency Statement",{"href":1458,"dataGaName":1459,"dataGaLocation":1239},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1461},[1462,1465,1468],{"text":1463,"config":1464},"Terms",{"href":1269,"dataGaName":1270,"dataGaLocation":1239},{"text":1466,"config":1467},"Cookies",{"dataGaName":1279,"dataGaLocation":1239,"id":1280,"isOneTrustButton":281},{"text":1469,"config":1470},"Privacy",{"href":1274,"dataGaName":1275,"dataGaLocation":1239},[1472],{"id":1473,"title":1474,"body":752,"config":1475,"content":1477,"description":752,"extension":1481,"meta":1482,"navigation":281,"path":1483,"seo":1484,"stem":1485,"__hash__":1486},"blogAuthors/en-us/blog/authors/brian-oconnell.yml","Brian Oconnell",{"template":1476},"BlogAuthor",{"name":7,"config":1478},{"headshot":1479,"ctfId":1480},"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",[1488,1496,1503],{"title":1489,"description":1490,"heroImage":1491,"category":748,"date":1492,"authors":1493,"slug":1495,"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",[1494],"Bill Staples","open-weight-model-letter",{"title":1497,"description":1498,"heroImage":1499,"category":748,"date":1500,"authors":1501,"slug":1502,"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",[1494],"gitlab-act-2",{"title":1504,"description":1505,"heroImage":1506,"category":748,"date":1507,"authors":1508,"slug":1510,"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",[1509],"Rebecca Carter","gitlab-named-a-2026-omdia-universe-leader",{"header":1512,"text":1513,"button":1517,"disclaimer":1520},"Start your free\n\n30-day GitLab trial\n",[1514,1515,1516],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":786,"config":1518},{"href":1519,"dataGaName":789,"dataGaLocation":1030},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1522,"blurb":1523,"button":1524,"secondaryButton":1529},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1525,"config":1526},"Get your free trial",{"href":1527,"dataGaName":789,"dataGaLocation":1528},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1255,"config":1530},{"href":1123,"dataGaName":794,"dataGaLocation":1528},1794911782872]