From e7b95ef74727ba4fa14cd806ad5282f419ad4e39 Mon Sep 17 00:00:00 2001 From: Yauhen Bichel Date: Tue, 13 Oct 2026 12:46:09 +0100 Subject: [PATCH] ci: add merge-cheer and the contributors wall Cheer on human merges with merge-cheer v1.9.0. Fill the README wall from readme-contributors v1.9.2 after each push to main. --- .github/workflows/celebrate-merge.yml | 12 ++++++++ .github/workflows/contributors.yml | 42 +++++++++++++++++++++++++++ README.md | 12 ++++++++ 3 files changed, 66 insertions(+) create mode 100644 .github/workflows/celebrate-merge.yml create mode 100644 .github/workflows/contributors.yml diff --git a/.github/workflows/celebrate-merge.yml b/.github/workflows/celebrate-merge.yml new file mode 100644 index 0000000..ad87460 --- /dev/null +++ b/.github/workflows/celebrate-merge.yml @@ -0,0 +1,12 @@ +name: Celebrate merge +on: + pull_request_target: + types: [closed] +permissions: + pull-requests: write +jobs: + celebrate: + if: github.event.pull_request.merged && github.event.pull_request.user.type != 'Bot' + runs-on: ubuntu-latest + steps: + - uses: YauhenBichel/merge-cheer@714c61072d0b5326deb8f334911d466ee33e2bb3 # v1.9.0 diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml new file mode 100644 index 0000000..8dc243e --- /dev/null +++ b/.github/workflows/contributors.yml @@ -0,0 +1,42 @@ +name: Contributors + +# The wall lives in readme-contributors as a reusable workflow and is written +# straight to main after every merge, with no separate pull request. +# +# It used to run on pull requests and push the refreshed wall to the PR +# branch. That loses people: a fork's pull request cannot run it, and a +# same-repository PR lands a wall computed before whatever merged ahead of it. +# MoleCare/molecare-mcp lost a contributor that way, in 44 seconds. A run on +# main after the merge sees every commit. +# +# main is protected, so the wall pushes through the write deploy key stored as +# CONTRIBUTORS_DEPLOY_KEY, the one bypass actor on the ruleset besides the +# owner. +# +# The key is passed by name, not with `secrets: inherit`: inherit only reaches +# a reusable workflow in the same organisation, and the wall lives under +# YauhenBichel, so inherit passed nothing and the push fell back to the +# workflow token, which the protected branch refuses. +# +# pull-requests: read lets the wall include people who only show up as +# merged PR authors. The reusable workflow cannot gain that scope unless +# the caller grants it. + +on: + push: + branches: [main] + schedule: + - cron: "11 5 * * 0" + workflow_dispatch: + +permissions: + contents: write + pull-requests: read + +jobs: + wall: + uses: YauhenBichel/readme-contributors/.github/workflows/wall.yml@3f3b442309052873cae16e7fce8a28f465a88768 # v1.9.2 + with: + format: html + secrets: + CONTRIBUTORS_DEPLOY_KEY: ${{ secrets.CONTRIBUTORS_DEPLOY_KEY }} diff --git a/README.md b/README.md index 054b4d5..78b535b 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,18 @@ privately as described in [SECURITY.md](SECURITY.md). > **Not a medical device.** This package draws a body diagram; it never says > what a count or a region means. It makes no clinical claim. +## Contributors + +Thank you to everyone who has helped @molecare/react-body-map. + + + + +The list is filled by [Contributors](./.github/workflows/contributors.yml) from +GitHub commits, bots omitted — never hand-maintained, because a stale list is +worse than none. [Contributor graph](https://github.com/MoleCare/react-body-map/graphs/contributors) · +[good first issue](https://github.com/MoleCare/react-body-map/labels/good%20first%20issue) + ## Licence [Apache-2.0](LICENSE) © MoleCare LTD