diff --git a/blog/2026-03-27-ado-pr-commit-after-merge/images/conventionalcommits.png b/blog/2026-03-27-ado-pr-commit-after-merge/images/conventionalcommits.png new file mode 100644 index 0000000..7f8068a Binary files /dev/null and b/blog/2026-03-27-ado-pr-commit-after-merge/images/conventionalcommits.png differ diff --git a/blog/2026-03-27-ado-pr-commit-after-merge/images/disablePrefixInADO.png b/blog/2026-03-27-ado-pr-commit-after-merge/images/disablePrefixInADO.png new file mode 100644 index 0000000..d627835 Binary files /dev/null and b/blog/2026-03-27-ado-pr-commit-after-merge/images/disablePrefixInADO.png differ diff --git a/blog/2026-03-27-ado-pr-commit-after-merge/images/featureRequest.png b/blog/2026-03-27-ado-pr-commit-after-merge/images/featureRequest.png new file mode 100644 index 0000000..0850d4c Binary files /dev/null and b/blog/2026-03-27-ado-pr-commit-after-merge/images/featureRequest.png differ diff --git a/blog/2026-03-27-ado-pr-commit-after-merge/images/manual.png b/blog/2026-03-27-ado-pr-commit-after-merge/images/manual.png new file mode 100644 index 0000000..15c32b5 Binary files /dev/null and b/blog/2026-03-27-ado-pr-commit-after-merge/images/manual.png differ diff --git a/blog/2026-03-27-ado-pr-commit-after-merge/index.mdx b/blog/2026-03-27-ado-pr-commit-after-merge/index.mdx new file mode 100644 index 0000000..e7e76e1 --- /dev/null +++ b/blog/2026-03-27-ado-pr-commit-after-merge/index.mdx @@ -0,0 +1,107 @@ +--- +title: "Merged PR 42: fix(Azure DevOps): Merge PR without prefix in commit message" +description: "Azure DevOps has recently added a new feature that allows you to remove the PR ID from the commit message after merging a pull request." +authors: [shpendkelmendi] +tags: [Azure DevOps, Conventional Commits, SemVer, Git, Pull Requests, DevOps] +image: ./images/conventionalcommits.png +--- + +import CenteredImage from '@site/src/components/Image'; + +
+ + + +I use Azure DevOps across many customer projects. I really like it. +One thing I didn't like is the message added to the beginning of the commit when you closed and merged your PR. +You can see it above in the image or in my title. Not so nice to read, right? I agree. + +## Why is this important? + +I like to have a clean commit history. +I like simple git graphs. +And I want to automate chores like deciding whether a new version is a patch, minor, or major increment. +That's why I like to use conventional commits which, enable semantic versioning (SemVer). + +Conventional commit is a simple and lightweight convention for your commit messages. +Here are some examples of conventional commit types and their impact on versioning: + +| Type | Example | Meaning | Version Impact | +|---------------|------------------------------------------------------------------------|-----------------------------------|---------------------------------------------| +| **feat** | `feat: login as guest with one-time passcode` | New feature | **Minor** → `1.0.0 → 1.1.0` | +| **fix** | `fix: correct device registration validation logic` | Bug fix | **Patch** → `1.0.0 → 1.0.1` | +| **chore** | `chore: update minor version` | Maintenance / small changes | **Patch** or **ignored** (config dependent) | +| **perf** | `perf: import up to 10 projects` | Performance improvement | **Patch** or **ignored** (config dependent) | +| **refactor!** | `refactor!: remove deprecated import endpoint` | Breaking change indicated with `!`| **Major** → `1.0.0 → 2.0.0` | + + +> If you need support writing conventional commits, try out [commitizen](https://commitizen-tools.github.io/commitizen/). + +The "Merged PR NUMBER" prefix added by Azure DevOps after merging a PR is not helpful. +So how can we fix this? Let's check our options. + +## Options for conventional commits + +I know three options when you want to use conventional commits with Azure DevOps. + +### Manually + +You can change the commit message by: + +1. Click on the **complete** button in your PR. +2. Click "**Customize merge commit message**". +3. Replace the commit message. + +