Help

How to use github and gitlab integration

  • 1. Before you start
    • Make sure you are registered for a competition and your codalab email address is the same that you are using in github/gitlab.
    • Uncheck Keep my email private at github.
  • 2. Create new submission repository
    • Download sample code submission for competition in zip file.
    • Extract content into a folder and initialise git repository git init.
    • Push it to new repository Instruction for github or Instruction for gitlab.
    • Make sure your repository is public.
  • 3.1 Create webhook for Github
    • On repository page click settings -> Webhooks -> Add webhook (it might require confirming password).
    • Set Payload URL https://codalab.coresearch.club/api/competition/{Competition_id}/github_hook, where {Competition_id} should be substituted with an id of a coompetition that you want to participate.
    • Set content type to application/json.
    • Check Just the "push" event.
    • Press Add webhook.
    • Pushing commits to master should trigger submission.
  • 3.2 Create webhook for Gitlab
    • On repository page click settings then integrations.
    • Url https://codalab.coresearch.club/api/competition/{Competition_id}/gitlab_hook, where {Competition_id} should be substituted with an id of a coompetition that you want to participate.
    • On Trigger check Push events.
    • Press Add webhook.
    • Pushing commits to master or pressing test button should trigger submission.