From 1786e6c6bd05b84dd1589038ae80bfd36fbcac64 Mon Sep 17 00:00:00 2001 From: Cinzya Date: Sun, 21 Sep 2025 09:48:02 +0200 Subject: [PATCH 1/2] feat(comments): add automated comments for labeled pull requests to guide documentation updates --- .github/workflows/chore-pr-comments.yml | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/chore-pr-comments.yml diff --git a/.github/workflows/chore-pr-comments.yml b/.github/workflows/chore-pr-comments.yml new file mode 100644 index 000000000..472356b30 --- /dev/null +++ b/.github/workflows/chore-pr-comments.yml @@ -0,0 +1,43 @@ +name: Add comment based on label +on: + pull_request: + types: + - labeled +jobs: + add-comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + strategy: + matrix: + include: + - label: "⚙️ Service" + body: | + It appears to us that you are either adding a new service or making changes to an existing one. + We kindly ask you to also review and update the **Coolify Documentation** to include this new service or it's new configuration needs. + This will help ensure that our documentation remains accurate and up-to-date for all users. + + Coolify Docs Repository: https://github.com/coollabsio/coolify-docs + How to Contribute a new Service to the Docs: https://coolify.io/docs/get-started/contribute/service#adding-a-new-service-template-to-the-coolify-documentation + - label: "🛠️ Feature" + body: | + It appears to us that you are adding a new feature to Coolify. + We kindly ask you to also update the **Coolify Documentation** to include information about this new feature. + This will help ensure that our documentation remains accurate and up-to-date for all users. + + Coolify Docs Repository: https://github.com/coollabsio/coolify-docs + How to Contribute to the Docs: https://coolify.io/docs/get-started/contribute/documentation + # - label: "✨ Enhancement" + # body: | + # It appears to us that you are making an enhancement to Coolify. + # We kindly ask you to also review and update the Coolify Documentation to include information about this enhancement if applicable. + # This will help ensure that our documentation remains accurate and up-to-date for all users. + steps: + - name: Add comment + if: github.event.label.name == matrix.label + run: gh pr comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + BODY: ${{ matrix.body }} From 589abca775f0316622612b6a277b2c18fa926af9 Mon Sep 17 00:00:00 2001 From: Cinzya Date: Wed, 24 Sep 2025 11:45:34 +0200 Subject: [PATCH 2/2] feat(comments): ping PR author --- .github/workflows/chore-pr-comments.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/chore-pr-comments.yml b/.github/workflows/chore-pr-comments.yml index 472356b30..f20729346 100644 --- a/.github/workflows/chore-pr-comments.yml +++ b/.github/workflows/chore-pr-comments.yml @@ -13,6 +13,8 @@ jobs: include: - label: "⚙️ Service" body: | + Hi @${{ github.event.pull_request.user.login }}! 👋 + It appears to us that you are either adding a new service or making changes to an existing one. We kindly ask you to also review and update the **Coolify Documentation** to include this new service or it's new configuration needs. This will help ensure that our documentation remains accurate and up-to-date for all users. @@ -21,6 +23,8 @@ jobs: How to Contribute a new Service to the Docs: https://coolify.io/docs/get-started/contribute/service#adding-a-new-service-template-to-the-coolify-documentation - label: "🛠️ Feature" body: | + Hi @${{ github.event.pull_request.user.login }}! 👋 + It appears to us that you are adding a new feature to Coolify. We kindly ask you to also update the **Coolify Documentation** to include information about this new feature. This will help ensure that our documentation remains accurate and up-to-date for all users.