Skip to content

Commit

Permalink
fix: getting old repos instead of latest updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-cauchi committed Jan 27, 2024
1 parent 96d0eaa commit 8055aa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as core from '@actions/core'
import {context, getOctokit} from '@actions/github'
import { context, getOctokit } from '@actions/github'
import {
Commit,
getOppositeOrder,
GitHubClient,
Repo,
RepoCommitMap,
RepoStats,
SortingOrder
SortingOrder,
getOppositeOrder
} from './types'

/**
Expand All @@ -34,7 +34,7 @@ export async function getUserPublicRepos(

core.info(`Getting repos for user ${username}.`)

const repos = (await client.rest.repos.listForUser({username})).data
const repos = (await client.rest.repos.listForUser({ username, sort: 'updated', per_page: 100 })).data

core.debug(`Got ${repos.length} repos.`)

Expand Down

0 comments on commit 8055aa6

Please sign in to comment.