Open guibranco opened 1 day ago
Hello @guibranco, you have reached your request limit of 5, your cycle will refresh on 2024-09-21 10:07:38+00:00. Consider subscribing if you want more requests. If you have any questions or concerns, please contact us at info@gitauto.ai.
Description:
We need to implement a method that extracts the GitHub issue number from branch names. GitHub issue numbers are numerical and may or may not be prefixed with the word
issue
. The implementation should handle branch names that use different formats and consistently return the issue number, if present.Acceptance Criteria:
issue
before the issue number (e.g.,feature/issue123-fix-bug
).bugfix/123-fix-crash
).issue
in upper, lower, or mixed case (e.g.,ISSUE
,Issue
, etc.).feature/
,bugfix/
,hotfix/
, etc.).Branch Name Examples:
The feature should correctly extract the issue number from the following branch names:
feature/123-duplicated-schedule-in-payment-lock
→123
bugfix/456-fix-login-bug
→456
feature/issue123-payment-lock-bug
→123
hotfix/789-fix-urgent-crash
→789
Proposed Solution:
issue
prefix in any case (e.g.,issue
,ISSUE
, etc.).Technical Details:
Regex.Match
).issue
prefixes and extract only the numerical portion of the issue number.