Skip to content

ColabraHQ/colabra-action-comment

Repository files navigation

Colabra Comment Action

A GitHub Action to post comments on Colabra tasks and projects.

Usage

- name: Comment on Colabra task
  uses: colabra/comment@v1
  with:
    api_key: ${{ secrets.COLABRA_API_KEY }}
    workspace_slug: ${{ github.event.client_payload.workspace_slug }}
    resource_id: ${{ github.event.client_payload.resource_id }}
    body_text: 'Your comment text here'

Inputs

Input Description Required
api_key Colabra API Key Yes
workspace_slug Colabra Workspace Slug Yes
resource_id Task or Project ID (e.g. "TSK-123" or "PRO-123") Yes
body_text The text content of the comment Yes

Example Workflows

Comment on a Task

name: Process Colabra Task

on:
  repository_dispatch:
    types: [colabra-connection]

jobs:
  process_task:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Comment on Colabra task
        uses: colabra/comment@v1
        with:
          api_key: ${{ secrets.COLABRA_API_KEY }}
          workspace_slug: ${{ github.event.client_payload.workspace_slug }}
          resource_id: TSK-123
          body_text: 'Hello World 🦠'

Comment on a Project

name: Process Colabra Project

on:
  repository_dispatch:
    types: [colabra-connection]

jobs:
  process_project:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Comment on Colabra project
        uses: colabra/comment@v1
        with:
          api_key: ${{ secrets.COLABRA_API_KEY }}
          workspace_slug: ${{ github.event.client_payload.workspace_slug }}
          resource_id: PRO-123
          body_text: 'Project update 📊'

Development

This action is built with TypeScript and uses the GitHub Actions toolkit.

To build:

pnpm install
pnpm build

To test:

pnpm test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •