Page MenuHomePhabricator

Translations updates are blocked
Closed, ResolvedPublic

Description

Error Output:                                                                                                                                                                                                     
================                                                                                                                                                                                                  
remote: error: GH006: Protected branch update failed for refs/heads/master.                                                                                                                                       
remote: error: You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information.                                                               
To github.com:wikimedia/wikilabels.git                                                                                                                                                                            
 ! [remote rejected] master -> master (protected branch hook declined)                                                                                                                                            
error: failed to push some refs to 'git@github.com:wikimedia/wikilabels.git'

Did you change config recently?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Either the protection needs to be lifted, or translatewiki account needs to be given an exception, or we can also submit pull requests if that works better with your workflow.

@calbon Are you the right person to ping to see if Language Team can get your help on this?

I added translatewiki to list of exceptions for wikilabels, is there any other ML repos using translatewiki?

Thanks a lot @Ladsgroup and @RhinosF1! Can somebody add a TL;DR about this use case? +1 for the exception if needed (sorry for the trouble), but we'll migrate to the new pipeline during the next months so it is good to know all use cases :)

It's about i18n of interface of https://labels.wmflabs.org/ An example commit would be https://github.com/wikimedia/wikilabels/commit/ef085313dbbfa5ff009164c07d2873202ef0c852

I don't think this would be affected by lift wing migration since ores and their models don't have i18n in twn.

+1 an exception. Sorry all for the blockage.

Thanks for checking this! Unfortunately it's not quite fixed yet:

Error Output:                                                                                                                                                                                                     
================                                                                                                                                                                                                  
remote: error: GH006: Protected branch update failed for refs/heads/master.                                                                                                                                       
remote: error: At least 1 approving review is required by reviewers with write access.                                                                                                                            
To github.com:wikimedia/wikilabels.git                                                                                                                                                                            
 ! [remote rejected] master -> master (protected branch hook declined)                                                                                                                                            
error: failed to push some refs to 'git@github.com:wikimedia/wikilabels.git'

I can't figure out from configuration how this can be fixed now. You can now push but it still needs review from someone else.

I am not sure whether GitHub supports skipping reviewers. If it doesn't, then pull requests seem to be the only way to solve this.

@Nikerabbit I removed the pull request setting, can you check if it works now? (the restrictions about who can push to master are still in place so I think it is enough!)

Works now:

$ repomulti commit wiki-ai
wiki-ai
cd 'wiki-ai/wikilabels'; git add .; if ! git diff --cached --quiet; then git commit -m 'Localisation updates from https://translatewiki.net.'; git rebase 'origin/master' && git push origin 'master'; fi
[master 19ee64e] Localisation updates from https://translatewiki.net.
 1 file changed, 1 insertion(+), 1 deletion(-)
elukey claimed this task.

I think that we can close, pleas re-open if anything is missing!