Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Locales] Fix gh workflow #4256

Closed
wants to merge 13 commits into from
Closed

[Locales] Fix gh workflow #4256

wants to merge 13 commits into from

Conversation

pierreozoux
Copy link
Member

Fixes #4252 sorry :/

@mgallien
Copy link
Collaborator

mgallien commented Feb 9, 2022

/rebase

@pierreozoux pierreozoux force-pushed the generates_locales branch 2 times, most recently from be623b2 to 8006dcf Compare February 9, 2022 14:03
@sonarcloud
Copy link

sonarcloud bot commented Feb 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@pierreozoux
Copy link
Member Author

Hey @mgallien!

I found a way to test my gh action, and I managed to make it work.

But now, I have a dilemma.

I think the cleanest would be to allow the gh action to push the result of cd doc && make gettext directly to the master branch.
But this would need 2 things:

  • admin are allowed to push directly to master
  • and we put an admin token as a secret for the gh action to use to push to master
    (This is described here

I find it the cleanest, but I understand that it has security implication.

The second option is to use a PR and auto approve it, it is what we have in the documentation folder:

  • PR part
  • but I just realized, the auto approve is currently broken :/

What is your opinion?

@mgallien
Copy link
Collaborator

Hey @mgallien!

I found a way to test my gh action, and I managed to make it work.

But now, I have a dilemma.

I think the cleanest would be to allow the gh action to push the result of cd doc && make gettext directly to the master branch. But this would need 2 things:

* admin are allowed to push directly to master

* and we put an admin token as a secret for the gh action to use to push to master
  (This is described [here](https://github.com/actions/checkout/issues/344#issuecomment-801724874)

I find it the cleanest, but I understand that it has security implication.

The second option is to use a PR and auto approve it, it is what we have in the documentation folder:

* [PR part](https://github.com/nextcloud/documentation/blob/master/.github/workflows/generate_catalog_templates.yml#L20-L24)

* but I just realized, the auto approve is currently broken :/

What is your opinion?

I am sorry to ask you more work but I guess I would prefer the auto approved PR as this is what we are supposed to have in the server (if I understand correctly)
this is also probably safer in case of troubles

@mgallien
Copy link
Collaborator

@pierreozoux nice ping
if I understand correctly more work is needed here
I think your contribution would be highly appreciated

@p-bo
Copy link

p-bo commented May 3, 2022

@pierreozoux

  • but I just realized, the auto approve is currently broken :/

Only to be sure that understood correctly - broken is GitHub component/addon itself (is it this? https://github.com/hmarr/auto-approve-action/issues ) or way how it is used in Nextcloud development workflow please?

@mgallien is implementation of merging of server docs and UI strings translations (which are already functional) also under such strict policy as demanded here for this attempt for adding of client docs translation please? It would be unfortunate to block newly added areas to translate only due different demands then and now, probably.

pierreozoux and others added 12 commits May 4, 2022 13:37
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
@mgallien mgallien force-pushed the generates_locales branch from 9dce54b to 066ab31 Compare May 4, 2022 11:37
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-4256-121dba6f6b4a8e8064c54adcd223707fad10d44b-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarcloud
Copy link

sonarcloud bot commented May 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@pierreozoux
Copy link
Member Author

Ok, I found some time to rework on this piece.

I'm trying to fix user documentation here.

Once it is done, I'll replicate here.

I'll close this PR in the mean time.

@pierreozoux pierreozoux deleted the generates_locales branch May 16, 2022 12:40
@mgallien
Copy link
Collaborator

Ok, I found some time to rework on this piece.

I'm trying to fix user documentation here.

Once it is done, I'll replicate here.

I'll close this PR in the mean time.

thanks a lot for this contribution
if I can help ping me
if I miss the ping, please ping me again 😄

@pierreozoux
Copy link
Member Author

@mgallien can you approve the other PR?
nextcloud/documentation#8316 ?

Thanks :)

@p-bo
Copy link

p-bo commented May 19, 2022

@mgallien

if I miss the ping, please ping me again smile

As you suggested, pinging you again regarding approving nextcloud/documentation#8316 due this message on Transifex:

Scheduled maintenance on Sunday, 22nd of May from 06:00 (UTC) until 12:00 (UTC). During this time Transifex application will be offline.

To ideally start sync with Transifex before this outage and thus be able to start translating on this weekend already.

Thanks :-)

@p-bo
Copy link

p-bo commented Jun 3, 2022

Ok, I found some time to rework on this piece.

I'm trying to fix user documentation here.

Once it is done, I'll replicate here.

I'll close this PR in the mean time.

@pierreozoux
Hi, it seems, that in documentation repo is automatic approving working great now after all your work - https://github.com/nextcloud/documentation/pulls?q=is%3Apr+is%3Aclosed - good work!

So would it be possible to replicate in this repository to be able to advance on #3234 please?

Many thanks and sorry for I'm unable to help more than tracking all of this and translating then into my native language :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants