Skip to content

Action to update status in Clickup task after PR changes

Notifications You must be signed in to change notification settings

Genially/update-clickup-task-status

Repository files navigation

update-clickup-task-status

A Github Action to update ClickUp task status from Pull Requests

Inputs

status

Required The status to set the ClickUp task. Default "review".

github_token

Required Your Github Auth Token.

clickup_token

Required Your ClickUp Auth Token.

clickup_custom_id

If you use custom task ids in ClickUp set to true. Default false.

clickup_team_id

If you use custom task ids in ClickUp, you should indicate the team id.

Usage

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

About

Action to update status in Clickup task after PR changes

Resources

Stars

Watchers

Forks

Packages

No packages published