Skip to content
This repository was archived by the owner on Aug 12, 2026. It is now read-only.

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Get issue labels action

Warning

This repository is archived and no longer maintained.

There is no replacement action. Read labels from the GitHub event context or query them directly with gh issue view NUMBER --json labels. Telegram notification filtering belongs to the caller before invoking the reusable workflows in rubykatzen/baseline.

This action get issue labels via gh client

Usage

Here's an example of how to use this action in a workflow file:

name: Example Workflow
jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest
    permissions:
      issues: read
    steps:
      - name: Get Labels
        id: issue-labels
        uses: rubycats-com/issue-get-labels-action
        with:
          number: ${{ github.event.issue.number }}
      - uses: rubycats-com/jarvis-report-action@main
        if: contains(fromJSON(issue-labels.output.labels), 'notify')
        with:
          report-to: ${{ secrets.JARVIS_TELEGRAM_REPORT_TO }}
          token: ${{ secrets.JARVIS_TELEGRAM_TOKEN }}

Inputs

Input Required Description
number true Issue id

Outputs

Output Description
labels Labels for issue in JSON format, eg ["notify","feature"]

About

Get issue labels via gh client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors