Skip to content

Commit

Permalink
Add a 'needs documentation' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 3, 2024
1 parent 2fc77f1 commit aeda9d3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -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"
}'

0 comments on commit aeda9d3

Please sign in to comment.