Open LeafHacker opened 4 years ago
Perhaps something like:
idea.project.settings {
issueLinks [
/([^\/# ]+)\/([^\/# ]+)#([0-9]+)/: 'https://github.com/$1/$2/issues/$3',
/\/([^\/# ]+)\/([^/# ]+)\/issues\/([0-9]+)/: 'https://github.com/$1/$2/issues/$3',
/#([0-9]+)/: 'https://github.com/org/project/issues/$1'
]
}
or
idea.project.settings {
issueLink(/([^\/# ]+)\/([^\/# ]+)#([0-9]+)/, 'https://github.com/$1/$2/issues/$3')
issueLink(/\/([^\/# ]+)\/([^/# ]+)\/issues\/([0-9]+)/, 'https://github.com/$1/$2/issues/$3')
issueLink(/#([0-9]+)/, 'https://github.com/org/project/issues/$1')
}
?
Implementing the configuration via editorconfig
might be slightly better: https://github.com/editorconfig/editorconfig/issues/426 as it would be consistent across IDEs
For example, I have the following in my
vcs.xml
but would like to configure it via gradle rather than unigorning.idea/vcs.xml