From 9246ec34e19d9be57c9ed73f6d791da626d1450d Mon Sep 17 00:00:00 2001 From: Thomas Berdy Date: Thu, 8 Oct 2026 14:42:14 +0200 Subject: [PATCH] ci: treat LICENSE as a synced file LICENSE is now published here with each release, alongside the README, install.sh, skills and plugin manifests, and covers them under the same terms as the CLI. Edits made to it here would be overwritten by the next sync like the others: the synced-files check now rejects them, and AGENTS.md lists it with the synced files rather than with what this repository owns. The published files are under an all-rights-reserved notice now, so AGENTS.md stops inviting pull requests on them; suggestions stay welcome as issues. This repository is read by the CLI's users, so AGENTS.md and the CI comment describe where the published files come from without naming Mergify's internal repositories and tooling. Related to MRGFY-10081 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01APcJq6vzeBSUiFj63PYXhu Change-Id: I4fba0b4629b1f2d2a50fff26f4c599bacc273df2 --- .github/workflows/ci.yaml | 10 +++++----- AGENTS.md | 20 +++++++++----------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c43b955..c060b0ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,10 +15,10 @@ concurrency: cancel-in-progress: true jobs: - # The published files (see AGENTS.md) come from the CLI's private source, - # copied by ci-bot's public-releases-sync as of each release: an edit made - # here would be silently overwritten by the next sync. Only that sync's own - # pull requests may change them. + # The published files (see AGENTS.md) come from the CLI's source, copied by + # mergify-ci-bot as of each release: an edit made here would be silently + # overwritten by the next sync. Only that sync's own pull requests may + # change them. synced-files: name: synced files only change through the sync if: github.event.pull_request.user.login != 'mergify-ci-bot' @@ -34,7 +34,7 @@ jobs: run: | set -euo pipefail changed="$(git diff --name-only "${BASE_SHA}...HEAD" -- \ - README.md install.sh skills .claude-plugin .codex-plugin assets)" + README.md install.sh skills .claude-plugin .codex-plugin assets LICENSE)" if [ -n "${changed}" ]; then for file in ${changed}; do echo "::error file=${file}::${file} is published from the CLI's source and synced here at each release; edit it there (see AGENTS.md)" diff --git a/AGENTS.md b/AGENTS.md index 4fb97c90..a1766973 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,15 +1,14 @@ # Agent Instructions This repository is the public home of the `mergify` CLI. It doesn't hold the -CLI's source: the CLI is developed, built and released from Mergify's private -monorepo, and so are the files this repository publishes. +CLI's source: Mergify develops, builds and releases the CLI elsewhere, along +with the files this repository publishes. ## Published files: don't edit them here -These are copied from the CLI's source (`cli/` in the private monorepo) as of -the Latest release, by a pull request from `mergify-ci-bot` (branch -`public-files-sync`) that ci-bot's `public-releases-sync` opens whenever they -differ: +These are copied from the CLI's source as of the Latest release, by a pull +request from `mergify-ci-bot` (branch `public-files-sync`), opened whenever +they differ: | Here | What it is | |---|---| @@ -17,17 +16,16 @@ differ: | `install.sh` | the installer, served from `main` to `curl … \| sh` | | `skills/` | the agent skills (`npx skills add Mergifyio/mergify-cli`) | | `.claude-plugin/`, `.codex-plugin/`, `assets/` | the plugin manifests and icon | +| `LICENSE` | the license covering the CLI and these files | A change made to them here is overwritten by the next sync, so CI's `synced-files` check fails any pull request that edits them, unless it comes -from `mergify-ci-bot`. Suggestions are welcome as issues, or as pull requests -that Mergify carries over to the CLI's source. +from `mergify-ci-bot`. Suggestions are welcome as issues. ## Owned here -- `.github/workflows/ci.yaml`, `.mergify.yml`, `renovate.json`, - this `AGENTS.md` and `LICENSE`. -- The releases, written by ci-bot's mirror, never by hand. A release carrying +- `.github/workflows/ci.yaml`, `.mergify.yml`, `renovate.json` and this `AGENTS.md`. +- The releases, published by `mergify-ci-bot`, never by hand. A release carrying the CLI binaries is Latest, which install.sh, `mergify self-update`, the Homebrew tap and the docs' CLI reference all follow. - The issue tracker.