Skip to content

Commit 0bbc5d4

Browse files
[MIG] github_connector: Migration to 16.0
1 parent 4abbd89 commit 0bbc5d4

File tree

6 files changed

+56
-50
lines changed

6 files changed

+56
-50
lines changed

github_connector/README.rst

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Github Connector
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:172dac30ce966c778439018b298d96f8ec3a8ae3d5d15a5f5f761eb5ff410b7c
10+
!! source digest: sha256:dad28b6014a3bd7622c9518632965cf22344f93be8f38788b0c4b1d7e87087af
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Github Connector
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github
20-
:target: https://github.com/OCA/interface-github/tree/15.0/github_connector
20+
:target: https://github.com/OCA/interface-github/tree/16.0/github_connector
2121
:alt: OCA/interface-github
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/interface-github-15-0/interface-github-15-0-github_connector
23+
:target: https://translation.odoo-community.org/projects/interface-github-16-0/interface-github-16-0-github_connector
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -87,7 +87,7 @@ https://docs.github.com/en/rest/overview/other-authentication-methods#via-userna
8787
download (potentially with a lot of repositories) in order to reduce the
8888
size of the transaction
8989

90-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_settings.png
90+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_settings.png
9191

9292
#. Go to your(s) user(s) form to add them in the new 'Connector Github Manager'
9393
groups. The members of this group will have the possibility to run Github
@@ -114,18 +114,18 @@ To fetch information from Github, you have to:
114114
#. go to 'Github' / 'Settings' / 'Sync Object'
115115
#. Select the object type you want to synchronize and its Gthub name
116116

117-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/sync_organization.png
117+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/sync_organization.png
118118

119119
#. Once done for your organization(s), go to 'Github' / 'Github Commnunity' /
120120
'Organizations'
121121

122-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_organization_kanban.png
122+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_organization_kanban.png
123123

124124
#. Optionally, once organization is created, you can create series for your
125125
projects. Go to 'Github' / 'Organizations' / click on your organization /
126126
'Organization Series' Tabs
127127

128-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_organization_series.png
128+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_organization_series.png
129129

130130
Select branches to download
131131
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -140,12 +140,12 @@ main branches (releases):
140140
#. In the 'Settings' tab, set the URL of the 'External Services' you use
141141
for Continuous Integration and Coverage.
142142

143-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_organization_external_services.png
143+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_organization_external_services.png
144144

145145
#. Once done, click on buttons 'Syncs', to synchronize repositories, teams and
146146
members. (This process can take a while depending of your size)
147147

148-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_organization_sync_buttons.png
148+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_organization_sync_buttons.png
149149

150150
Team / members synchronization
151151
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -154,16 +154,16 @@ You can synchronize members teams:
154154

155155
#. Go to 'Teams' / tree view / 'Actions' / 'Update from Github'.
156156

157-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_team_kanban.png
157+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_team_kanban.png
158158

159159
#. In each team, you can see the members list and the role of the members
160160

161-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_team_partner_kanban.png
161+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_team_partner_kanban.png
162162

163163
#. In each team, you can see the repositories list but not the permissions of the
164164
team. (See 'Known Issues' Section)
165165

166-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_team_repository_kanban.png
166+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_team_repository_kanban.png
167167

168168
Repositories synchronization
169169
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -173,12 +173,12 @@ You can synchronize the branches of your repositories:
173173
#. Go to 'Repositories' /
174174
tree view / 'Actions' / 'Update from Github'
175175

176-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_repository_kanban.png
176+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_repository_kanban.png
177177

178178
#. In each repository, you can see the main branches list and the size of code
179179
source.
180180

181-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_repository_branch_kanban.png
181+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_repository_branch_kanban.png
182182

183183
Fetching the source code
184184
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -187,11 +187,11 @@ Finally, you can download locally the source code of all your branches:
187187

188188
#. Go to 'Repository Branches' / tree view / 'Actions' / 'Download and Analyse Source Code'.
189189

190-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/wizard_download_analyze.png
190+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/wizard_download_analyze.png
191191

192192
#. In the tree view you can update manually source code or refresh analysis.
193193

194-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_repository_branch_list.png
194+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_repository_branch_list.png
195195

196196
Analysis source code
197197
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -232,14 +232,14 @@ You have the possibility to creates two items in Github directly from Odoo
232232
#. Later on, a synchronization will be performed, to create the according
233233
team in the Odoo instance.
234234

235-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/wizard_create_team.png
235+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/wizard_create_team.png
236236

237237
#. Repositories:
238238

239239
#. Go to 'Settings' / 'Create Team in Github'.
240240
#. Set the information and click on Create in Github.
241241

242-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/wizard_create_repository.png
242+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/wizard_create_repository.png
243243

244244
Note
245245
~~~~
@@ -261,15 +261,15 @@ This module provides several reports
261261

262262
**Branches by Serie**
263263

264-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/reporting_branches_by_serie.png
264+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/reporting_branches_by_serie.png
265265

266266
**Sizes by Serie**
267267

268-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/reporting_sizes_by_serie.png
268+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/reporting_sizes_by_serie.png
269269

270270
**Repository branch analysis rule**
271271

272-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector/static/description/github_repository_branch_rule_info_report.png
272+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector/static/description/github_repository_branch_rule_info_report.png
273273

274274
Known issues / Roadmap
275275
======================
@@ -305,7 +305,7 @@ Bug Tracker
305305
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_.
306306
In case of trouble, please check there if your issue has already been reported.
307307
If you spotted it first, help us to smash it by providing a detailed and welcomed
308-
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
308+
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
309309

310310
Do not contact contributors directly about support or help with technical issues.
311311

@@ -335,6 +335,7 @@ Contributors
335335
* Carlos Roca
336336
* Víctor Martínez
337337
* João Marques
338+
* Carolina Fernandez
338339

339340
Maintainers
340341
~~~~~~~~~~~
@@ -349,6 +350,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
349350
mission is to support the collaborative development of Odoo features and
350351
promote its widespread use.
351352

352-
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/15.0/github_connector>`_ project on GitHub.
353+
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/16.0/github_connector>`_ project on GitHub.
353354

354355
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

github_connector/__manifest__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
33
# @author: Sébastien BEAU <sebastien.beau@akretion.com>
44
# Copyright 2019 Tecnativa - Cristina Martin R.
5+
# Copyright 2024 Tecnativa - Carolina Fernandez
56
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
67
{
78
"name": "Github Connector",
89
"summary": "Synchronize information from Github repositories",
9-
"version": "15.0.2.0.1",
10+
"version": "16.0.1.0.0",
1011
"category": "Connector",
1112
"license": "AGPL-3",
1213
"author": "Odoo Community Association (OCA), GRAP, Akretion, Tecnativa",
@@ -43,7 +44,7 @@
4344
],
4445
"installable": True,
4546
"external_dependencies": {
46-
"python": ["GitPython", "pathspec", "PyGithub"],
47+
"python": ["GitPython", "pathspec", "PyGithub", "responses"],
4748
"bin": ["cloc"],
4849
# special definition used by OCA to install packages
4950
"deb": ["cloc"],

github_connector/models/github_repository_branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class GithubRepository(models.Model):
109109
)
110110

111111
# Init Section
112-
def __init__(self, pool, cr):
112+
def _auto_init(self):
113113
source_path = self._get_source_path()
114114
if source_path and not os.path.exists(source_path):
115115
try:
@@ -127,7 +127,7 @@ def __init__(self, pool, cr):
127127
)
128128
if source_path and source_path not in addons.__path__:
129129
addons.__path__.append(source_path)
130-
super().__init__(pool, cr)
130+
return super()._auto_init()
131131

132132
def _get_source_path(self):
133133
return tools.config.get("source_code_local_path", "") or os.environ.get(

github_connector/readme/CONTRIBUTORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
* Carlos Roca
1212
* Víctor Martínez
1313
* João Marques
14+
* Carolina Fernandez

0 commit comments

Comments
 (0)