diff --git a/README.md b/README.md index 85c583feb40..d013b49c7f9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Azure Developer CLI - +Test changes Latest (daily) builds: | Package | Version | Download | diff --git a/cli/test.txt b/cli/test.txt new file mode 100644 index 00000000000..30d74d25844 --- /dev/null +++ b/cli/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/eng/pipelines/build-notice.yml b/eng/pipelines/build-notice.yml index 36a410389c9..be52824627f 100644 --- a/eng/pipelines/build-notice.yml +++ b/eng/pipelines/build-notice.yml @@ -1,3 +1,5 @@ +# test change + pr: branches: include: [main] diff --git a/eng/scripts/Update-PRComment.ps1 b/eng/scripts/Update-PRComment.ps1 index c1e16b7658f..77932595196 100644 --- a/eng/scripts/Update-PRComment.ps1 +++ b/eng/scripts/Update-PRComment.ps1 @@ -11,22 +11,33 @@ if ($Tag) { # paginated result set returning on a single line with no clear separating # sequence (i.e. "[{...}, {...}][{...},{...}]"). The result without --jq is # not parsable JSON because of the "][" sequence without a wrapping array. + Write-Host @" +gh api ` + repos/$Repo/issues/$PrNumber/comments ` + --paginate ` + --jq '.[]' +"@ + $commentsJsonRows = gh api ` repos/$Repo/issues/$PrNumber/comments ` --paginate ` --jq '.[]' - $comments = @() - foreach ($row in $commentsJsonRows) { - $comments +=@( ConvertFrom-Json $row ) - } - Write-Host "Comments found: $($comments.Length)" + if ($commentsJsonRows) { + $comments = @() + foreach ($row in $commentsJsonRows) { + $comments +=@( ConvertFrom-Json $row ) + } - $commentsToErase = $comments.Where({ $_.body.Contains($Tag) }) - foreach ($comment in $commentsToErase) { - Write-Host "Deleting previous tagged comment $($comment.id)" - gh api --method DELETE "repos/$Repo/issues/comments/$($comment.id)" + Write-Host "Comments found: $($comments.Length)" + + $commentsToErase = $comments.Where({ $_.body.Contains($Tag) }) + foreach ($comment in $commentsToErase) { + Write-Host "Deleting previous tagged comment $($comment.id)" + gh api --method DELETE "repos/$Repo/issues/comments/$($comment.id)" + } } + } Write-Host "Posting comment" diff --git a/ext/vscode/test.txt b/ext/vscode/test.txt new file mode 100644 index 00000000000..30d74d25844 --- /dev/null +++ b/ext/vscode/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/generators/repo/test.txt b/generators/repo/test.txt new file mode 100644 index 00000000000..30d74d25844 --- /dev/null +++ b/generators/repo/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file