-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(release notes): be able to fetch release notes from Azure DevOps #19136
feat(release notes): be able to fetch release notes from Azure DevOps #19136
Conversation
Co-authored-by: Rhys Arkins <[email protected]>
Co-authored-by: HonkingGoose <[email protected]>
export type ChangeLogError = | ||
| 'MissingGithubToken' | ||
| 'MissingGitlabToken' | ||
| 'MissingAzureToken'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rarkins I think we can join to single MissingToken
error ?
{ | ||
version: '4.33.0', | ||
gitRef: '4.33.0', | ||
} as ChangeLogRelease |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} as ChangeLogRelease | |
} satisfies ChangeLogRelease |
{ | ||
version: '4.33.0', | ||
gitRef: '4.33.0', | ||
} as ChangeLogRelease |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} as ChangeLogRelease | |
} satisfies ChangeLogRelease |
} as ChangeLogRelease | ||
); | ||
|
||
expect(res).toMatchSnapshot({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(res).toMatchSnapshot({ | |
expect(res).toMatchObject({ |
await getChangeLogJSON({ | ||
...upgrade, | ||
}) | ||
).toMatchSnapshot({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
).toMatchSnapshot({ | |
).toMatchObject({ |
await getChangeLogJSON({ | ||
...upgrade, | ||
}) | ||
).toMatchSnapshot({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
).toMatchSnapshot({ | |
).toMatchObject({ |
import { ensureTrailingSlash } from '../../../../../../util/url'; | ||
import type { ChangeLogFile } from '../types'; | ||
|
||
export const id = 'azure-changelog'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why exporting?
const url = `${ensureTrailingSlash( | ||
endpoint | ||
)}git/repositories/${urlEncodedRepo}/refs?filter=tags&$top=100&api-version=7.0`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use joinUrlParts
helper to concat url parts
); | ||
} | ||
|
||
return tags.map((tag) => tag.name).filter(Boolean); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return tags.map((tag) => tag.name).filter(Boolean); | |
return tags.map((tag) => tag.name).filter(is.string); |
Please read our devel best practices renovate/docs/development/best-practices.md Lines 1 to 2 in ca66ada
|
This comment was marked as spam.
This comment was marked as spam.
@sch1ldkr0ete @viceice Hi! Is there some way we can progress this and get it merged? It is a really important change for our organization since we deploy a lot of internal packages via Azure private feeds. |
🤷♂️ it's not marked to be reviewed again. we don't monitor for changes. so the author needs to use the GitHub request review feature. @sorensenmatias feel free to open a new PR with the requested changes to continue. |
Sorry! This got out of my focus. I will process the requested changes this week. |
That would be fantastic! Thank you. |
@sch1ldkr0ete - these may be of interest. I recently refactored the changelog module #23076 in preparation for adding new changelog sources, eg: Bitbucket Cloud #22094 |
@sch1ldkr0ete I noticed that this PR seems to still have some review comments from @viceice Do you expect to have time to resume work on the PR? |
Closing due to inactivity, PR would be welcome again |
Changes
Add support for fetching release notes from Azure DevOps. (Just for markdown saved in the source repo, release lists are pretty special in Azure DevOps.)
Context
Closes #18324
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: