Allow disabling of "auto create label if none exists" behaviour
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
From this comment #415036 (comment 1649485189) in #415036 (closed):
I feel like our API should not be auto-creating labels if they don't exist.
I don't think this behavior is even documented. But this behavior has been in the codebase for so long that users probably depend on this already.
🤔
- Introduce an argument
force_new_label_creationwhich defaults totrue(which preserves the current behaviour) but can be set tofalse - Add a breaking change entry to https://docs.gitlab.com/ee/api/rest/deprecations.html so we can ensure we change the default behaviour for REST v5.
Edited by 🤖 GitLab Bot 🤖