Closed ch-lepp closed 2 weeks ago
I am sry, but I have to reopen this issue. The renamed env is not properly processed by the application...
Additionally the gitlab search does not return an object with an atribute named items
but simply just an array...
Describe the bug: The two env vars GITHUB_USE_SEARCH and GITHUB_SEARCH_QUERY apply (contrary to what their name implies) to all repos.
When used with gitlab however, they result in the following exception:
The reason seems to be the searchAsync method of the gitlabrepo, which uses a function that does not exist.
Expected behaviour: The gitlab integration should be able to properly handle the SEARCH_QUERY env.
Additionally the env should be renamed to make it clear, that it does not only apply to github integrations.
Environment:
To Reproduce: Integrate a gitlab repo and set GITHUB_USE_SEARCH to true.
Any additional context, screenshots, etc:
Side-Note: Maybe you could consider switching to TS instead of JS. That way using methods that dont exist becomes way more unlikely...