Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

165 lines
5.6KB

  1. Initial upload from Github
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. To fetch information from Github, you have to:
  4. #. go to 'Github' / 'Settings' / 'Sync Object'
  5. #. Select the object type you want to synchronize and its Gthub name
  6. .. image:: ../static/description/sync_organization.png
  7. #. Once done for your organization(s), go to 'Github' / 'Github Commnunity' /
  8. 'Organizations'
  9. .. image:: ../static/description/github_organization_kanban.png
  10. #. Optionally, once organization is created, you can create series for your
  11. projects. Go to 'Github' / 'Organizations' / click on your organization /
  12. 'Organization Series' Tabs
  13. .. image:: ../static/description/github_organization_series.png
  14. Select branches to download
  15. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. This setting will prevent to download undesired branches, downloading only
  17. main branches (releases):
  18. #. In the 'Settings' tab, set repositories you don't want to download
  19. (or repositories you want to download). If 'Specific repositories' is set,
  20. 'Ignored Repositories' value is ignored.
  21. #. In the 'Settings' tab, set the URL of the 'External Services' you use
  22. for Continuous Integration and Coverage.
  23. .. image:: ../static/description/github_organization_external_services.png
  24. #. Once done, click on buttons 'Syncs', to synchronize repositories, teams and
  25. members. (This process can take a while depending of your size)
  26. .. image:: ../static/description/github_organization_sync_buttons.png
  27. Team / members synchronization
  28. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. You can synchronize members teams:
  30. #. Go to 'Teams' / tree view / 'Actions' / 'Update from Github'.
  31. .. image:: ../static/description/github_team_kanban.png
  32. #. In each team, you can see the members list and the role of the members
  33. .. image:: ../static/description/github_team_partner_kanban.png
  34. #. In each team, you can see the repositories list but not the permissions of the
  35. team. (See 'Known Issues' Section)
  36. .. image:: ../static/description/github_team_repository_kanban.png
  37. Repositories synchronization
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. You can synchronize the branches of your repositories:
  40. #. Go to 'Repositories' /
  41. tree view / 'Actions' / 'Update from Github'
  42. .. image:: ../static/description/github_repository_kanban.png
  43. #. In each repository, you can see the main branches list and the size of code
  44. source.
  45. .. image:: ../static/description/github_repository_branch_kanban.png
  46. Fetching the source code
  47. ~~~~~~~~~~~~~~~~~~~~~~~~
  48. Finally, you can download locally the source code of all your branches:
  49. #. Go to 'Repository Branches' / tree view / 'Actions' / 'Download and Analyse Source Code'.
  50. .. image:: ../static/description/wizard_download_analyze.png
  51. #. In the tree view you can update manually source code or refresh analysis.
  52. .. image:: ../static/description/github_repository_branch_list.png
  53. Analysis source code
  54. ~~~~~~~~~~~~~~~~~~~~~~~~
  55. It's possible to create custom analysis rules that relate to a GitHub organization, GitHub repository and/or GitHub repository branch to analyze code.
  56. #. Go to 'Settings' / 'Analysis rule groups' and create records that allow to organize the rules
  57. #. Go to 'Settings' / 'Analysis rules' and create rules, for example:
  58. 1. Name: All code, Group: General, Paths: ``*``
  59. 2. Name: Python code, Group: General, Paths: ``*.py``
  60. 3. Name: Xml code, Group: General, Paths: ``*.xml``
  61. 4. Name: Repository 1, Group: Custom, Paths: /path/
  62. Note: Paths field in 'Analysis rule' allow to put multiple paths for line, path format is according to https://git-scm.com/docs/gitignore#_pattern_format
  63. #. Go to *GitHub > GitHub Community > Organizations* and define Analysis rules (optional)
  64. #. Go to *GitHub > GitHub Repository > Repositories* and define Analysis rules (optional)
  65. #. Go to *GitHub > GitHub Repository > Repository Branches* and define Analysis rules (optional)
  66. Analysis source code is executed when 'Update Source Code Analysis' button in some 'Repository Branch', get all the Analysis rules (Repository + Organization) and analyze code and generate info about it
  67. Other option to Analysis source code is in cron called 'Analyze Source Code for All Github Branches'
  68. You can see in 'Repository Branch' / 'Code Analysis' the info obtained from analysis rules.
  69. Data creation in Github
  70. ~~~~~~~~~~~~~~~~~~~~~~~
  71. You have the possibility to creates two items in Github directly from Odoo
  72. #. Teams:
  73. #. Go to 'Settings' / 'Create Team in Github'.
  74. #. Set the information and click on Create in Github.
  75. #. Odoo will try to create the team. If access right and datas are correct,
  76. the creation will be done directly in Github
  77. #. Later on, a synchronization will be performed, to create the according
  78. team in the Odoo instance.
  79. .. image:: ../static/description/wizard_create_team.png
  80. #. Repositories:
  81. #. Go to 'Settings' / 'Create Team in Github'.
  82. #. Set the information and click on Create in Github.
  83. .. image:: ../static/description/wizard_create_repository.png
  84. Note
  85. ~~~~
  86. Analysis in this module is basic: for the time being, it just gives branches
  87. size.
  88. Nevertheless, you can develop an extra Odoo Custom module to extend analysis
  89. function and get extra statistics, depending on your needs.
  90. In that way, you can see the module github_connector_odoo, if your repositories
  91. contain Odoo modules.
  92. Reporting
  93. ~~~~~~~~~
  94. This module provides several reports
  95. **Branches by Serie**
  96. .. image:: ../static/description/reporting_branches_by_serie.png
  97. **Sizes by Serie**
  98. .. image:: ../static/description/reporting_sizes_by_serie.png
  99. **Repository branch analysis rule**
  100. .. image:: ../static/description/github_repository_branch_rule_info_report.png
上海开阖软件有限公司 沪ICP备12045867号-1