Skip to content

Commit

Permalink
--fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Jan 1, 2025
1 parent 10c6414 commit a4bfd83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build-filtered-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function analyseRepo (repo) {
}
repoData.log('analyzing...')

const test = await repoData.fetchAndValidateMetaDataAndRepoTree()
const test = await repoData.fetchAndValidateMetaDataAndLatestCommit()

repoData.log(JSON.stringify(test, null, 2))
return null
Expand Down
9 changes: 1 addition & 8 deletions helpers/octokit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ export async function getDataWithGraphQL (owner, name) {
target {
... on Commit {
oid
tree {
entries {
name
type
oid
}
}
}
}
}
Expand All @@ -77,7 +70,7 @@ export async function getDataWithGraphQL (owner, name) {
console.log(repo)
console.log(repo.pushedAt)
console.log(repo.createdAt)
console.log(JSON.stringify(repo.rateLimit))
console.log(`Rate limit: ${JSON.stringify(response.rateLimit)}`)
console.log(JSON.stringify(repo.defaultBranchRef.target.tree))
}

Expand Down
2 changes: 1 addition & 1 deletion helpers/repo-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class RepoData {
* @throws {NoRepoTreeError} - If the tree could not be fetched
* @throws {RequestError} - If the request fails
*/
async fetchAndValidateMetaDataAndRepoTree () {
async fetchAndValidateMetaDataAndLatestCommit () {
return await getDataWithGraphQL(this.repoOwner, this.repoName)
}

Expand Down

0 comments on commit a4bfd83

Please sign in to comment.