Skip to content

Bug-2038705: Remove usage of fetch_api and fetch_api_full_url - #9801

Closed
moijes12 wants to merge 5 commits into
mozilla:masterfrom
moijes12:pygithub-migrate-fetch-api
Closed

Bug-2038705: Remove usage of fetch_api and fetch_api_full_url#9801
moijes12 wants to merge 5 commits into
mozilla:masterfrom
moijes12:pygithub-migrate-fetch-api

Conversation

@moijes12

Copy link
Copy Markdown
Contributor

Updated github.py to return generators instead of lists for:

  • get_pull_request_commits
  • compare_shas

Also, updated the compare_shas to use default parameter for comparsion count.

Updated github.py to return generators instead of lists for:
- `get_pull_request_commits`
- `compare_shas`

Also, updated the `compare_shas` to use default parameter for
comparsion count.
@netlify

netlify Bot commented Aug 22, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 73e62d8
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a8d9e11cabaa3000882a10e
😎 Deploy Preview https://deploy-preview-9801--treeherder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Always set the head_commit.
Use the comparison object for ingest.py where fetch_api and
fetch_api_full_urls were once used.
@moijes12 moijes12 changed the title Bug-2038705: Return generators for push_data Bug-2038705: Remove usage of fetch_api and fetch_api_full_url Aug 22, 2026
cursoragent and others added 2 commits August 25, 2026 13:45
Replace fetch_api/fetch_api_full_url with PyGithub in get_all_commits,
return native dicts so changelog and ingest clients stay unchanged, and
read Comparison commit objects by attribute in query_data.

Co-authored-by: Alex <moijes12@users.noreply.github.com>
Use lazy repo lookups, 100-item pages, and no client-side request delay.
Changelog still consumes commit dicts (ISO dates, filter_by_path via
get_commit). git-pushes uses list-commit parents instead of N extra
get_commit calls. Document how to time update_changelog and ingest.

Co-authored-by: Alex <moijes12@users.noreply.github.com>
@moijes12 moijes12 closed this Aug 25, 2026
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