mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.47k stars 528 forks source link

Properly retrieve latest commit id from empty repositories #2089

Open bugzilla-to-github opened 7 years ago

bugzilla-to-github commented 7 years ago

This issue was created automatically by a script.

Bug 1396357

Bug Reporter: @flodolo CC: @mathjazz

I've added Interlingua (ia) this morning https://pontoon.mozilla.org/ia/

Repository is available on BitBucket https://bitbucket.org/mozilla-l10n/ia

Added Firefox, but it's stuck on "Not synced yet".

bugzilla-to-github commented 7 years ago

Comment Author: @mathjazz

Pontoon uses https://api.bitbucket.org/2.0/repositories/mozilla-l10n/{locale_code}/commit/default to get the latest commit id from.

In the case of the ia repository, there aren't any commits yet, so https://api.bitbucket.org/2.0/repositories/mozilla-l10n/ia/commit/default 404s.

bugzilla-to-github commented 7 years ago

Comment Author: @flodolo

Should I wait for a fix on Pontoon's side, or just push one file to the repository in the meantime?

bugzilla-to-github commented 7 years ago

Comment Author: @mathjazz

You can go ahead and push something.

mathjazz commented 8 months ago

Lowering priority, since we're no longer adding new per-locale repositories.