File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919jobs :
2020 apply :
2121
22- uses : microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v18.0.4
22+ uses : microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v18.0.5
2323 secrets : inherit
Original file line number Diff line number Diff line change 3131
3232jobs :
3333 apply :
34- uses : microsoft/mu_devops/.github/workflows/Labeler.yml@v18.0.4
34+ uses : microsoft/mu_devops/.github/workflows/Labeler.yml@v18.0.5
3535 secrets : inherit
Original file line number Diff line number Diff line change 2525jobs :
2626 sync :
2727
28- uses : microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v18.0.4
28+ uses : microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v18.0.5
2929 secrets : inherit
Original file line number Diff line number Diff line change @@ -41,10 +41,21 @@ jobs:
4141 title
4242 }
4343 }
44- }')"
44+ }' --jq '.data.repository.pullRequest.title')"
45+
46+ comments="$(gh api "repos/${OWNER}/${REPO}/issues/${PR_NUMBER}/comments" --paginate --jq '.[].body')"
4547
4648 if [[ "${prTitle}" == *"Personal/"* ]]; then
47- gh pr comment $PR_URL --body "⚠️ Please add a meaningful PR title (remove the 'Personal/' prefix from the title)."
49+ if ! echo "${comments}" | grep -qF '<!-- pr-val-personal -->'; then
50+ gh pr comment $PR_URL --body "<!-- pr-val-personal -->⚠️ Please add a meaningful PR title (remove the 'Personal/' prefix from the title)."
51+ fi
52+ echo 'VALIDATION_ERROR=true' >> $GITHUB_ENV
53+ fi
54+
55+ if [[ "${prTitle}" == "Repo File Sync: synced file(s) with microsoft/mu_devops" ]]; then
56+ if ! echo "${comments}" | grep -qF '<!-- pr-val-sync-title -->'; then
57+ gh pr comment $PR_URL --body "<!-- pr-val-sync-title -->⚠️ Please add a meaningful PR title (update the default file sync title)."
58+ fi
4859 echo 'VALIDATION_ERROR=true' >> $GITHUB_ENV
4960 fi
5061
Original file line number Diff line number Diff line change 2525jobs :
2626 check :
2727
28- uses : microsoft/mu_devops/.github/workflows/Stale.yml@v18.0.4
28+ uses : microsoft/mu_devops/.github/workflows/Stale.yml@v18.0.5
2929 secrets : inherit
Original file line number Diff line number Diff line change 2020jobs :
2121 triage :
2222
23- uses : microsoft/mu_devops/.github/workflows/IssueTriager.yml@v18.0.4
23+ uses : microsoft/mu_devops/.github/workflows/IssueTriager.yml@v18.0.5
2424 secrets : inherit
You can’t perform that action at this time.
0 commit comments