Skip to content

Commit

Permalink
Merge pull request #125 from ynput/chore/issue_to_clickup_workflow
Browse files Browse the repository at this point in the history
Add trigger workflow to sync issues with ClickUp
  • Loading branch information
jakubjezek001 authored Feb 27, 2024
2 parents 3dd124a + cac412d commit 8bf8649
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/issue_to_clickup_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync Issues to ClickUp [trigger]

on:
workflow_dispatch:
inputs:
issue-number:
required: true
issues:
types: [labeled]


jobs:
call-ci-tools-issue-sync:
if: github.event.inputs.issue-number != '' || github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'backlog')
uses: ynput/ci-tools/.github/workflows/issue_to_clickup_ref.yml@main
with:
# issue number should be taken either from inputs or from the event
issue-number: ${{ github.event.inputs.issue-number || github.event.issue.number }}
repo-owner: ${{ github.event.repository.owner.login }}
repo-name: ${{ github.event.repository.name }}
secrets:
token: ${{ secrets.YNPUT_BOT_TOKEN }}
cu_api_key: ${{ secrets.CLICKUP_API_KEY }}
cu_team_id: ${{ secrets.CLICKUP_TEAM_ID }}
cu_folder_id: ${{ secrets.CLICKUP_FOLDER_ID }}
cu_list_id: ${{ secrets.CLICKUP_LIST_ID }}
cu_field_domain_id: ${{ secrets.CLICKUP_DOMAIN_FIELD_ID }}
cu_field_type_id: ${{ secrets.CLICKUP_ISSUETYPE_FIELD_ID }}

0 comments on commit 8bf8649

Please sign in to comment.