[{"data":1,"prerenderedAt":1460},["ShallowReactive",2],{"/blog/patch-files-for-code-review":3,"navigation-en-us":706,"banner-en-us":1144,"footer-en-us":1152,"blog-post-authors-en-us-David O'Regan":1399,"blog-related-posts-en-us-patch-files-for-code-review":1415,"blog-share-wrapper-en-us":1440,"next-steps-en-us":1450},{"id":4,"title":5,"authors":6,"body":8,"category":686,"date":687,"description":688,"extension":689,"externalUrl":690,"faq":690,"featured":691,"heroImage":692,"hidePromo":691,"meta":693,"navigation":328,"path":694,"seo":695,"slug":699,"stem":700,"tags":701,"template":704,"updatedDate":690,"__hash__":705},"blogPosts/en-us/blog/patch-files-for-code-review.md","How patch files can transform how you review code",[7],"David O'Regan",{"type":9,"value":10,"toc":677},"minimark",[11,26,31,50,54,57,66,251,254,258,261,266,292,296,303,428,435,579,585,599,602,605,613,623,627,630,643,652,655,658,666,673],[12,13,14,15,20,21,25],"p",{},"This post is adapted from a ",[16,17,19],"a",{"href":18},"/blog/better-code-reviews/","GitLab Unfiltered blog post"," written by me, David O'Regan. In ",[16,22,24],{"href":23},"/blog/tips-for-better-code-review/","part one of our series",", we explain the importance of fairness and empathetic thinking in code reviews.",[27,28,30],"h2",{"id":29},"patch-files","Patch files",[12,32,33,34,38,39,43,44,49],{},"Wanna know a ",[35,36,37],"code",{},"git secret","? ",[16,40,30],{"href":41,"rel":42},"https://git-scm.com/docs/git-format-patch",[]," are magic when it comes to code reviews. A ",[16,45,48],{"href":46,"rel":47},"https://www.tutorialspoint.com/git/git_patch_operation.htm",[],"patch is a text file whose contents are similar to Git diff"," but along with code it contains metadata about commits, for example, a patch file will include commit ID, date, commit message, etc. We can create a patch from commits and other people can apply them to their repository.",[27,51,53],{"id":52},"how-to-use-a-patch-file","How to use a patch file",[12,55,56],{},"A patch file is useful for code review because it allows the reviewer to create an actionable piece of code that shares their thoughts with the MR author. The code author can then apply the suggestion directly to their merge request. Patch files foster collaboration because it essentially creates a paired programming session in the review process.",[12,58,59,60,65],{},"This lets other people check your changes in the git patch files for any corrections that need to be made before the changes truly go live. After everything has been checked and corrections made, the changes can be pushed to the main branch of the repository.\nOne of the ",[16,61,64],{"href":62,"rel":63},"https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31686#note_341534370",[],"better examples of a simple patch file in action"," comes from Denys Mishunov, staff frontend engineer on the Create team.",[67,68,73],"pre",{"className":69,"code":70,"language":71,"meta":72,"style":72},"language-bash shiki shiki-themes github-light","Index: app/assets/javascripts/projects/commits/components/author_select.vue\nIDEA additional info:\nSubsystem: com.intellij.openapi.diff.impl.patch.CharsetEP\n\u003C+>UTF-8\n===================================================================\n--- app/assets/javascripts/projects/commits/components/author_select.vue    (revision 697d0734f1ae469a9a3522838e36b435d7cdf0be)\n+++ app/assets/javascripts/projects/commits/components/author_select.vue    (date 1589356024033)\n@@ -110,6 +110,7 @@\n     \u003Cgl-new-dropdown\n       :text=\"dropdownText\"\n       :disabled=\"hasSearchParam\"\n+      toggle-class=\"gl-py-3\"\n       class=\"gl-dropdown w-100 mt-2 mt-sm-0\"\n     >\n       \u003Cgl-new-dropdown-header>\n\n","bash","",[35,74,75,88,100,109,126,132,150,167,182,191,203,214,222,233,239],{"__ignoreMap":72},[76,77,80,84],"span",{"class":78,"line":79},"line",1,[76,81,83],{"class":82},"s7eDp","Index:",[76,85,87],{"class":86},"sYBdl"," app/assets/javascripts/projects/commits/components/author_select.vue\n",[76,89,91,94,97],{"class":78,"line":90},2,[76,92,93],{"class":82},"IDEA",[76,95,96],{"class":86}," additional",[76,98,99],{"class":86}," info:\n",[76,101,103,106],{"class":78,"line":102},3,[76,104,105],{"class":82},"Subsystem:",[76,107,108],{"class":86}," com.intellij.openapi.diff.impl.patch.CharsetEP\n",[76,110,112,116,120,123],{"class":78,"line":111},4,[76,113,115],{"class":114},"sD7c4","\u003C",[76,117,119],{"class":118},"sgsFI","+",[76,121,122],{"class":114},">",[76,124,125],{"class":118},"UTF-8\n",[76,127,129],{"class":78,"line":128},5,[76,130,131],{"class":86},"===================================================================\n",[76,133,135,138,141,144,147],{"class":78,"line":134},6,[76,136,137],{"class":82},"---",[76,139,140],{"class":86}," app/assets/javascripts/projects/commits/components/author_select.vue",[76,142,143],{"class":118},"    (revision ",[76,145,146],{"class":86},"697d0734f1ae469a9a3522838e36b435d7cdf0be",[76,148,149],{"class":118},")\n",[76,151,153,156,158,161,165],{"class":78,"line":152},7,[76,154,155],{"class":82},"+++",[76,157,140],{"class":86},[76,159,160],{"class":118},"    (date ",[76,162,164],{"class":163},"sYu0t","1589356024033",[76,166,149],{"class":118},[76,168,170,173,176,179],{"class":78,"line":169},8,[76,171,172],{"class":82},"@@",[76,174,175],{"class":163}," -110,6",[76,177,178],{"class":86}," +110,7",[76,180,181],{"class":86}," @@\n",[76,183,185,188],{"class":78,"line":184},9,[76,186,187],{"class":114},"     \u003C",[76,189,190],{"class":82},"gl-new-dropdown\n",[76,192,194,197,200],{"class":78,"line":193},10,[76,195,196],{"class":82},"       :text",[76,198,199],{"class":86},"=",[76,201,202],{"class":82},"\"dropdownText\"\n",[76,204,206,209,211],{"class":78,"line":205},11,[76,207,208],{"class":82},"       :disabled",[76,210,199],{"class":86},[76,212,213],{"class":82},"\"hasSearchParam\"\n",[76,215,217,219],{"class":78,"line":216},12,[76,218,119],{"class":82},[76,220,221],{"class":86},"      toggle-class=\"gl-py-3\"\n",[76,223,225,228,230],{"class":78,"line":224},13,[76,226,227],{"class":118},"       class",[76,229,199],{"class":114},[76,231,232],{"class":86},"\"gl-dropdown w-100 mt-2 mt-sm-0\"\n",[76,234,236],{"class":78,"line":235},14,[76,237,238],{"class":114},"     >\n",[76,240,242,245,248],{"class":78,"line":241},15,[76,243,244],{"class":114},"       \u003C",[76,246,247],{"class":82},"gl-new-dropdown-header",[76,249,250],{"class":118},">\n",[12,252,253],{},"To generate this suggestion, Denys pulled down the code he was reviewing and was able to offer a code solution based on his own testing. The patch file contains lots of valuable information, including the file affected, the date the revision was made, and the tool he used to generate the patch.",[27,255,257],{"id":256},"how-to-create-a-patch-file","How to create a patch file",[12,259,260],{},"You can make a patch file using a web editor or with the command line. Read on to see how to create a patch file in GitLab both ways.",[262,263,265],"h3",{"id":264},"patch-files-using-a-web-editor","Patch files using a web editor",[12,267,268,269,274,275,274,280,285,286,291],{},"If you are rocking a nice fancy IDE or text editor, here's some good news: Most support patch files via plugins or out of the box. Here are some links to documentation on how to use patch files with different plugins: ",[16,270,273],{"href":271,"rel":272},"https://github.com/paragdiwan/vscode-git-patch",[],"VSCode",", ",[16,276,279],{"href":277,"rel":278},"https://www.jetbrains.com/help/webstorm/using-patches.html",[],"Webstorm",[16,281,284],{"href":282,"rel":283},"https://atom.io/packages/git-plus",[],"Atom",", and ",[16,287,290],{"href":288,"rel":289},"https://vim.fandom.com/wiki/How_to_make_and_submit_a_patch",[],"Vim",".",[262,293,295],{"id":294},"patch-files-using-the-command-line","Patch files using the command line",[12,297,298,299,302],{},"OK command line users, you’ve made some commits, here’s your ",[35,300,301],{},"git log",":",[67,304,308],{"className":305,"code":306,"language":307,"meta":72,"style":72},"language-shell shiki shiki-themes github-light","git log --pretty=oneline -3\n\n* da33d1k - (feature_branch) Reviewer Commit 1 (7 minutes ago)\n\n* 66a84ah - (feature_branch) Developer 1 Commit (12 minutes ago)\n\n* adsc8cd - (REL-0.5.0, origin/master, origin/HEAD, master) Release 13.0 (2 weeks ago)\n\n```javascript\n","shell",[35,309,310,324,330,355,359,380,384,416,420],{"__ignoreMap":72},[76,311,312,315,318,321],{"class":78,"line":79},[76,313,314],{"class":82},"git",[76,316,317],{"class":86}," log",[76,319,320],{"class":163}," --pretty=oneline",[76,322,323],{"class":163}," -3\n",[76,325,326],{"class":78,"line":90},[76,327,329],{"emptyLinePlaceholder":328},true,"\n",[76,331,332,335,338,341,344,347,350,353],{"class":78,"line":102},[76,333,334],{"class":114},"*",[76,336,337],{"class":118}," da33d1k - (",[76,339,340],{"class":82},"feature_branch",[76,342,343],{"class":118},") Reviewer Commit 1 (",[76,345,346],{"class":82},"7",[76,348,349],{"class":86}," minutes",[76,351,352],{"class":86}," ago",[76,354,149],{"class":118},[76,356,357],{"class":78,"line":111},[76,358,329],{"emptyLinePlaceholder":328},[76,360,361,363,366,368,371,374,376,378],{"class":78,"line":128},[76,362,334],{"class":114},[76,364,365],{"class":118}," 66a84ah - (",[76,367,340],{"class":82},[76,369,370],{"class":118},") Developer 1 Commit (",[76,372,373],{"class":82},"12",[76,375,349],{"class":86},[76,377,352],{"class":86},[76,379,149],{"class":118},[76,381,382],{"class":78,"line":134},[76,383,329],{"emptyLinePlaceholder":328},[76,385,386,388,391,394,397,400,403,406,409,412,414],{"class":78,"line":152},[76,387,334],{"class":114},[76,389,390],{"class":118}," adsc8cd - (",[76,392,393],{"class":82},"REL-0.5.0,",[76,395,396],{"class":86}," origin/master,",[76,398,399],{"class":86}," origin/HEAD,",[76,401,402],{"class":86}," master",[76,404,405],{"class":118},") Release 13.0 (",[76,407,408],{"class":82},"2",[76,410,411],{"class":86}," weeks",[76,413,352],{"class":86},[76,415,149],{"class":118},[76,417,418],{"class":78,"line":169},[76,419,329],{"emptyLinePlaceholder":328},[76,421,422,425],{"class":78,"line":184},[76,423,424],{"class":86},"```",[76,426,427],{"class":82},"javascript\n",[12,429,430,431,434],{},"This command creates a new file, ",[35,432,433],{},"reviewer_commit.patch",", with all changes from the reviewer's latest commit against the feature branch:",[67,436,438],{"className":305,"code":437,"language":307,"meta":72,"style":72},"```text git format-patch HEAD~1 --stdout > reviewer_commit.patch ```\n### How to apply the patch\n\nFirst, take a look at what changes are in the patch. You can do this easily with `git apply`:\n\n```shell git apply --stat reviewer_commit.patch ``` ```text\n\nHeads up: Despite the name, this command won't actually apply the patch. It will just show the statistics about what the patch will do.\n\nSo now that we've had a look, let's test it first because not all patches are created equal:\n\n",[35,439,440,459,465,469,533,537,558,562,570,574],{"__ignoreMap":72},[76,441,442,444,447,450,453,456],{"class":78,"line":79},[76,443,424],{"class":86},[76,445,446],{"class":82},"text",[76,448,449],{"class":86}," git format-patch HEAD~1 ",[76,451,452],{"class":163},"--stdout",[76,454,455],{"class":114}," >",[76,457,458],{"class":86}," reviewer_commit.patch ```\n",[76,460,461],{"class":78,"line":90},[76,462,464],{"class":463},"sAwPA","### How to apply the patch\n",[76,466,467],{"class":78,"line":102},[76,468,329],{"emptyLinePlaceholder":328},[76,470,471,474,477,480,483,486,489,492,495,498,501,504,507,510,513,516,519,522,525,527,530],{"class":78,"line":111},[76,472,473],{"class":82},"First,",[76,475,476],{"class":86}," take",[76,478,479],{"class":86}," a",[76,481,482],{"class":86}," look",[76,484,485],{"class":86}," at",[76,487,488],{"class":86}," what",[76,490,491],{"class":86}," changes",[76,493,494],{"class":86}," are",[76,496,497],{"class":86}," in",[76,499,500],{"class":86}," the",[76,502,503],{"class":86}," patch.",[76,505,506],{"class":86}," You",[76,508,509],{"class":86}," can",[76,511,512],{"class":86}," do",[76,514,515],{"class":86}," this",[76,517,518],{"class":86}," easily",[76,520,521],{"class":86}," with",[76,523,524],{"class":86}," `",[76,526,314],{"class":82},[76,528,529],{"class":86}," apply`",[76,531,532],{"class":163},":\n",[76,534,535],{"class":78,"line":128},[76,536,329],{"emptyLinePlaceholder":328},[76,538,539,541,543,546,549,552,555],{"class":78,"line":134},[76,540,424],{"class":86},[76,542,307],{"class":82},[76,544,545],{"class":86}," git apply ",[76,547,548],{"class":163},"--stat",[76,550,551],{"class":86}," reviewer_commit.patch ```",[76,553,554],{"class":86}," ```",[76,556,557],{"class":82},"text\n",[76,559,560],{"class":78,"line":152},[76,561,329],{"emptyLinePlaceholder":328},[76,563,564,567],{"class":78,"line":169},[76,565,566],{"class":82},"Heads",[76,568,569],{"class":86}," up: Despite the name, this command won't actually apply the patch. It will just show the statistics about what the patch will do.\n",[76,571,572],{"class":78,"line":184},[76,573,329],{"emptyLinePlaceholder":328},[76,575,576],{"class":78,"line":193},[76,577,578],{"class":86},"So now that we've had a look, let's test it first because not all patches are created equal:\n",[12,580,581,584],{},[35,582,583],{},"shell git apply --check reviewer_commit.patch ","\nIf there are no errors we can apply this patch without worrying.",[12,586,587,588,591,592,595,596,598],{},"To apply the patch, you should use ",[35,589,590],{},"git am"," instead of ",[35,593,594],{},"git apply",". The reason: ",[35,597,590],{}," allows you to sign off an applied patch with the reviewer's stamp.",[12,600,601],{},"git am --signoff \u003C reviewer_commit.patch",[12,603,604],{},"Applying: Reviewer Commit 1",[67,606,609],{"className":607,"code":72,"language":608,"meta":72,"style":72},"language-javascript shiki shiki-themes github-light","javascript",[35,610,611],{"__ignoreMap":72},[76,612],{"class":78,"line":79},[12,614,615,616,618,619,622],{},"Now run ",[35,617,301],{}," and you can see the ",[35,620,621],{},"Signed-off-by"," tag in the commit message. This tag makes it very easy to understand how this commit ended up in the codebase.",[262,624,626],{"id":625},"the-benefits-of-patch-files-for-code-reviews","The benefits of patch files for code reviews",[12,628,629],{},"So now that you know how to make a shiny patch file, why would you use patch files as part of a code review process? There are a few reasons you might consider offering a patch file for a change you feel strongly about:",[631,632,633,637,640],"ul",{},[634,635,636],"li",{},"It communicates you have invested a large amount of effort into understanding the author's solution and reasoning",[634,638,639],{},"It demonstrates a passion for using teamwork to arrive at the best solution",[634,641,642],{},"It shows the reviewer is willing to accept responsibility for this merge beyond just reading the code",[12,644,645,646,651],{},"There are a few alternatives to patch files for code reviews. GitLab has a ",[16,647,650],{"href":648,"rel":649},"https://docs.gitlab.com/user/discussions/#suggest-changes",[],"suggestion feature which allows the reviewer to suggest code changes using Markdown in a merge request",". The other option is to write raw code in Markdown right in the comment box. The downside is the reviewer doesn't have the option to test the code they are writing, making both of these options prone to error.",[12,653,654],{},"It is better to use a patch file because it involves the code reviewer in the review process in a collaborative way by default. In order to generate a patch, the reviewer must pull down the code, write the patch, test the change, and then submit it for the code author's consideration. Patch files increase the visibility for the reviewer and offers a fully collaborative experience for the code author.",[12,656,657],{},"Some people might argue patch files are a cheeky way for a reviewer to force a change they would rather see make it into the codebase, but I believe that anyone who has taken the time to check out a branch, run the project, implement a change, and then submits that change back for a discussion is fully embracing collaboration.",[12,659,660,661,291],{},"GitLab is evaluating whether to make patch files ",[16,662,665],{"href":663,"rel":664},"https://gitlab.com/gitlab-org/gitlab/-/issues/220044",[],"part of the code review and merge request workflow",[12,667,668,669,672],{},"Learn more about ",[16,670,671],{"href":23},"the role of fairness in code review in part one of our blog series",". Up next we explain why shipping small merge requests is in line with our iteration value.",[674,675,676],"style",{},"html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}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 .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":72,"searchDepth":90,"depth":90,"links":678},[679,680,681],{"id":29,"depth":90,"text":30},{"id":52,"depth":90,"text":53},{"id":256,"depth":90,"text":257,"children":682},[683,684,685],{"id":264,"depth":102,"text":265},{"id":294,"depth":102,"text":295},{"id":625,"depth":102,"text":626},"engineering","2021-03-15","We explain how to use patch files for better code review.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749672273/Blog/Hero%20Images/patch.jpg",{},"/en-us/blog/patch-files-for-code-review",{"title":5,"description":688,"ogTitle":5,"ogDescription":688,"noIndex":691,"ogImage":692,"ogUrl":696,"ogSiteName":697,"ogType":698,"canonicalUrls":696},"https://about.gitlab.com/blog/patch-files-for-code-review","https://about.gitlab.com","article","patch-files-for-code-review","en-us/blog/patch-files-for-code-review",[702,703],"code review","inside GitLab","BlogPost","EMifSZLUdfOdDSIMdDAUshTlhGZ2DXFizSjgs2_6YfQ",{"logo":707,"freeTrial":712,"sales":717,"login":722,"items":727,"search":1063,"minimal":1095,"duo":1114,"switchNav":1123,"pricingDeployment":1134},{"config":708},{"href":709,"dataGaName":710,"dataGaLocation":711},"/","gitlab logo","header",{"text":713,"config":714},"Get free trial",{"href":715,"dataGaName":716,"dataGaLocation":711},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":718,"config":719},"Request a demo",{"href":720,"dataGaName":721,"dataGaLocation":711},"/request-a-demo/","sales",{"text":723,"config":724},"Sign in",{"href":725,"dataGaName":726,"dataGaLocation":711},"https://gitlab.com/users/sign_in/","sign in",[728,814,902,907,987,1041],{"text":729,"left":328,"config":730,"menu":732},"Platform",{"dataNavLevelOne":731},"platform",{"type":733,"link":734,"columns":738,"feature":803},"lists",{"text":735,"config":736},"Explore the Platform",{"href":737,"dataGaName":731,"dataGaLocation":711},"/platform/",[739,762,785],{"title":740,"items":741},"DevOps",[742,747,752,757],{"text":743,"config":744},"CI/CD",{"href":745,"dataGaLocation":711,"dataGaName":746},"/solutions/continuous-integration/","ci/cd",{"text":748,"config":749},"Source Code Management",{"href":750,"dataGaLocation":711,"dataGaName":751},"/solutions/source-code-management/","source code management",{"text":753,"config":754},"Agile Delivery",{"href":755,"dataGaLocation":711,"dataGaName":756},"/solutions/agile-delivery/","agile delivery",{"text":758,"config":759},"Artifact Management",{"href":760,"dataGaLocation":711,"dataGaName":761},"/artifact-central/","artifact management",{"title":763,"items":764},"Security & Governance",[765,770,775,780],{"text":766,"config":767},"Application Security Testing",{"href":768,"dataGaLocation":711,"dataGaName":769},"/solutions/application-security-testing/","application security testing",{"text":771,"config":772},"Governance & Compliance",{"href":773,"dataGaLocation":711,"dataGaName":774},"/solutions/software-compliance/","governance and compliance",{"text":776,"config":777},"Secrets Management",{"href":778,"dataGaLocation":711,"dataGaName":779},"/gitlab-secrets-manager/","secrets management",{"text":781,"config":782},"Supply Chain Security",{"href":783,"dataGaLocation":711,"dataGaName":784},"/solutions/supply-chain/","supply chain security",{"title":786,"items":787},"Agentic AI & Context",[788,793,798],{"text":789,"config":790},"Duo Agent Platform",{"href":791,"dataGaLocation":711,"dataGaName":792},"/gitlab-duo-agent-platform/","duo agent platform",{"text":794,"config":795},"Orbit Context Graph",{"href":796,"dataGaLocation":711,"dataGaName":797},"/gitlab-orbit/","orbit",{"text":799,"config":800},"Visibility & Measurement",{"href":801,"dataGaLocation":711,"dataGaName":802},"/solutions/visibility-measurement/","visibility and measurement",{"config":804,"title":807,"text":808,"link":809},{"background":805,"textColor":806},"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":810,"config":811},"Read the announcement",{"href":812,"dataGaName":813,"dataGaLocation":711},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":815,"left":328,"config":816,"menu":818},"Solutions",{"dataNavLevelOne":817},"solutions",{"type":733,"link":819,"columns":823,"feature":893},{"text":820,"config":821},"View all Solutions",{"href":822,"dataGaName":817,"dataGaLocation":711},"/solutions/",[824,842,860],{"title":825,"items":826},"Outcomes",[827,832,837],{"text":828,"config":829},"DevOps Modernization",{"href":830,"dataGaLocation":711,"dataGaName":831},"/assessments/devops-modernization-assessment/","devops modernization",{"text":833,"config":834},"Security Modernization",{"href":835,"dataGaLocation":711,"dataGaName":836},"/assessments/security-modernization-assessment/","security modernization",{"text":838,"config":839},"AI Modernization",{"href":840,"dataGaLocation":711,"dataGaName":841},"/assessments/ai-modernization-assessment/","ai modernization",{"title":843,"items":844},"By size",[845,850,855],{"text":846,"config":847},"Enterprise",{"href":848,"dataGaLocation":711,"dataGaName":849},"/enterprise/","enterprise",{"text":851,"config":852},"Small Business",{"href":853,"dataGaLocation":711,"dataGaName":854},"/small-business/","small business",{"text":856,"config":857},"Startups",{"href":858,"dataGaLocation":711,"dataGaName":859},"/solutions/startups/","startups",{"title":861,"items":862},"Industries",[863,868,873,878,883,888],{"text":864,"config":865},"Financial Services",{"href":866,"dataGaLocation":711,"dataGaName":867},"/solutions/finance/","financial services",{"text":869,"config":870},"Public Sector",{"href":871,"dataGaLocation":711,"dataGaName":872},"/solutions/public-sector/","public sector",{"text":874,"config":875},"Telecommunications",{"href":876,"dataGaLocation":711,"dataGaName":877},"/solutions/telecommunications/","telecommunications",{"text":879,"config":880},"Automotive",{"href":881,"dataGaLocation":711,"dataGaName":882},"/solutions/automotive/","automotive",{"text":884,"config":885},"Education",{"href":886,"dataGaLocation":711,"dataGaName":887},"/solutions/education/","education",{"text":889,"config":890},"Aerospace",{"href":891,"dataGaLocation":711,"dataGaName":892},"/solutions/aerospace/","aerospace",{"config":894,"title":895,"text":896,"link":897},{"background":805,"textColor":806},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":898,"config":899},"Explore the standard",{"href":900,"dataGaName":901,"dataGaLocation":711},"/gitlab-security-standard/","gitlab security standard",{"text":903,"config":904},"Pricing",{"href":905,"dataGaName":906,"dataGaLocation":711,"dataNavLevelOne":906},"/pricing/","pricing",{"text":908,"config":909,"menu":911},"Resources",{"dataNavLevelOne":910},"resources",{"type":733,"link":912,"columns":916,"feature":978},{"text":913,"config":914},"View all resources",{"href":915,"dataGaName":910,"dataGaLocation":711},"/resources/",[917,950],{"title":918,"items":919},"Discover",[920,925,930,935,940,945],{"text":921,"config":922},"Docs",{"href":923,"dataGaName":924,"dataGaLocation":711},"https://docs.gitlab.com/","docs",{"text":926,"config":927},"University",{"href":928,"dataGaName":929,"dataGaLocation":711},"https://university.gitlab.com/","university",{"text":931,"config":932},"Demo Series",{"href":933,"dataGaName":934,"dataGaLocation":711},"/gitlab-technical-demo-series/","demo series",{"text":936,"config":937},"Demo Hub",{"href":938,"dataGaName":939,"dataGaLocation":711},"/demo-hub/","demo hub",{"text":941,"config":942},"Services",{"href":943,"dataGaName":944,"dataGaLocation":711},"/services/","services",{"text":946,"config":947},"Well Architected",{"href":948,"dataGaName":949,"dataGaLocation":711},"/resources/well-architected/","well architected",{"title":951,"items":952},"Connect",[953,958,963,968,973],{"text":954,"config":955},"Blog",{"href":956,"dataGaName":957,"dataGaLocation":711},"/blog/","blog",{"text":959,"config":960},"Community",{"href":961,"dataGaName":962,"dataGaLocation":711},"/community/","community",{"text":964,"config":965},"Customers",{"href":966,"dataGaName":967,"dataGaLocation":711},"/customers/","customers",{"text":969,"config":970},"Partners",{"href":971,"dataGaName":972,"dataGaLocation":711},"/partners/","partners",{"text":974,"config":975},"Events",{"href":976,"dataGaName":977,"dataGaLocation":711},"/events/","events",{"config":979,"title":980,"text":981,"link":982},{"background":805,"textColor":806},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":983,"config":984},"Read the latest",{"href":985,"dataGaName":986,"dataGaLocation":711},"/whats-new/","whats new",{"text":988,"config":989,"menu":991},"Company",{"dataNavLevelOne":990},"company",{"type":733,"columns":992},[993],{"items":994},[995,1000,1006,1011,1016,1021,1026,1031,1036],{"text":996,"config":997},"About",{"href":998,"dataGaName":999,"dataGaLocation":711},"/company/","about",{"text":1001,"config":1002,"footerGa":1005},"Jobs",{"href":1003,"dataGaName":1004,"dataGaLocation":711},"/jobs/","jobs",{"dataGaName":1004},{"text":1007,"config":1008},"Press",{"href":1009,"dataGaName":1010,"dataGaLocation":711},"/press/","press",{"text":1012,"config":1013},"Handbook",{"href":1014,"dataGaName":1015,"dataGaLocation":711},"https://handbook.gitlab.com/","handbook",{"text":1017,"config":1018},"Leadership",{"href":1019,"dataGaName":1020,"dataGaLocation":711},"/company/team/e-group/","leadership",{"text":1022,"config":1023},"Investor relations",{"href":1024,"dataGaName":1025,"dataGaLocation":711},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1027,"config":1028},"Trust Center",{"href":1029,"dataGaName":1030,"dataGaLocation":711},"/security/","trust center",{"text":1032,"config":1033},"AI Transparency Center",{"href":1034,"dataGaName":1035,"dataGaLocation":711},"/ai-transparency-center/","ai transparency center",{"text":1037,"config":1038},"Newsletter",{"href":1039,"dataGaName":1040,"dataGaLocation":711},"/company/contact/#contact-forms","newsletter",{"text":1042,"config":1043,"menu":1044},"Contact us",{"dataNavLevelOne":990},{"type":733,"columns":1045},[1046],{"items":1047},[1048,1053,1058],{"text":1049,"config":1050},"Talk to sales",{"href":1051,"dataGaName":1052,"dataGaLocation":711},"/sales/","talk to sales",{"text":1054,"config":1055},"Support portal",{"href":1056,"dataGaName":1057,"dataGaLocation":711},"https://support.gitlab.com/hc/en-us","support portal",{"text":1059,"config":1060},"Customer portal",{"href":1061,"dataGaName":1062,"dataGaLocation":711},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1064,"login":1065,"suggestions":1072},"Close",{"text":1066,"link":1067},"To search repositories and projects, login to",{"text":1068,"config":1069},"gitlab.com",{"href":725,"dataGaName":1070,"dataGaLocation":1071},"search login","search",{"text":1073,"default":1074},"Suggestions",[1075,1078,1081,1083,1087,1091],{"text":1076,"config":1077},"GitLab Duo Agent Platform",{"href":791,"dataGaName":1076,"dataGaLocation":1071},{"text":1079,"config":1080},"Code Suggestions (AI)",{"href":791,"dataGaName":1079,"dataGaLocation":1071},{"text":743,"config":1082},{"href":745,"dataGaName":743,"dataGaLocation":1071},{"text":1084,"config":1085},"GitLab on AWS",{"href":1086,"dataGaName":1084,"dataGaLocation":1071},"/partners/technology-partners/aws/",{"text":1088,"config":1089},"GitLab on Google Cloud",{"href":1090,"dataGaName":1088,"dataGaLocation":1071},"/partners/technology-partners/google-cloud-platform/",{"text":1092,"config":1093},"Why GitLab?",{"href":1094,"dataGaName":1092,"dataGaLocation":1071},"/why-gitlab/",{"freeTrial":1096,"mobileIcon":1101,"desktopIcon":1106,"secondaryButton":1109},{"text":1097,"config":1098},"Start free trial",{"href":1099,"dataGaName":716,"dataGaLocation":1100},"https://gitlab.com/-/trials/new/","nav",{"altText":1102,"config":1103},"Gitlab Icon",{"src":1104,"dataGaName":1105,"dataGaLocation":1100},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1102,"config":1107},{"src":1108,"dataGaName":1105,"dataGaLocation":1100},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1110,"config":1111},"Get Started",{"href":1112,"dataGaName":1113,"dataGaLocation":1100},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1115,"mobileIcon":1119,"desktopIcon":1121},{"text":1116,"config":1117},"Learn more about GitLab Duo",{"href":791,"dataGaName":1118,"dataGaLocation":1100},"gitlab duo",{"altText":1102,"config":1120},{"src":1104,"dataGaName":1105,"dataGaLocation":1100},{"altText":1102,"config":1122},{"src":1108,"dataGaName":1105,"dataGaLocation":1100},{"button":1124,"mobileIcon":1129,"desktopIcon":1131},{"text":1125,"config":1126},"/switch",{"href":1127,"dataGaName":1128,"dataGaLocation":1100},"#contact","switch",{"altText":1102,"config":1130},{"src":1104,"dataGaName":1105,"dataGaLocation":1100},{"altText":1102,"config":1132},{"src":1133,"dataGaName":1105,"dataGaLocation":1100},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1135,"mobileIcon":1140,"desktopIcon":1142},{"text":1136,"config":1137},"Back to pricing",{"href":905,"dataGaName":1138,"dataGaLocation":1100,"icon":1139},"back to pricing","GoBack",{"altText":1102,"config":1141},{"src":1104,"dataGaName":1105,"dataGaLocation":1100},{"altText":1102,"config":1143},{"src":1108,"dataGaName":1105,"dataGaLocation":1100},{"title":1145,"button":1146,"config":1150},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":810,"config":1147},{"href":812,"dataGaName":1148,"dataGaLocation":1149},"orbit-ga-banner","global-banner",{"layout":1151,"disabled":691},"release",{"data":1153},{"text":1154,"config":1155,"items":1160,"minimal":1388},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1156,"facebook":1157,"youtube":1158,"linkedin":1159},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1161,1209,1268,1315,1356],{"title":903,"links":1162,"subMenu":1178},[1163,1168,1173],{"text":1164,"config":1165},"View plans",{"href":905,"dataGaName":1166,"dataGaLocation":1167},"view plans","footer",{"text":1169,"config":1170},"Why Premium?",{"href":1171,"dataGaName":1172,"dataGaLocation":1167},"/pricing/premium/","why premium",{"text":1174,"config":1175},"Why Ultimate?",{"href":1176,"dataGaName":1177,"dataGaLocation":1167},"/pricing/ultimate/","why ultimate",[1179],{"title":1180,"links":1181},"Contact Us",[1182,1185,1187,1189,1194,1199,1204],{"text":1183,"config":1184},"Contact sales",{"href":1051,"dataGaName":721,"dataGaLocation":1167},{"text":1054,"config":1186},{"href":1056,"dataGaName":1057,"dataGaLocation":1167},{"text":1059,"config":1188},{"href":1061,"dataGaName":1062,"dataGaLocation":1167},{"text":1190,"config":1191},"Status",{"href":1192,"dataGaName":1193,"dataGaLocation":1167},"https://status.gitlab.com/","status",{"text":1195,"config":1196},"Terms of use",{"href":1197,"dataGaName":1198,"dataGaLocation":1167},"/terms/","terms of use",{"text":1200,"config":1201},"Privacy statement",{"href":1202,"dataGaName":1203,"dataGaLocation":1167},"/privacy/","privacy statement",{"text":1205,"config":1206},"Cookie preferences",{"dataGaName":1207,"dataGaLocation":1167,"id":1208,"isOneTrustButton":328},"cookie preferences","ot-sdk-btn",{"title":729,"links":1210,"subMenu":1226},[1211,1214,1216,1218,1220,1222],{"text":1212,"config":1213},"Explore the platform",{"href":737,"dataGaName":731,"dataGaLocation":1167},{"text":789,"config":1215},{"href":791,"dataGaName":792,"dataGaLocation":1167},{"text":743,"config":1217},{"href":745,"dataGaName":746,"dataGaLocation":1167},{"text":794,"config":1219},{"href":796,"dataGaName":797,"dataGaLocation":1167},{"text":776,"config":1221},{"href":778,"dataGaName":779,"dataGaLocation":1167},{"text":1223,"config":1224},"Why GitLab",{"href":1094,"dataGaName":1225,"dataGaLocation":1167},"why gitlab",[1227],{"title":1228,"links":1229},"Topics",[1230,1234,1239,1243,1248,1253,1258,1263],{"text":743,"config":1231},{"href":1232,"dataGaName":1233,"dataGaLocation":1167},"/topics/ci-cd/","cicd",{"text":1235,"config":1236},"GitOps",{"href":1237,"dataGaName":1238,"dataGaLocation":1167},"/topics/gitops/","gitops",{"text":740,"config":1240},{"href":1241,"dataGaName":1242,"dataGaLocation":1167},"/topics/devops/","devops",{"text":1244,"config":1245},"Version Control",{"href":1246,"dataGaName":1247,"dataGaLocation":1167},"/topics/version-control/","version control",{"text":1249,"config":1250},"DevSecOps",{"href":1251,"dataGaName":1252,"dataGaLocation":1167},"/topics/devsecops/","devsecops",{"text":1254,"config":1255},"Cloud Native",{"href":1256,"dataGaName":1257,"dataGaLocation":1167},"/topics/cloud-native/","cloud native",{"text":1259,"config":1260},"AI for Coding",{"href":1261,"dataGaName":1262,"dataGaLocation":1167},"/topics/devops/ai-for-coding/","ai for coding",{"text":1264,"config":1265},"Agentic AI",{"href":1266,"dataGaName":1267,"dataGaLocation":1167},"/topics/agentic-ai/","agentic ai",{"title":815,"links":1269},[1270,1273,1276,1279,1282,1285,1287,1289,1291,1293,1295,1298,1300,1303,1307,1311],{"text":1271,"config":1272},"DevOps modernization",{"href":830,"dataGaName":831,"dataGaLocation":1167},{"text":1274,"config":1275},"Security modernization",{"href":835,"dataGaName":836,"dataGaLocation":1167},{"text":1277,"config":1278},"AI modernization",{"href":840,"dataGaName":841,"dataGaLocation":1167},{"text":1280,"config":1281},"Financial services",{"href":866,"dataGaName":867,"dataGaLocation":1167},{"text":1283,"config":1284},"Public sector",{"href":871,"dataGaName":872,"dataGaLocation":1167},{"text":874,"config":1286},{"href":876,"dataGaName":877,"dataGaLocation":1167},{"text":879,"config":1288},{"href":881,"dataGaName":882,"dataGaLocation":1167},{"text":884,"config":1290},{"href":886,"dataGaName":887,"dataGaLocation":1167},{"text":889,"config":1292},{"href":891,"dataGaName":892,"dataGaLocation":1167},{"text":846,"config":1294},{"href":848,"dataGaName":849,"dataGaLocation":1167},{"text":1296,"config":1297},"Small business",{"href":853,"dataGaName":854,"dataGaLocation":1167},{"text":856,"config":1299},{"href":858,"dataGaName":859,"dataGaLocation":1167},{"text":1235,"config":1301},{"href":1302,"dataGaName":1238,"dataGaLocation":1167},"/solutions/gitops/",{"text":1304,"config":1305},"Software composition analysis",{"href":783,"dataGaName":1306,"dataGaLocation":1167},"software composition analysis",{"text":1308,"config":1309},"Value stream management",{"href":801,"dataGaName":1310,"dataGaLocation":1167},"value stream management",{"text":1312,"config":1313},"All solutions",{"href":822,"dataGaName":1314,"dataGaLocation":1167},"all solutions",{"title":908,"links":1316},[1317,1322,1327,1329,1331,1333,1335,1337,1339,1341,1343,1345,1347,1349,1352],{"text":1318,"config":1319},"Install",{"href":1320,"dataGaName":1321,"dataGaLocation":1167},"/install/","install",{"text":1323,"config":1324},"Quick start guides",{"href":1325,"dataGaName":1326,"dataGaLocation":1167},"/get-started/","quick setup checklists",{"text":921,"config":1328},{"href":923,"dataGaName":924,"dataGaLocation":1167},{"text":926,"config":1330},{"href":928,"dataGaName":929,"dataGaLocation":1167},{"text":931,"config":1332},{"href":933,"dataGaName":934,"dataGaLocation":1167},{"text":936,"config":1334},{"href":938,"dataGaName":939,"dataGaLocation":1167},{"text":941,"config":1336},{"href":943,"dataGaName":944,"dataGaLocation":1167},{"text":954,"config":1338},{"href":956,"dataGaName":957,"dataGaLocation":1167},{"text":959,"config":1340},{"href":961,"dataGaName":962,"dataGaLocation":1167},{"text":964,"config":1342},{"href":966,"dataGaName":967,"dataGaLocation":1167},{"text":969,"config":1344},{"href":971,"dataGaName":972,"dataGaLocation":1167},{"text":974,"config":1346},{"href":976,"dataGaName":977,"dataGaLocation":1167},{"text":1037,"config":1348},{"href":1039,"dataGaName":1040,"dataGaLocation":1167},{"text":1350,"config":1351},"What's new",{"href":985,"dataGaName":986,"dataGaLocation":1167},{"text":1353,"config":1354},"All resources",{"href":915,"dataGaName":1355,"dataGaLocation":1167},"all resources",{"title":988,"links":1357},[1358,1360,1362,1364,1366,1368,1370,1372,1374,1378,1383],{"text":996,"config":1359},{"href":998,"dataGaName":990,"dataGaLocation":1167},{"text":1001,"config":1361},{"href":1003,"dataGaName":1004,"dataGaLocation":1167},{"text":1007,"config":1363},{"href":1009,"dataGaName":1010,"dataGaLocation":1167},{"text":1012,"config":1365},{"href":1014,"dataGaName":1015,"dataGaLocation":1167},{"text":1017,"config":1367},{"href":1019,"dataGaName":1020,"dataGaLocation":1167},{"text":1022,"config":1369},{"href":1024,"dataGaName":1025,"dataGaLocation":1167},{"text":1027,"config":1371},{"href":1029,"dataGaName":1030,"dataGaLocation":1167},{"text":1032,"config":1373},{"href":1034,"dataGaName":1035,"dataGaLocation":1167},{"text":1375,"config":1376},"Sustainability",{"href":1377,"dataGaName":1375,"dataGaLocation":1167},"/sustainability/",{"text":1379,"config":1380},"Diversity, inclusion and belonging (DIB)",{"href":1381,"dataGaName":1382,"dataGaLocation":1167},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1384,"config":1385},"Modern Slavery Transparency Statement",{"href":1386,"dataGaName":1387,"dataGaLocation":1167},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1389},[1390,1393,1396],{"text":1391,"config":1392},"Terms",{"href":1197,"dataGaName":1198,"dataGaLocation":1167},{"text":1394,"config":1395},"Cookies",{"dataGaName":1207,"dataGaLocation":1167,"id":1208,"isOneTrustButton":328},{"text":1397,"config":1398},"Privacy",{"href":1202,"dataGaName":1203,"dataGaLocation":1167},[1400],{"id":1401,"title":1402,"body":690,"config":1403,"content":1405,"description":690,"extension":1409,"meta":1410,"navigation":328,"path":1411,"seo":1412,"stem":1413,"__hash__":1414},"blogAuthors/en-us/blog/authors/david-oregan.yml","David Oregan",{"template":1404},"BlogAuthor",{"name":7,"config":1406},{"headshot":1407,"ctfId":1408},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659853/Blog/Author%20Headshots/oregand-headshot.png","oregand","yml",{},"/en-us/blog/authors/david-oregan",{},"en-us/blog/authors/david-oregan","CX5gLc3Gs5FrmvpMNVkBtC5zRi3vj8l3wJGnW0iSa6Y",[1416,1424,1432],{"title":1417,"description":1418,"heroImage":1419,"category":686,"date":1420,"authors":1421,"slug":1423,"externalUrl":690},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1422],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1425,"description":1426,"heroImage":1427,"category":686,"date":1428,"authors":1429,"slug":1431,"externalUrl":690},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1430],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1433,"description":1434,"heroImage":1435,"category":686,"date":1436,"authors":1437,"slug":1439,"externalUrl":690},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1438],"Isa Huerga","co-create-h1-2026",{"header":1441,"text":1442,"button":1446,"disclaimer":1449},"Start your free\n\n30-day GitLab trial\n",[1443,1444,1445],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":713,"config":1447},{"href":1448,"dataGaName":716,"dataGaLocation":957},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1451,"blurb":1452,"button":1453,"secondaryButton":1458},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1454,"config":1455},"Get your free trial",{"href":1456,"dataGaName":716,"dataGaLocation":1457},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1183,"config":1459},{"href":1051,"dataGaName":721,"dataGaLocation":1457},1794911796144]