Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 5297439

Browse files
committed
final version
1 parent dbbb7f8 commit 5297439

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/signoff-review.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
AccessToken: ${{ secrets.GITHUB_TOKEN }}
2424
# For testing set to a little used folder as the only target
2525
MonitoredFolders: '[
26-
"ssms/solution/",
26+
"ssms/",
27+
"azure-data-studio/"
2728
]'
2829

2930
run: |
@@ -72,7 +73,7 @@ jobs:
7273
$GitHubHeaders.Add("Authorization","token $($AccessToken)")
7374
$GitHubHeaders.Add("User-Agent", "OfficeDocs")
7475

75-
$StatusHelpUrl = "https://review.learn.microsoft.com/en-us/office-authoring-guide/pr-criteria?branch=main"
76+
$StatusHelpUrl = "https://dev.azure.com/msft-skilling/Content/_wiki/wikis/Database%20Docs/2358/Partner-publishing-workflow-pilot"
7677
$StatusCheckName = "PR signed off by content team"
7778
$Status = @{}
7879
$Status.Add("context", $StatusCheckName)
@@ -92,8 +93,8 @@ jobs:
9293
$ApprovedRegex = "\s*$ApprovedString\s*"
9394

9495
$EscalationEmail = "[DB Docs Team](mailto:dbdocsprreviews@microsoft.com?subject=[PR%20REVIEW]%20Question%20on%20$GitHubRepoName%20PR%20$PrIssueNumber&body=$PrGitHubLink)"
95-
$NeedsContentTeamReviewMessage = "This PR will be reviewed and approved by the Database Docs team before merging. They will work with you and the PR review team to publish your changes. If you have any questions, please email $EscalationEmail . Thank you for working with us to improve content quality for our customers!"
96-
$CurrentlyInReviewMessage = "This PR is currently assigned to the Database Docs team for review. It must be reviewed and approved by the Database Docs team before merging. This is in addition to the more tactical review by our PR Review team. If you have any questions, please email $EscalationEmail . Thank you for working with us to improve content quality for our customers!"
96+
$NeedsContentTeamReviewMessage = "The content team will review this pr and work with you to publish your changes. Thank you for working with us to improve content quality for our customers!`n`n**To expedite your review**, please reach out to the content lead in your area or email the $EscalationEmail."
97+
$CurrentlyInReviewMessage = "This PR is currently assigned to the content team for review. It must be reviewed and approved by the content team before merging.`n`n**To expedite your review**, please reach out to the content lead in your area or email the $EscalationEmail."
9798
$AssignedReviewerMessage = "Assigning the pull request to @!!USER!! for review. #assign: !!USER!!"
9899
$CheckFailed = $False
99100

@@ -534,9 +535,6 @@ jobs:
534535
}
535536
ElseIf (($GitRequestEvent -eq "pull_request_target") -and (($GitHubAction -eq "opened") -or ($GitHubAction -eq "reopened") -or ($GitHubAction -eq "synchronize")))
536537
{
537-
# At the moment, this code block doesn't happen because we've commented out the
538-
# events at the top that would set things like pull request open to this code path.
539-
# Leave it in here in case we find a use for that in the future. It didn't offer any advantages in testing.
540538
Write-Host "Non-comment GitHub Event"
541539
Write-Host "Pull request action $GitHubAction. Setting sign off check to pending."
542540

@@ -848,4 +846,4 @@ jobs:
848846

849847
# Force the workflow to fail so the validation failure can be tracked in Actions. In this workflow, this has no effect other than logging the failure.
850848
Throw "User $CommentUser signed off but an unexpected error occurred. Please contact contact team to investigate the workflow. Sign off allowed to prevent blocking PRs."
851-
}
849+
}

0 commit comments

Comments
 (0)