)]}' { "commit": "5fead5408393b4a0d73b9c303609cbdd2953080e", "tree": "dddf1466f00b18d044225bbfeba06a0666689b48", "parents": [ "18087d902f48b5a939acb48005fbfbd9f865d1b5" ], "author": { "name": "Youssef Elghareeb", "email": "ghareeb@google.com", "time": "Wed Jan 18 13:53:38 2023 +0100" }, "committer": { "name": "Youssef Elghareeb", "email": "ghareeb@google.com", "time": "Wed Jan 18 15:09:34 2023 +0100" }, "message": "Migrate label fns to SRs: Adapt logic for \u0027branch\u0027 label attribute\n\nIf the label definition contained a \u0027branch\u0027 field, the label was only\napplicable and voteable on these specific branches (see [1]).\n\nAdapting the label fns to SRs migrator logic to handle this case: add an\nOR\u0027ed `applicableIf` expression to the SR of all branches occurring in\nthe label def. This should also work with branches with regex ref\npattern.\n\n[1]\nhttps://gerrit-review.googlesource.com/Documentation/config-labels.html#label_branch\n\nGoogle-Bug-Id: b/264859003\nRelease-Notes: skip\nChange-Id: I8ddd6111079744e021d069df09e5e8c51752aa0e\n", "tree_diff": [ { "type": "modify", "old_id": "491b5cd4ce2bb9486d71c2b33e98eeebf2025a23", "old_mode": 33188, "old_path": "java/com/google/gerrit/server/schema/MigrateLabelFunctionsToSubmitRequirement.java", "new_id": "f3c741f58edfa62b5e55d8da39dbef3ddca7af38", "new_mode": 33188, "new_path": "java/com/google/gerrit/server/schema/MigrateLabelFunctionsToSubmitRequirement.java" }, { "type": "modify", "old_id": "74bfe0fb5ba5876cb991060331149be558f8a63c", "old_mode": 33188, "old_path": "javatests/com/google/gerrit/acceptance/pgm/MigrateLabelFunctionsToSubmitRequirementIT.java", "new_id": "9d37497b10d4d6569c21755ea7cb666d713a91cd", "new_mode": 33188, "new_path": "javatests/com/google/gerrit/acceptance/pgm/MigrateLabelFunctionsToSubmitRequirementIT.java" } ] }