Skip to content

Commit

Permalink
feat: added ability to get repos by team (#413)
Browse files Browse the repository at this point in the history
* feat: added ability to get repos by team

Signed-off-by: Ryan Hoofard <42755382+rhoofard@users.noreply.github.com>
  • Loading branch information
rhoofard committed May 25, 2024
1 parent 32ed821 commit 74a88ae
Show file tree
Hide file tree
Showing 17 changed files with 865 additions and 89 deletions.
1 change: 1 addition & 0 deletions receiver/gitproviderreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,4 @@ The number of Common Vulnerabilities and Exposures (CVEs) in the repository.
| ---- | ----------- | ------ | ------- |
| git.vendor.name | The name of the Git vendor/provider (ie. GitHub / GitLab) | Any Str | true |
| organization.name | Git Organization or Project Name | Any Str | true |
| team.name | The name of the team in the organization | Any Str | false |

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

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

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

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ all_set:
enabled: true
organization.name:
enabled: true
team.name:
enabled: true
none_set:
metrics:
git.repository.branch.commit.aheadby.count:
Expand Down Expand Up @@ -65,6 +67,8 @@ none_set:
enabled: false
organization.name:
enabled: false
team.name:
enabled: false
filter_set_include:
resource_attributes:
git.vendor.name:
Expand All @@ -75,6 +79,10 @@ filter_set_include:
enabled: true
metrics_include:
- regexp: ".*"
team.name:
enabled: true
metrics_include:
- regexp: ".*"
filter_set_exclude:
resource_attributes:
git.vendor.name:
Expand All @@ -85,3 +93,7 @@ filter_set_exclude:
enabled: true
metrics_exclude:
- strict: "organization.name-val"
team.name:
enabled: true
metrics_exclude:
- strict: "team.name-val"
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ type Config struct {
GitHubOrg string `mapstructure:"github_org"`
// SearchQuery is the query to use when defining a custom search for repository data
SearchQuery string `mapstructure:"search_query"`
GitHubTeam string `mapstructure:"github_team"`
}
Loading

0 comments on commit 74a88ae

Please sign in to comment.