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

Use GITHUB_GRAPHQL_URL #94

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Use GITHUB_GRAPHQL_URL #94

merged 2 commits into from
Mar 15, 2021

Conversation

EnricoMi
Copy link
Owner

Fixes #92.

@@ -169,7 +171,7 @@ def get_settings(options: dict) -> Settings:
if __name__ == "__main__":
options = dict(os.environ)

logging.root.level = logging.INFO
logging.root.level = logging.DEBUG
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be reverted

@@ -130,6 +130,7 @@ def get_settings(options: dict) -> Settings:
with open(event, 'r') as f:
event = json.load(f)
api_url = options.get('GITHUB_API_URL') or github.MainClass.DEFAULT_BASE_URL
graphql_url = options.get('GITHUB_GRAPHQL_URL') or f'{github.MainClass.DEFAULT_BASE_URL}/graphql'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be:

graphql_url = options.get('GITHUB_GRAPHQL_URL') or f'{github.MainClass.DEFAULT_BASE_URL}/api/graphql'

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@EnricoMi EnricoMi merged commit 6258fef into master Mar 15, 2021
@EnricoMi EnricoMi deleted the branch-graphql-url branch March 15, 2021 16:48
@github-actions
Copy link

Unit Test Results

    1 files  ±0      1 suites  ±0   1s ⏱️ ±0s
182 tests ±0  182 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6258fef. ± Comparison against base commit 6258fef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while hiding comments in PullReq on GitHub Enterprise
2 participants