Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh issue list fails with search #8936

Open
rwlove opened this issue Apr 6, 2024 · 1 comment
Open

gh issue list fails with search #8936

rwlove opened this issue Apr 6, 2024 · 1 comment
Labels
bug Something isn't working needs-triage needs to be reviewed

Comments

@rwlove
Copy link

rwlove commented Apr 6, 2024

Describe the bug

I'm trying to do an issue search in a GH Action, but gh issue list fails when I provide a search option.

Steps to reproduce the behavior

I have two open Issues:

  • Link Checker Dashboard
  • Renovate Dashboard 馃
      - name: Print raw issue unfiltered
        id: raw-issue-un
        shell: bash
        env:
          GH_TOKEN: "${{ steps.app-token.outputs.token }}"
        run: |
          temp=$( \
              gh issue list \                                                                                                                                                 
                  --state open \                                                                                                                                              
                  --json number \                                                                                                                                             
          )                                                                                                                                                                   
          echo "${temp}"

returns [{"number":5710},{"number":1109}]
but

      - name: Print raw issue
        id: raw-issue
        shell: bash
        env:
          GH_TOKEN: "${{ steps.app-token.outputs.token }}"
        run: |
          temp=$( \
              gh issue list \                                                                                                                                                 
                  --search "Link in:title" \
                  --state open \                                                                                                                                              
                  --json number \                                                                                                                                             
          )                                                                                                                                                                   
          echo "${{ env.WORKFLOW_ISSUE_TITLE }}"
      echo "${temp}"

returns
Link Checker Dashboard
[]

Expected vs actual behavior

It should return [{"number":1109}]

Logs

N/A

@rwlove rwlove added the bug Something isn't working label Apr 6, 2024
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Apr 6, 2024
@rwlove
Copy link
Author

rwlove commented May 27, 2024

bump. nobody cares?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants