Skip to content

sylvainar/pull-request-aggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pull Request Aggregator

npm version

The goal of this library is to aggregate pull-requests from different projects, that can be on different websites (Gitlab, Github, self-hosted Gitlab, BitBucket...) in order to build dashboards, CLI-tool, IOT project, or whatever you want.

import pullRequestAggregator from 'pull-request-aggregator';

const config = {
    repositories: [
        {
            // Relative path to your repository.
            path: 'WeblateOrg/weblate',
            provider: {
                // The provider.
                name:'github'

                // More options related to the provider (auth, config...)
            },
            metadata: {
                // You'll get those back in the response, so put everything
                // you need to build your screens.
                namespace: 'Pro/Customer1/Project1',
            },
        },
        {
            path: 'fdroid/fdroidclient',
            provider: {
                name:'gitlab'
            },
            metadata: {
                namespace: 'Perso/hello',
            },
        },
    ],
};

pullRequestAggregator(config)
    .then(console.log)
    .catch(console.error);

returns:

return

About

Aggregate pull-requests from different repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published