Skip to content

rubycats-com/issue-get-labels-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Get issue labels action

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published