Skip to content

Commit

Permalink
Merge pull request #311 from r-world-devs/test
Browse files Browse the repository at this point in the history
1.0.0 release
  • Loading branch information
maciekbanas authored Oct 6, 2023
2 parents f0ab741 + 3005ebb commit 9ae656a
Show file tree
Hide file tree
Showing 218 changed files with 35,264 additions and 2,904 deletions.
227 changes: 0 additions & 227 deletions .github/workflows/code-coverage.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/other-checks.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
.Ruserdata
example_workflow_Roche.R
example_branch.R
docs
inst/doc
24 changes: 15 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Package: GitStats
Title: Get Statistics from Git Hosting Services
Version: 0.1.0
Authors@R:
person("Maciej", "Banaś", , "[email protected]", role = c("aut", "cre"))
Title: Get Statistics from GitHub and GitLab
Version: 1.0.0
Authors@R: c(
person(given = "Maciej", family = "Banas", email = "[email protected]", role = c("aut", "cre")),
person(given = "Kamil", family = "Koziej", email = "[email protected]", role = "aut"),
person(given = "Karolina", family = "Marcinkowska", email = "[email protected]", role = "aut"),
person(given = "Matt", family = "Secrest", email = "[email protected]", role = "aut")
)
Description: Obtain statistics in a standardized way from multiple Git services: GitHub and GitLab for the time-being.
Its main purpose is to help teams, whose activities are spread across multiple git platforms, get their repository
metadata in a standardized way from all these platforms.
Expand All @@ -19,16 +23,18 @@ Imports:
lubridate,
magrittr,
plotly,
progress,
rlang,
rlang (>= 1.1.0),
R6,
purrr,
purrr (>= 1.0.0),
stringr
Suggests:
Suggests:
spelling,
covr,
knitr,
mockery,
rmarkdown,
testthat (>= 3.0.0)
testthat (>= 3.0.0),
withr
Config/testthat/edition: 3
VignetteBuilder: knitr
Language: en-US
24 changes: 17 additions & 7 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
# Generated by roxygen2: do not edit by hand

export(add_team_member)
S3method(gitstats_plot,commits_stats)
S3method(gitstats_plot,repos_stats)
export("%>%")
export(create_gitstats)
export(get_commits)
export(get_commits_stats)
export(get_orgs)
export(get_repos)
export(plot_commits)
export(plot_repos)
export(set_connection)
export(setup)
export(get_repos_stats)
export(get_users)
export(gitstats_plot)
export(pull_commits)
export(pull_repos)
export(pull_repos_contributors)
export(pull_users)
export(reset)
export(reset_language)
export(set_host)
export(set_params)
export(set_team_member)
importFrom(R6,R6Class)
importFrom(cli,cli_abort)
importFrom(cli,cli_alert_danger)
Expand All @@ -16,7 +28,6 @@ importFrom(cli,cli_alert_success)
importFrom(cli,cli_alert_warning)
importFrom(cli,col_green)
importFrom(cli,col_yellow)
importFrom(data.table,":=")
importFrom(data.table,as.data.table)
importFrom(data.table,rbindlist)
importFrom(data.table,setorder)
Expand All @@ -37,7 +48,6 @@ importFrom(lubridate,floor_date)
importFrom(magrittr,"%>%")
importFrom(plotly,ggplotly)
importFrom(plotly,layout)
importFrom(progress,progress_bar)
importFrom(purrr,keep)
importFrom(purrr,map)
importFrom(purrr,map_chr)
Expand Down
50 changes: 50 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# GitStats 1.0.0

## Breaking changes:

### New functions:

- added `get_*_stats()` functions to prepare summary stats from pulled data: repositories and commits ([#276](https://github.com/r-world-devs/GitStats/issues/276)),
- rename and refactor plot functions to one generic `gitstats_plot()` which takes as an input `repos_stats` or `commits_stats` class objects ([#276](https://github.com/r-world-devs/GitStats/issues/276)),

### New names for core functions:

- changed names from `get_*` to `pull_*`; `get_*` functions are now to retrieve already pulled data from GitStats object ([#294](https://github.com/r-world-devs/GitStats/issues/294)),
- changed name from `setup()` to `set_params()` ([#294](https://github.com/r-world-devs/GitStats/issues/294)),
- changed name from `set_connection()` to `set_host()` ([#271](https://github.com/r-world-devs/GitStats/issues/271)),
- changed name from `add_team_member()` to `set_team_member()` ([#271](https://github.com/r-world-devs/GitStats/issues/271)).

## Major changes:

### New features:

- added setting tokens by default - if the user does have all the PATs set up in environment variables (as e.g. `GITHUB_PAT` or `GITLAB_PAT`), there is no need to pass them as an argument to `set_host()` ([#120](https://github.com/r-world-devs/GitStats/issues/120)),
- added `pull_users()` function to pull information on users ([#199](https://github.com/r-world-devs/GitStats/issues/199)),
- added possibility of scanning whole internal git platforms if no `orgs` are passed ([#258](https://github.com/r-world-devs/GitStats/issues/258)),
- added `get_orgs()` function to print all organizations ([#283](https://github.com/r-world-devs/GitStats/issues/283)),
- added resetting all settings to default with `reset()` function ([#270](https://github.com/r-world-devs/GitStats/issues/270))
- added resetting language in your search preferences with `reset_language()` or setting `language` parameter to `All` in `setup()` function ([#231](https://github.com/r-world-devs/GitStats/issues/231))

### Improving performance with REST and GraphQL APIs:

- added switching to REST engine in case GraphQL fails with 502 error ([#225](https://github.com/r-world-devs/GitStats/issues/225))
- added GraphQL engine for getting GitLab repositories by organization ([#218](https://github.com/r-world-devs/GitStats/issues/218))
- removed `contributors` as basic stat when pulling `repos` by `org` and by `phrase` to improve speed of pulling repositories data. Added `pull_repos_contributors()` user function and `add_contributors` parameter to `pull_repos()` function to add conditionally information on contributors to repositories table ([#235](https://github.com/r-world-devs/GitStats/issues/235))

## Minor changes:

- handled errors with proper messages when tokens do not grant access ([#242](https://github.com/r-world-devs/GitStats/issues/242) [#301](https://github.com/r-world-devs/GitStats/issues/301)),
- in repositories output set `api_url` column as an address to the repository, not the host ([#201](https://github.com/r-world-devs/GitStats/issues/201)),
- fixed adding GitLab subgroups ([#176](https://github.com/r-world-devs/GitStats/issues/176)),
- exported pipe operator (`%>%`) ([#289](https://github.com/r-world-devs/GitStats/issues/289)).

# GitStats 0.1.0

This is the first release of GitStats with given features:

- `create_gitstats()` - creating GitStats object,
- `set_connection()` - adding hosts to GitStats object,
- `setup()` - setting search parameter to org, team or phrase, setting programming language of repositories,
- `get_repos()` - pulling repositories from GitHub and GitLab API in a standardized table,
- `get_commits()` - pulling commits from GitHub and GitLab API in a standardized table,
- `set_team_member()` - adding team members to GitStats object.
Loading

0 comments on commit 9ae656a

Please sign in to comment.