Skip to content

Application that receives repo URL and returns an object that contains the services detected from the repo + the files and the files' owners. - Neso

Notifications You must be signed in to change notification settings

orelmoshe/ex-github-contributors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-contributors

Technologies: Node.js


Project explanation:

Application that receives repo URL and returns an object that contains the services detected from the repo + the files and the files' owners.


input example:

POST http://localhost:5000/analyze
body:
{
    "repoUrl": "https://github.com/superstreamlabs/memphis-functions.js"
}

Output example:

data structure:

{
  "services": {
    "relative/file/path.js": "Description of file type or role"
  },
  "fileOwners": {
    "relative/file/path": {
      "owner": "Owner name <email>",
      "devs": [
        {
          "name": "Contributor Name",
          "score": "Number of commits"
        },
        ...
      ]
    },
    ...
  }
}
{
    "services": {
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\src\\functions.js": "Detected service from JS file"
    },
    "fileOwners": {
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\Jenkinsfile": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "Beka Kotchauri",
                    "score": 2
                },
                {
                    "name": "valeraBr",
                    "score": 1
                },
                {
                    "name": "idanasulinStrech",
                    "score": 1
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\LICENSE": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "idanasulinStrech",
                    "score": 1
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\package.json": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "idanasulinStrech",
                    "score": 5
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\README.md": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "idanasulinStrech",
                    "score": 3
                },
                {
                    "name": "John Peters",
                    "score": 3
                },
                {
                    "name": "Yaniv Ben Hemo",
                    "score": 1
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\src\\functions.js": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "John Peters",
                    "score": 8
                },
                {
                    "name": "idanasulinStrech",
                    "score": 5
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\version-beta.conf": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "idanasulinStrech",
                    "score": 5
                }
            ]
        },
        "C:\\Users\\e34847\\github-contributors\\tempRepo\\version.conf": {
            "owner": "[email protected]",
            "devs": [
                {
                    "name": "idanasulinStrech",
                    "score": 5
                }
            ]
        }
    }
}

About

Application that receives repo URL and returns an object that contains the services detected from the repo + the files and the files' owners. - Neso

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published