Merge ~sylvain-pineau/checkbox-core-snap:bumpversion_search_replace into checkbox-core-snap:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: de2bc154b4139a707b109cc990963d6bee7e166b
Merged at revision: af0f4026249af45f22a1c925336e0d56557a1dbd
Proposed branch: ~sylvain-pineau/checkbox-core-snap:bumpversion_search_replace
Merge into: checkbox-core-snap:master
Diff against target: 13 lines (+2/-0)
1 file modified
.bumpversion.cfg (+2/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+367456@code.launchpad.net

Description of the change

Restrict the version update to the version field to avoid erroneous commits.

See https://git.launchpad.net/checkbox-core-snap/commit/?id=03a09b3af45dddc9a2666c39403573a30d7600e1

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

tested locally with:

$ bumpversion minor --allow-dirty --list

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.bumpversion.cfg b/.bumpversion.cfg
2index 6a1b00f..07a03d9 100644
3--- a/.bumpversion.cfg
4+++ b/.bumpversion.cfg
5@@ -6,6 +6,8 @@ serialize =
6 {major}.{minor}
7
8 [bumpversion:file:snap/snapcraft.yaml]
9+search = version: '{current_version}'
10+replace = version: '{new_version}'
11
12 [bumpversion:part:release]
13 optional_value = RELEASE

Subscribers

People subscribed via source and target branches