Skip to content
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

Closed

Conversation

sch1ldkr0ete
Copy link
Contributor

@sch1ldkr0ete sch1ldkr0ete commented Nov 28, 2022

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])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

sch1ldkr0ete and others added 2 commits December 19, 2022 10:54
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
@sch1ldkr0ete sch1ldkr0ete requested review from rarkins and removed request for JamieMagee January 18, 2023 15:49
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
Comment on lines 36 to 39
export type ChangeLogError =
| 'MissingGithubToken'
| 'MissingGitlabToken'
| 'MissingAzureToken';
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} as ChangeLogRelease
} satisfies ChangeLogRelease

{
version: '4.33.0',
gitRef: '4.33.0',
} as ChangeLogRelease
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} as ChangeLogRelease
} satisfies ChangeLogRelease

} as ChangeLogRelease
);

expect(res).toMatchSnapshot({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expect(res).toMatchSnapshot({
expect(res).toMatchObject({

await getChangeLogJSON({
...upgrade,
})
).toMatchSnapshot({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
).toMatchSnapshot({
).toMatchObject({

await getChangeLogJSON({
...upgrade,
})
).toMatchSnapshot({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
).toMatchSnapshot({
).toMatchObject({

import { ensureTrailingSlash } from '../../../../../../util/url';
import type { ChangeLogFile } from '../types';

export const id = 'azure-changelog';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why exporting?

Comment on lines 22 to 24
const url = `${ensureTrailingSlash(
endpoint
)}git/repositories/${urlEncodedRepo}/refs?filter=tags&$top=100&api-version=7.0`;
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return tags.map((tag) => tag.name).filter(Boolean);
return tags.map((tag) => tag.name).filter(is.string);

@viceice
Copy link
Member

viceice commented Jan 23, 2023

Please read our devel best practices

# Best practices

@rarkins rarkins marked this pull request as draft March 4, 2023 11:14
@sorensenmatias

This comment was marked as spam.

@sorensenmatias
Copy link

@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.

@viceice
Copy link
Member

viceice commented Jun 26, 2023

🤷‍♂️ 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.

@sch1ldkr0ete
Copy link
Contributor Author

Sorry! This got out of my focus. I will process the requested changes this week.

@sorensenmatias
Copy link

That would be fantastic! Thank you.

@setchy
Copy link
Collaborator

setchy commented Jul 3, 2023

@sch1ldkr0ete - these may be of interest. I recently refactored the changelog module #23076 in preparation for adding new changelog sources, eg: Bitbucket Cloud #22094

@rarkins
Copy link
Collaborator

rarkins commented Sep 23, 2023

@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?

@rarkins
Copy link
Collaborator

rarkins commented Sep 26, 2023

Closing due to inactivity, PR would be welcome again

@rarkins rarkins closed this Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support changelogs from Azure DevOps
6 participants