How to use the activity function from @octokit/rest

Find comprehensive JavaScript @octokit/rest.activity code examples handpicked from public code repositorys.

30
31
32
33
34
35
36
37
38
39
    return 0;
}

function getOrgPublicActivity(org, per_page = 100) {
    return new Promise((resolve, reject) => {
        octokit.activity.getEventsForOrg({org, per_page})
            .then(data => {
                resolve(data.data.map(item => {
                    if(item.payload) {
                        delete item.payload;
fork icon2
star icon7
watch icon3