Replies: 2 comments 3 replies
-
The variety is so big that we hardly can make a good guess for autolinking.Trying to pull the existing connections from some of services could work. But it doesn't look like we can avoid manual configuration (but we already have some, so probably we can use it). |
Beta Was this translation helpful? Give feedback.
-
I'd say the easiest path in this case is looking for a Jira-like issue code in the branch name ( It is not fail-proof, but I think it could be a pretty quick approach. I believe this is how it's implemented in the CLI, GKD and (maybe) GIJ (not entirely sure, I just know they look up for the Jira ticket in the PR title or description).
I guess that at least in a first iteration of this solution we would keep the first matching item. Not sure if
IMO it would be great if we could directly check that from other services, but I think even in GIJ they do something similar to this to link PRs to Jira tickets, right? I don't know if all support that. It would be great to gradually support it and transition from regexps. |
Beta Was this translation helpful? Give feedback.
-
We have a request to know the issue list of a branch. This knowledge gives us ability to add the linked issue(s) to the commit graph header (e.g. near to linked pull request button of current branch) and to the new home view. We thought on using name patterns similar to our existing autolinks that we use for searching issue info in commit messages, but we've faced with the list of issues.
(?(<group_name>/))<issue_key>(?(<any_space_symbol><any_escaped_additional_info>))
. Issue key may be alphanumeric (like"ISSUE-123"
in context of external linking such as Jira, or'gh-123'
in context of internal github linking), may be #-prefixed (like#123
in context of internal linking) and may be a simple numeric. So, usual expected branch names should looks like:It this concept it's easy to parse the issue key and link it, but:
1.1. What if the user adds some numeric notes the additional info, such as revision/version number etc.?
1.2. What if the user wants to mention multiple issues in one branch? I know, it may sound strange, but it's a possible case
Beta Was this translation helpful? Give feedback.
All reactions