A Github Action to update ClickUp task status from Pull Requests
Required The status to set the ClickUp task. Default "review"
.
Required Your Github Auth Token.
Required Your ClickUp Auth Token.
If you use custom task ids in ClickUp set to true. Default false
.
If you use custom task ids in ClickUp, you should indicate the team id.
This action will fail if you do not have the necessary permissions provided by the tokens or if the action can't update ClickUp task status.
An example of its usage when pull request is opened:
name: Update ClickUp Task Status
uses: Genially/[email protected]
on:
pull_request:
types:
- opened
with:
status: review
github_token: ${{secrets.GITHUB_TOKEN}}
clickup_token: ${{secrets.CLICKUP_TOKEN}}
clickup_custom_id: true
clickup_team_id: 123
Other example of its usage when pull request is merged:
on:
pull_request:
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Update ClickUp Task Status
run: |
echo The PR was merged
- uses: Genially/[email protected]
with:
status: done
github_token: ${{secrets.GITHUB_TOKEN}}
clickup_token: ${{secrets.CLICKUP_TOKEN}}
clickup_custom_id: true
clickup_team_id: 123