-
-
Notifications
You must be signed in to change notification settings - Fork 4
feat(github): add user activity query method using GitHub GraphQL API #143
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
3552bb8
f05cf04
ce79d53
16cd460
8e4d767
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -665,3 +665,28 @@ def create_release(self, repo_owner: str, repo_name: str, tag_name: str, release | |||||
| logging.error(f"Error creating release: {str(e)}") | ||||||
| traceback.print_exc() | ||||||
| return {"status": "error", "message": str(e)} | ||||||
|
|
||||||
| def user_activity_query(self, variables: dict[str, Any], query: str) -> Dict[str, Any]: | ||||||
| """ | ||||||
| Performs a user activity query using GitHub's GraphQL API across all repositories and organisations. | ||||||
saidsef marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| Args: | ||||||
| variables (dict[str, Any]): The variables to include in the query i.e. {"login": "username", "from": "2023-01-01", "to": "2023-12-31"}. | ||||||
|
||||||
| variables (dict[str, Any]): The variables to include in the query i.e. {"login": "username", "from": "2023-01-01", "to": "2023-12-31"}. | |
| variables (dict[str, Any]): The variables to include in the query i.e. {"login": "username", "from_date": "2023-01-01", "to_date": "2023-12-31"}. |
Uh oh!
There was an error while loading. Please reload this page.