Skip to content

Commit

Permalink
perf: fetch last 10 releases
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Aug 12, 2019
1 parent cff2691 commit cceed02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view-releases/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ module.exports.getOrgReleases = async function(org) {
query: gql`
{
organization(login: "${org}") {
repositories(last: 50, isLocked: false, privacy: PRIVATE, orderBy: {field: PUSHED_AT, direction: DESC}) {
repositories(last: 50, isLocked: false, privacy: PRIVATE, orderBy: {field: PUSHED_AT, direction: ASC}) {
edges {
node {
name
releases(last: 20) {
releases(last: 10, orderBy: {field: CREATED_AT, direction: DESC}) {
edges {
node {
publishedAt
Expand Down

0 comments on commit cceed02

Please sign in to comment.