Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for GitLab repositories #84

Merged
merged 21 commits into from
Feb 23, 2018

Commits on Feb 19, 2018

  1. feat(prompt): add options 'repoType' and 'repoHost' to init prompt

    The repoType is a choice between github and gitlab (default is github) and repoHost is a string which default to either 'https://github.com'
    or 'https://gitlab.com' depending on the answer given for 'repoType'
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    a305469 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14f5874 View commit details
    Browse the repository at this point in the history
  3. feat(repo): add api to interact with repositories

    add methods to get config options, get users and get contributors
    add tests for most of the implemented code
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    945d79c View commit details
    Browse the repository at this point in the history
  4. test(generate): fix format-contribution-type and format-contributor

    fix both files to include 'repoType' and 'repoHost' in their options stub
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    adf543b View commit details
    Browse the repository at this point in the history
  5. refactor(contributors): adapt code that adds contributors to use the …

    …new repo api
    
    main changes include using methods that were fixed for github before, or passing extra parameters from the options object
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    165eeec View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f741884 View commit details
    Browse the repository at this point in the history
  7. refactor(util): adapt code to use the new repo api and remove unused …

    …code
    
    all code that interacts with repositories is now under the repo folder, and therefore is deleted here
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    e9d8295 View commit details
    Browse the repository at this point in the history
  8. refactor(repo): declare the functions outside the module.exports

    this allows for future call of these functions recursively if necessary
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    a13d060 View commit details
    Browse the repository at this point in the history
  9. feat(repo): add key to allow to compare users for gitlab in the check…

    … method
    
    gitlab does not return the user login when the contributor's list is fetched. therefore, the name key is used to compare
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    96b80d3 View commit details
    Browse the repository at this point in the history
  10. fix(cli): fix the check command in gitlab based repositories

    the check command was broken because gitlab does not return the user login when fetching contributors. the name is now being used (because it is the only other data stored)
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    8f1bd55 View commit details
    Browse the repository at this point in the history
  11. docs(README): add information about new parameters in the README file

    add 2 new items in the Configuration section: repoType and repoHost
    jgsmarques committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    99b2a99 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2018

  1. Configuration menu
    Copy the full SHA
    fdfdc52 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2018

  1. Configuration menu
    Copy the full SHA
    9bf96ff View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2018

  1. chore(merge): merge branch with jfmengels/master

    github.js and gitlab.js now check for status codes >= 400 and print the
    respective error message
    jgsmarques committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    76ea5ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07b4fc7 View commit details
    Browse the repository at this point in the history
  3. refactor(cli): rename ghContributors to repoContributors

    ghContributors was specific to GitHub, and therefore the variable is
    renamed to be more generic
    jgsmarques committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    7d2dad8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de73626 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9fdfda5 View commit details
    Browse the repository at this point in the history
  6. refactor(github): add custom error message when no contributors are f…

    …ound
    
    Message is "No contributors found on the GIthub repository
    jgsmarques committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    7a906e6 View commit details
    Browse the repository at this point in the history
  7. refactor(gitlab): add custom error message when no contributors are f…

    …ound
    
    Message is "No contributors found on the GitLab repository"
    jgsmarques committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    3ac2d0f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    54304aa View commit details
    Browse the repository at this point in the history