GitHub Get Issue Operation: How to filter issues excluding specific labels (equivalent to `-label:Stale`)?

Hi n8n community,

I’m working with the GitHub “Get Issue” operation and need to filter issues that do NOT have a specific label. Specifically, I want to achieve the equivalent of GitHub’s -label:Stale filter syntax.

What I’m trying to achieve:

  • Retrieve issues from a GitHub repository
  • Exclude any issues that have the “Stale” label
  • This is similar to using -label:Stale in GitHub’s search interface

What I’ve tried:

  • Looking through the available filter options in the GitHub Get Issue node
  • Checking if there’s a way to use negative filtering in the current filters

Questions:

  1. Is there a way to configure the current filters to exclude issues with specific labels?
  2. Are there alternative operations or workarounds that could achieve this filtering?
  3. If this functionality isn’t currently available, I’d appreciate knowing that as well so I can plan alternative approaches.

Any guidance would be greatly appreciated! Even confirmation that “this isn’t currently possible” would be helpful for planning my workflow.

Thanks in advance!

Hey @sakamoto_akira hope all is well, welcome to the community.

You could just run an HTTP Request against the /search/issues endpoint, with the filter of your choosing.

Something like:

2 Likes

The way you suggested worked as expected.
In my environment, I used the GitHub API for Credential Type.

Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.