From aeda9d3d8a964a1bcd1e89ad0986f79d4022ec63 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Wed, 3 Jan 2024 12:38:13 +0700 Subject: [PATCH] Add a 'needs documentation' workflow --- .github/workflows/documentation.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..64398cfd --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,27 @@ +--- +name: 📜 Documentation +on: + pull_request_target: + types: + - closed + - labeled +jobs: + backport: + runs-on: ubuntu-latest + name: Create documentation task + if: contains(github.event.pull_request.labels.*.name, 'needs documentation') + steps: + - name: Create task + run: | + curl -i -X POST \ + 'https://api.clickup.com/api/v2/list/900400532890/task' \ + -H 'Authorization: ${{ secrets.CLICKUP_TOKEN}}' \ + -H 'Content-Type: application/json' \ + -d '{ + "name": "${{ github.context.payload.pull_request.title }}", + "description": "Coming from pull request ${{ github.context.payload.pull_request.url }}", + "tags": [ + "qfield" + ], + "status": "Open" + }'