From a8b6dee4c284b9f017b96b041ec14f506593a304 Mon Sep 17 00:00:00 2001 From: Mark Hinschberger Date: Sun, 15 Jan 2023 14:02:53 +0000 Subject: [PATCH] feat: remove integration (#1420) --- .../sync-issue/issue-opened/action.yml | 62 ----------- .../workflows/sync-height-issue-opened.yml | 102 ------------------ 2 files changed, 164 deletions(-) delete mode 100644 .github/actions/height-integration/sync-issue/issue-opened/action.yml delete mode 100644 .github/workflows/sync-height-issue-opened.yml diff --git a/.github/actions/height-integration/sync-issue/issue-opened/action.yml b/.github/actions/height-integration/sync-issue/issue-opened/action.yml deleted file mode 100644 index b895d4f607..0000000000 --- a/.github/actions/height-integration/sync-issue/issue-opened/action.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Sync new issue to Height -description: Creates a new task in Height and moves it into the Github Issues Intake task on the interface project board - -on: - issues: - types: [opened, reopened] - -jobs: - createHeightTask: - runs-on: ubuntu-latest - steps: - - id: createHeightTaskRequest - name: Create a new task with issue details in Height - uses: fjogeleit/http-request-action@v1 - with: - url: 'https://api.height.app/tasks' - method: 'POST' - customHeaders: '{ "Content-Type": "application/json", "Authorization": "api-key ${{ secrets.HEIGHT_SECRET_TOKEN }}" }' - data: '{ - "name": "${{ github.event.issue.title }}", - "description": "${{ github.event.issue.description }}", - "listIds": [ - "0540b3b8-bd44-4904-a97f-fd9d8780ef0a" - ], - "parentTaskId": "2dded224-8da0-4407-868f-d9cd018cbe52", - "status": "backLog", - "orderIntent": { - "intent": "end" - }, - "assigneesIds": [ - "848a5626-451f-4e15-b711-bd0a84883718", - "fe99c0a6-ad7b-458d-ae9f-687af57e0053", - "b0093618-6032-4e90-aa01-1dfc6628832d" - ], - "links": [], - "fields": [ - { - "fieldTemplateId": "f1bae626-c18c-4198-b354-560d1610766c", - "name": "Tags", - "type": "labels", - "value": null, - "label": null, - "values": null, - "date": null, - "recursion": null, - "labels": [ - { - "id": "a7ba7d3e-d1d6-4111-92e6-e89c9456ea13", - "model": "fieldLabel", - "value": "github-issue", - "date": null, - "hue": 49, - "deleted": false, - "archived": false - } - ], - "linkedTasks": null, - "linkedTimer": null, - "selectValue": null - } - ] - }' diff --git a/.github/workflows/sync-height-issue-opened.yml b/.github/workflows/sync-height-issue-opened.yml deleted file mode 100644 index 802c665307..0000000000 --- a/.github/workflows/sync-height-issue-opened.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: Sync opened issues to Height - -on: - issues: - types: [opened] - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} - cancel-in-progress: true - -jobs: - create_height_subtask: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Cache jq - uses: actions/cache@v2 - with: - path: /usr/local/bin/jq - key: jq-{{ hashFiles('jq-version') }} - - name: Setup jq - run: sudo apt-get install -y jq - - name: Normalize and encode issue title - id: title - shell: bash - run: | - echo title=$(cat <> $GITHUB_OUTPUT - - name: Normalize and encode issue body - id: desc - shell: bash - run: | - echo desc=$(cat <> $GITHUB_OUTPUT - - name: Encode the payload as JSON - run: | - cat < payload.json - { - "name": ${{ steps.title.outputs.title }}, - "description": ${{ steps.desc.outputs.desc }}, - "listIds": [ - "0540b3b8-bd44-4904-a97f-fd9d8780ef0a" - ], - "parentTaskId": "2dded224-8da0-4407-868f-d9cd018cbe52", - "status": "a347dcd0-d492-4e7b-86e6-5e7b759134d8", - "orderIntent": { - "intent": "end" - }, - "assigneesIds": [ - "848a5626-451f-4e15-b711-bd0a84883718", - "fe99c0a6-ad7b-458d-ae9f-687af57e0053", - "b0093618-6032-4e90-aa01-1dfc6628832d" - ], - "links": [], - "fields": [ - { - "fieldTemplateId": "f1bae626-c18c-4198-b354-560d1610766c", - "name": "Tags", - "type": "labels", - "value": null, - "label": null, - "values": null, - "date": null, - "recursion": null, - "labels": [ - { - "id": "a7ba7d3e-d1d6-4111-92e6-e89c9456ea13", - "model": "fieldLabel", - "value": "github-issue", - "date": null, - "hue": 49, - "deleted": false, - "archived": false - } - ], - "linkedTasks": null, - "linkedTimer": null, - "selectValue": null - } - ] - } - EOF - - name: Log payload - run: cat payload.json - - name: Lint payload as valid JSON - run: npx jsonlint payload.json - - name: Create a new subtask with issue details in Height - run: | - echo "Sending task creation request..." - curl -X POST https://api.height.app/tasks \ - -H "Content-Type: application/json" \ - -H "Authorization: api-key ${{ secrets.HEIGHT_SECRET_TOKEN }}" \ - -d @payload.json \ - -o response.json - echo "Task creation request complete." - - name: Log response - run: cat response.json