Skip to content

refactor: use shared make_headers instead of inline GitHub header dicts#413

Open
jamesrayammons wants to merge 2 commits intoentrius:testfrom
jamesrayammons:refactor/use-shared-make-headers
Open

refactor: use shared make_headers instead of inline GitHub header dicts#413
jamesrayammons wants to merge 2 commits intoentrius:testfrom
jamesrayammons:refactor/use-shared-make-headers

Conversation

@jamesrayammons
Copy link
Copy Markdown

Summary

Replace inline {'Authorization': f'token {token}', 'Accept': ...} header dicts with the existing make_headers() utility from utils/github_api_tools.py.

Related Issues

N/A (code cleanup)

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

No behavior change — make_headers() returns the identical dict that was previously inline.

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Replace inline {'Authorization': f'token {token}', 'Accept': ...} header
dicts with the existing make_headers() utility from utils/github_api_tools.

Files changed:
- cli/miner_commands/post.py
- validator/issue_discovery/repo_scan.py
@jamesrayammons
Copy link
Copy Markdown
Author

@anderdc @LandynDev Could you please this PR?

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.

2 participants