-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Azure Devops #119
Comments
I would prefer to not add a new option and instead improve the algorithm to detect Azure URLs and generate |
That's fair. The only reason I suggested to do it through changelogContext, was because simply detecting and extending |
Can you provide an example of the edge case you are talking about? Like in which case we won't be able to determine all the values for |
Closing as no answer was provided |
@pvdlg Is there any plan to add support to azure DevOps? the <host> will usually be <organization>.visualstudio.com. also ssh format is a bit different: edit: module.export = {
...,
plugins: [
...,
['@semantic-release/release-notes-generator', {
preset: 'angular',
writerOpts: {
finalizeContext: function(context) {
return {
...context,
repository: null,
repoUrl: '<host>/<owner>',
commit: '_git/<repository>/commit',
issue: '_workitems/edit'
};
}
}
}]
]
} |
@pvdlg default issue link format isn't suitable for Azure DevOps, because issues there don't belong to repositories. |
ronnetzer's solution didn't work for me. I also tried setting
This could be because I am using What did work was adding
Note that I still need that By the way, expressions like
|
For me solution from @nausaf didn't work either. The one I came up with:
|
@pvdlg Could this issue be reopen ? Given solutions require a shareable configuration or |
Hi
I'm using
semantic-release
with GIT on Azure Devops (not my choice).Unfortunately Azure Devops is not covered by
hosts-config.js
and I have to adjust urls for issues and commits, because Azure Devops isn't following the normal url pattern - see this.In order to do this I've tried using custom partials in
writerOpts
, but I have a few cases where this is not enough. If however I could modify the context (not justfinalizeContext
), I could make everything work correctly.So my suggestion is to make it possible to provide changelogContext through Options, in order to handle edge cases, where
hosts-config.js
isn't covering.Something like this:
I will gladly provide a pull request, if you agree with the need for this.
All the best!
The text was updated successfully, but these errors were encountered: