Skip to content

The "Create GitHub draft release" stage depends on changelog update to be merged #19545

@daxian-dbw

Description

@daxian-dbw

Prerequisites

Steps to reproduce

The "Create GitHub draft release" stage depends on changelog update to be merged:

$filePath = "$env:BUILD_SOURCESDIRECTORY/CHANGELOG/$fileName"
Write-Verbose -Verbose "Selected Log file: $filePath"
if (-not (Test-Path $filePath)) {
throw "$filePath not found"
}
$changelog = Get-Content -Path $filePath
$startPattern = "^## \[" + ([regex]::Escape($releaseVersion)) + "\]"
$endPattern = "^## \[{0}\.{1}\.{2}*" -f $semanticVersion.Major, $semanticVersion.Minor, $semanticVersion.Patch

However, it doesn't call out this dependency in the release pipeline. Therefore, if you start to run this step without having the changelog update merged to the release branch, the "Create GitHub Draft release" job will fail.

Expected behavior

This dependency should be called out in the release -- maybe as an manual approval step, so that the one who drives the release can avoid running into failure in this step.

Actual behavior

This dependency is not called out in the pipeline.

Error details

No response

Environment data

N/A

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIn-PRIndicates that a PR is out for the issueResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions