Issue with GitHub integraction, "no metadata to Github file path"

At RERO, we have three projects that make use of transifex, and we configure the GitHub integration. For two projects, the integration took place as we opened the projects on transifex, and it works fine.

But for the third one, the project already existed on transifex, and we’re struggling a lot to make it work. In the GitHub to transifex, everything is ok. But when a resource is ready (ie 100 % translate and 100 % revised), the synchronisation fails with this message:

p:reroils:r:rero-ils-translations-messages-pot--dev:l:en
Transifex resource with project slug `reroils` and resource slug `rero-ils-translations-messages-pot--dev` has no metadata to indicate the Github file path

The project is this one: https://www.transifex.com/rero/reroils
Here the resource: https://www.transifex.com/rero/reroils/rero-ils-translations-messages-pot--dev/
The project on GitHub: https://github.com/rero/rero-ils

The configuration file:

filters:
  - filter_type: file
    file_format: PO
    source_language: en_US
    source_file: rero_ils/translations/messages.pot
    translation_files_expression: 'rero_ils/translations/<lang>/LC_MESSAGES/messages.po'

Here a glimpse of the files paths:

rero_ils/translations/messages.pot
rero_ils/translations/<lang>/LC_MESSAGES/messages.po

We tried a lot of things. And we’re not sure to understand correctly the error message, because where transifex is looking for metadata to the github file path? In the configuation file (integration parameters), or in the messages.pot, or in the slug?
I’ve check the thread on github integration here, and on the web, but couldn’t find anything about this missing metadata.

Hello Igor,

Thank you for reaching out Transifex support. We are looking at your issue. We will answer to you as soon as possible.

Kind Regards,
Panagiotis

Thanks. I hope we will find a solution! :slightly_smiling_face:

Hello Igor,

I am posting here the solution to the issue you reported in case someone else comes across the same issue in the future.

When we sync resources with GitHub, the system automatically updates the resource slug in Transifex. This change should automatically be done by the system and not manually. Otherwise, the 2 systems won’t be able to connect.

More information about how this works can be found in our documentation guide here.

Kind regards,
Panagiotis