(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func Test_removeMainlineBlurb(t *testing.T) { |
| 15 | t.Parallel() |
| 16 | |
| 17 | tests := []struct { |
| 18 | name string |
| 19 | body string |
| 20 | want string |
| 21 | }{ |
| 22 | { |
| 23 | name: "NoMainlineBlurb", |
| 24 | body: `## Changelog |
| 25 | |
| 26 | ### Chores |
| 27 | |
| 28 | - Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs) |
| 29 | |
| 30 | Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2) |
| 31 | |
| 32 | ## Container image |
| 33 | |
| 34 | - ` + "`" + `docker pull ghcr.io/coder/coder:v2.10.2` + "`" + ` |
| 35 | |
| 36 | ## Install/upgrade |
| 37 | |
| 38 | Refer to our docs to [install](https://coder.com/docs/install) or [upgrade](https://coder.com/docs/admin/upgrade) Coder, or use a release asset below. |
| 39 | `, |
| 40 | want: `## Changelog |
| 41 | |
| 42 | ### Chores |
| 43 | |
| 44 | - Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs) |
| 45 | |
| 46 | Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2) |
| 47 | |
| 48 | ## Container image |
| 49 | |
| 50 | - ` + "`" + `docker pull ghcr.io/coder/coder:v2.10.2` + "`" + ` |
| 51 | |
| 52 | ## Install/upgrade |
| 53 | |
| 54 | Refer to our docs to [install](https://coder.com/docs/install) or [upgrade](https://coder.com/docs/admin/upgrade) Coder, or use a release asset below. |
| 55 | `, |
| 56 | }, |
| 57 | { |
| 58 | name: "WithMainlineBlurb", |
| 59 | body: `## Changelog |
| 60 | |
| 61 | > [!NOTE] |
| 62 | > This is a mainline Coder release. We advise enterprise customers without a staging environment to install our [latest stable release](https://github.com/coder/coder/releases/latest) while we refine this version. Learn more about our [Release Schedule](https://coder.com/docs/install/releases). |
| 63 | |
| 64 | ### Chores |
| 65 | |
| 66 | - Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs) |
| 67 | |
| 68 | Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2) |
| 69 | |
| 70 | ## Container image |
| 71 |
nothing calls this directly
no test coverage detected