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

Introduce approve.auto_approve_labels option #817

Merged
merged 8 commits into from
Jun 9, 2022
Merged

Introduce approve.auto_approve_labels option #817

merged 8 commits into from
Jun 9, 2022

Conversation

paescuj
Copy link
Contributor

@paescuj paescuj commented Jun 8, 2022

Closes #554

Implemented as suggested by @chdsbd:

I think approve.auto_approve_labels and approve.auto_approve_usernames being separate such that one doesn't require the other would match the behavior of other configuration options in Kodiak.

Also fixing some lint errors & enhances developer experience (see commits).

paescuj added 6 commits June 8, 2022 11:53
Move ignore comment to correct line:

> kodiak/test_queries.py:228: error: unused 'type: ignore' comment
> kodiak/test_queries.py:230: error: The return type of an async generator function should be "AsyncGenerator" or one of its supertypes  [misc]

Update sentry-sdk to fix the following errors (see getsentry/sentry-python#1421):

> ************* Module kodiak.logging
> kodiak/logging.py:139:4: E0110: Abstract class 'init' with abstract methods instantiated (abstract-class-instantiated)
> ************* Module kodiak.refresh_pull_requests
> kodiak/refresh_pull_requests.py:34:0: E0110: Abstract class 'init' with abstract methods instantiated (abstract-class-instantiated)
> kodiak/refresh_pull_requests.py:44:0: E0110: Abstract class 'init' with abstract methods instantiated (abstract-class-instantiated)
- Add python extensions to recommendations
- Support for nose tests ('nosetestsEnabled') has been removed,
  see microsoft/vscode-python#16371
- 'pythonPath' has been replaced by 'defaultInterpreterPath',
  see https://github.com/microsoft/vscode-python/wiki/AB-Experiments#tldr
Fixes the following error from mypy:

> kodiak/evaluation.py:784:12: error: Module has no attribute "exceptions"  [attr-defined]
@netlify
Copy link

netlify bot commented Jun 8, 2022

👷 Deploy request for kodiak-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 54c6bd1

@netlify
Copy link

netlify bot commented Jun 8, 2022

👷 Deploy request for kodiak-dashboard-staging pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 54c6bd1

@paescuj paescuj marked this pull request as ready for review June 8, 2022 13:20
@chdsbd
Copy link
Owner

chdsbd commented Jun 8, 2022

Thanks for the PR @paescuj! This looks great. Thanks for the documentation and tests. I'll look into merging this soon

@paescuj
Copy link
Contributor Author

paescuj commented Jun 9, 2022

Thanks for the fast & positive feedback, @chdsbd! That's great!

Apparently this works with Python3.7 but not with Python3.9 (which I had
installed on my end)
@chdsbd chdsbd added the automerge Mark PR for auto merge by Kodiak label Jun 9, 2022
@kodiakhq kodiakhq bot merged commit 662b663 into chdsbd:master Jun 9, 2022
@paescuj paescuj deleted the auto_approve_labels_option branch June 10, 2022 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Mark PR for auto merge by Kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add additional conditional to approve.auto_approve_usernames
2 participants