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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[github] Possible incorrect 'created' query operator #2622

Closed
andrewkroh opened this issue Jan 31, 2022 · 1 comment · Fixed by #2664
Closed

[github] Possible incorrect 'created' query operator #2622

andrewkroh opened this issue Jan 31, 2022 · 1 comment · Fixed by #2664
Labels
bug Something isn't working Integration:Github Github Integration

Comments

@andrewkroh
Copy link
Member

It looks like the query might be using an invalid operator. The code contains =>, but that's not listed in the docs. It should use >=.

value: '[[sprintf "created:=>%s" (formatDate .cursor.last_timestamp "20060102T15:04:05-0700")]]'
default: '[[sprintf "created:=>%s" (formatDate (now (parseDuration "-{{initial_interval}}")) "20060102T15:04:05-0700")]]'

You can use >, >=, <, and <= to search for values that are greater than, greater than or equal to, less than, and less than or equal to another value.

References

@andrewkroh andrewkroh added bug Something isn't working Integration:Github Github Integration labels Jan 31, 2022
@legoguy1000
Copy link
Contributor

Ya looks like I typo'd that. That's awkward.

legoguy1000 added a commit to legoguy1000/integrations that referenced this issue Feb 10, 2022
andrewkroh added a commit that referenced this issue Feb 11, 2022
* #2622 Fix GIthub Error

* update changelog

* add note about github enterprise

* Apply suggestions from code review

* Update config.yml

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
eyalkraft pushed a commit to build-security/integrations that referenced this issue Mar 30, 2022
* elastic#2622 Fix GIthub Error

* update changelog

* add note about github enterprise

* Apply suggestions from code review

* Update config.yml

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Integration:Github Github Integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants