GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add options to the listReleases and listTags function by alexcanessa · Pull Request #485 · github-tools/github

Conversation

@alexcanessa

@alexcanessa alexcanessa commented Oct 12, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The request to get the list of releases and tags should have the options object in order to pass pagination options.

@see https://developer.github.com/v3/#pagination

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexcanessa alexcanessa changed the title Add options to the listReleases function Add options to the listReleases and listTags function Oct 12, 2017
@alexcanessa
alexcanessa force-pushed the master branch from 80a4bfb to b266b8d Compare October 12, 2017 23:18
@codecov-io

codecov-io commented Oct 12, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@24223f7). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #485   +/-   ##
=========================================
  Coverage          ?   91.06%           
=========================================
  Files             ?       12           
  Lines             ?      403           
  Branches          ?        0           
=========================================
  Hits              ?      367           
  Misses            ?       36           
  Partials          ?        0
Impacted Files Coverage Δ
lib/Repository.js 80.67% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24223f7...a37e56f. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexcanessa
Add options to the listReleases and listTags function and fix markdow…
a37e56f
…n test
@alexcanessa
alexcanessa force-pushed the master branch from b266b8d to a37e56f Compare October 12, 2017 23:32
@j-rewerts

j-rewerts commented Apr 7, 2019

Copy link
Copy Markdown
Member

I'm wondering if there's maybe an alternative way to handle paging. This is going to be an issue with basically every get operation this library does. Would it be crazy to think about doing some sort of async iterables approach? The new for await ... of seems pretty cool, but wouldn't work for us, since we also allow people to use callbacks.

What if we used generators and for people using callbacks, we just accumulated the result and returned that. For people using Promises, we could yield Promises until the results are done. It looks like yield was added in Node 4, but has no IE support.

@clayreimann Which browsers and versions does github-api support?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@j-rewerts

j-rewerts commented Apr 7, 2019

Copy link
Copy Markdown
Member

Just adding options to most GETs would definitely work though.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@alexcanessa @codecov-io @j-rewerts
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.