Skip to Content
Softagram
  • Home
  • Services
    • ERP
    • AI Services
    • Security
  • Company
  • Contact
  • Blog
    • News
    • Guides
  • Tech
  • Sign in
  • Contact Us
Softagram
      • Home
      • Services
        • ERP
        • AI Services
        • Security
      • Company
      • Contact
      • Blog
        • News
        • Guides
      • Tech
    • Sign in
    • Contact Us

    Setting up main branch for the project if not using master

    Reference
  • All Blogs
  • Oppaat
  • Setting up main branch for the project if not using master
  • August 15, 2020 by
    Setting up main branch for the project if not using master
    Ville Laitila

    It is somewhat common to use develop or something similar as the main branch name. For pull request analysis it doesn't matter, since the hook events (of GitHub, GitLab, Bitbucket, Azure DevOps and Gerrit) give complete information for Softagram about the changes (base/head SHA1). So just for the sake of automated code review, this article is not relevant.

    However, if you want to keep track of the architectural changes in your main branch, and have main branch model available for Softagram Desktop usage, it is good to explicitly define main branch name for Softagram. This happens by running below command on the server (no easier way yet available):

    docker exec -ti softagram python3 ui/cli/softagramservice.py setup_analysis_target --project-id PROJECT --main-branch-name develop --branch-priority-list develop,master

    Remember to replace PROJECT with the UUID of your project and to replace develop with your main branch name. You may have also several, and Softagram will try them on that order one by one to find out a branch that actually exists. This way of having several might be useful in projects with multiple repositories with different branch naming conventions.
    Project ID can be found out in Softagram (via browser) by looking at the URL and using the ID from the URL (bolded):

    ..../0b48b26d-69e4-4da1-9c2e-0e9779afa922/projects/928bae6b-b9ef-49ce-8df0-add4f75a09e5/repos
    ​

    Originally published at help.softagram.com

    in Oppaat
    # Softagram Analyzer

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Ota yhteyttä

    Softagram Oy
    Ketolanperäntie 469 
    90450 ​Kempele 

    • +358504836173
    • info@softagram.com
    Follow us
    Copyright © Softagram Oy
    Powered by Odoo - Create a free website