From d4091b77fa26cbb437c335faa00d1a4dbe25fb62 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 07:31:14 +0000 Subject: [PATCH 1/2] Initial plan From e045b0b1db9f9e8831af6332ec80f26aa81e71ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 07:33:32 +0000 Subject: [PATCH 2/2] feat: only post dry-run PR comment when TASKS.md changes and edit in place Co-authored-by: jack-champagne <43344745+jack-champagne@users.noreply.github.com> --- action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 67efccd..c912310 100644 --- a/action.yml +++ b/action.yml @@ -112,6 +112,13 @@ runs: exit 0 fi + # Only comment when the tasks file was changed in this PR + if ! gh pr diff "${{ github.event.pull_request.number }}" --name-only \ + | grep -qxF "${{ inputs.tasks-file }}"; then + echo "Tasks file not changed in this PR; skipping comment." + exit 0 + fi + CREATED=$(python3 -c "import json; print(json.load(open('/tmp/tasksmd-sync-result.json'))['created'])") UPDATED=$(python3 -c "import json; print(json.load(open('/tmp/tasksmd-sync-result.json'))['updated'])") ARCHIVED=$(python3 -c "import json; print(json.load(open('/tmp/tasksmd-sync-result.json'))['archived'])") @@ -128,4 +135,5 @@ runs: > This is a preview. Changes will be applied when merged to main." - gh pr comment "${{ github.event.pull_request.number }}" --body "$BODY" + gh pr comment "${{ github.event.pull_request.number }}" \ + --body "$BODY" --edit-last --create-if-none