Skip to content

Commit

Permalink
add info to load commits of project
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Sep 15, 2024
1 parent 1936da3 commit 057bc78
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,26 @@ In a playground (`Ctrl+O`, `Ctrl+W`).
```st
glhModel := GLHModel new.
githubImporter := GHModelImporter new glhModel: glhModel; privateToken: '<my private token>'; yourself.
githubImporter := GHModelImporter new
glhModel: glhModel;
privateToken: '<my private token>';
yourself.
githubImporter importGroup: 'moosetechnology'.
```

### More commits extracted
### Extract repository commits

![Badge Gitlab only](https://img.shields.io/badge/GitLab_Only-8A2BE2?logo=gitlab)

You might want to gather more commits for a specific repository.
To do so in GitLab, we added the following API
You might want to gather commits for repositories.
Instead of loading all commits and for performance reason, we propose to load commits since a define date. To do so, you can use the API

```st
myProject := ((glhModel allWithType: GLHProject) select: [ :project | project name = '<my projectName>' ]) anyOne.
glhImporter importCommitsOf: myProject withStats: true until: '2023-01-01' asDate.
myImporter withCommitsSince: (Date today - 100 days).
```

Remember to set this option before the import of project.

### Import Merge Requests information

![Badge Gitlab only](https://img.shields.io/badge/GitLab_Only-8A2BE2?logo=gitlab)
Expand Down

0 comments on commit 057bc78

Please sign in to comment.