From b003b0f686cbb349853b78c277d6182be6f0c3df Mon Sep 17 00:00:00 2001 From: Juan Molteni Date: Fri, 3 Apr 2026 07:29:09 -0300 Subject: [PATCH] Add PR merge alignment reminder (vanilla curl) Adds a GitHub Action using plain curl instead of actions/github-script to comment on newly opened PRs with a merge coordination reminder. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pr-merge-reminder.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-merge-reminder.yml diff --git a/.github/workflows/pr-merge-reminder.yml b/.github/workflows/pr-merge-reminder.yml new file mode 100644 index 0000000..ce0bba5 --- /dev/null +++ b/.github/workflows/pr-merge-reminder.yml @@ -0,0 +1,24 @@ +name: PR Merge Alignment Reminder + +on: + pull_request: + types: [opened] + +jobs: + add-reminder-comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add merge alignment reminder + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: | + curl -s -X POST \ + -H "Authorization: Bearer $GH_TOKEN" \ + -H "Accept: application/vnd.github+v3+json" \ + "https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/comments" \ + -d '{ + "body": "## 🔗 Merge Alignment Reminder\n\nIf this PR targets `main`, please make sure the corresponding changes in **[unity-explorer](https://github.com/decentraland/unity-explorer/)** are also ready to merge.\n\nBoth repos should be merged in coordination to avoid breaking changes. **Do not merge one without the other being ready.**" + }'