From ce6f694f0a13ebc724e6055e52d433949e5a1a4b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:02:19 +0000 Subject: [PATCH 1/5] Initial plan From 87b17e6cc277d9b5164a63f2c2f8c70f5569b303 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:03:51 +0000 Subject: [PATCH 2/5] Add non-blocking GitHub Actions workflow to warn when ADO PR pipeline YAML changes Co-authored-by: saurabhrb <32964911+saurabhrb@users.noreply.github.com> --- .../ado-pipeline-yaml-pr-warning.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ado-pipeline-yaml-pr-warning.yml diff --git a/.github/workflows/ado-pipeline-yaml-pr-warning.yml b/.github/workflows/ado-pipeline-yaml-pr-warning.yml new file mode 100644 index 00000000..0e1c2af9 --- /dev/null +++ b/.github/workflows/ado-pipeline-yaml-pr-warning.yml @@ -0,0 +1,36 @@ +name: Warn when ADO PR pipeline YAML changes + +on: + pull_request: + paths: + - ".azdo/ci-pr.yaml" + +permissions: + contents: read + +jobs: + warn: + runs-on: ubuntu-latest + steps: + - name: Emit warning in logs + run: | + echo "::warning file=.azdo/ci-pr.yaml::This PR changes .azdo/ci-pr.yaml. After merge, Azure DevOps may disable/require approval for the PR pipeline YAML until it is re-enabled/approved." + + echo "ADO pipeline: DV-Python-SDK-PullRequest (definitionId=29922)" + echo "https://dev.azure.com/dynamicscrm/OneCRM/_build?definitionId=29922" + + - name: Add workflow summary + run: | + { + echo "## ADO PR pipeline YAML change detected" + echo "" + echo "**File changed:** \`.azdo/ci-pr.yaml\`" + echo "" + echo "**Why this matters:** After this is merged, Azure DevOps may disable/require approval for the PR pipeline YAML." + echo "" + echo "**Action required (post-merge):** Re-enable / approve the updated YAML for:" + echo "- **DV-Python-SDK-PullRequest** (definitionId=29922)" + echo "- https://dev.azure.com/dynamicscrm/OneCRM/_build?definitionId=29922" + echo "" + echo "Then trigger a run to confirm PR validation works." + } >> "$GITHUB_STEP_SUMMARY" From f5fd2abcaec65c091aed6f3a106d19fc8e3043d0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:13:23 +0000 Subject: [PATCH 3/5] Rename workflow: Warn - Check ADO pipeline settings when PR updates ADO pipeline YAML Co-authored-by: saurabhrb <32964911+saurabhrb@users.noreply.github.com> --- .github/workflows/ado-pipeline-yaml-pr-warning.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ado-pipeline-yaml-pr-warning.yml b/.github/workflows/ado-pipeline-yaml-pr-warning.yml index 0e1c2af9..c7512bbf 100644 --- a/.github/workflows/ado-pipeline-yaml-pr-warning.yml +++ b/.github/workflows/ado-pipeline-yaml-pr-warning.yml @@ -1,4 +1,4 @@ -name: Warn when ADO PR pipeline YAML changes +name: Warn - Check ADO pipeline settings when PR updates ADO pipeline YAML on: pull_request: From 82440d83eeb7589bc1bf03fa6f54dfa56ac9ae24 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:39:29 +0000 Subject: [PATCH 4/5] Add resolvable PR review comment step for ADO pipeline YAML warning Co-authored-by: saurabhrb <32964911+saurabhrb@users.noreply.github.com> --- .../ado-pipeline-yaml-pr-warning.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ado-pipeline-yaml-pr-warning.yml b/.github/workflows/ado-pipeline-yaml-pr-warning.yml index c7512bbf..5f74e5d8 100644 --- a/.github/workflows/ado-pipeline-yaml-pr-warning.yml +++ b/.github/workflows/ado-pipeline-yaml-pr-warning.yml @@ -7,6 +7,7 @@ on: permissions: contents: read + pull-requests: write jobs: warn: @@ -34,3 +35,21 @@ jobs: echo "" echo "Then trigger a run to confirm PR validation works." } >> "$GITHUB_STEP_SUMMARY" + + - name: Post resolvable PR review comment + env: + GH_TOKEN: ${{ github.token }} + run: | + jq -n \ + --arg sha "${{ github.event.pull_request.head.sha }}" \ + '{ + path: ".azdo/ci-pr.yaml", + subject_type: "file", + commit_id: $sha, + body: "> [!WARNING]\n> **ADO PR pipeline YAML change detected**\n>\n> This PR modifies `.azdo/ci-pr.yaml`. After merge, Azure DevOps may disable or require approval for the PR validation pipeline.\n>\n> **Action required (post-merge):** Re-enable / approve the updated YAML for:\n> - **DV-Python-SDK-PullRequest** (definitionId=29922)\n> - https://dev.azure.com/dynamicscrm/OneCRM/_build?definitionId=29922\n>\n> Please resolve this comment after completing the post-merge steps." + }' | \ + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments \ + --input - From d9b09682d1380b8c243722bd0259a5d51aee0d96 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:47:40 +0000 Subject: [PATCH 5/5] Rename workflow to 'Warn when ADO pipeline YAML file changes' Co-authored-by: saurabhrb <32964911+saurabhrb@users.noreply.github.com> --- .github/workflows/ado-pipeline-yaml-pr-warning.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ado-pipeline-yaml-pr-warning.yml b/.github/workflows/ado-pipeline-yaml-pr-warning.yml index 5f74e5d8..b095f6f0 100644 --- a/.github/workflows/ado-pipeline-yaml-pr-warning.yml +++ b/.github/workflows/ado-pipeline-yaml-pr-warning.yml @@ -1,4 +1,4 @@ -name: Warn - Check ADO pipeline settings when PR updates ADO pipeline YAML +name: Warn when ADO pipeline YAML file changes on: pull_request: