Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
--- commited
+++ committed
  • Loading branch information
slntopp committed Aug 26, 2024
1 parent c0d4792 commit f523138
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions providers/github/resources/github.lr
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ private github.commit @defaults("sha") {
stats dict
// Authored Date
authoredDate time
// Commited Date
commitedDate time
// Committed Date
committedDate time
}

// GitHub repository pull request
Expand Down
14 changes: 7 additions & 7 deletions providers/github/resources/github.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions providers/github/resources/github.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ resources:
min_mondoo_version: 6.11.0
commitedDate:
min_mondoo_version: 9.0.0
committedDate:
min_mondoo_version: 9.0.0
committer: {}
message: {}
organizationName: {}
Expand Down
20 changes: 10 additions & 10 deletions providers/github/resources/github_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,16 +685,16 @@ func newMqlGithubCommit(runtime *plugin.Runtime, rc *github.RepositoryCommit, ow
}

return CreateResource(runtime, "github.commit", map[string]*llx.RawData{
"url": llx.StringData(rc.GetURL()),
"sha": llx.StringData(sha),
"author": llx.AnyData(githubAuthor),
"committer": llx.AnyData(githubCommitter),
"owner": llx.StringData(owner),
"repository": llx.StringData(repo),
"commit": llx.AnyData(mqlGitCommit),
"stats": llx.MapData(stats, types.Any),
"authoredDate": llx.TimeData(rc.Commit.Author.Date.Time),
"commitedDate": llx.TimeData(rc.Commit.Committer.Date.Time),
"url": llx.StringData(rc.GetURL()),
"sha": llx.StringData(sha),
"author": llx.AnyData(githubAuthor),
"committer": llx.AnyData(githubCommitter),
"owner": llx.StringData(owner),
"repository": llx.StringData(repo),
"commit": llx.AnyData(mqlGitCommit),
"stats": llx.MapData(stats, types.Any),
"authoredDate": llx.TimeData(rc.Commit.Author.Date.Time),
"committedDate": llx.TimeData(rc.Commit.Committer.Date.Time),
})
}

Expand Down

0 comments on commit f523138

Please sign in to comment.