Skip to content
mergecat

Tradusude dal inglês cul jutori de IA. In câs di dubi e vâl la version in inglês.

Conetint GitLab si zontin titui, autôrs e colegaments des merge request, nons dai branch eliminâts, squash e rebase merge, etichetis, issue colegadis, pipeline CI/CD, ambients e deployment ai repository su gitlab.com. Te app, pai repository GitLab la pagjine Pull request si clame Merge request.

Jentrâ

Vierç File › Conessions… (o fâs clic su Dome locâl · Conet te sbare dai struments) e dopre une des dôs opzions te schede GitLab.

Jentre cun GitLab (GitLab 17.2 o plui gnûf). mergecat al copie un codiç tes notis e al vierç GitLab tal to navigadôr, dulà che a valin il to single sign-on e la autenticazion a doi fatôrs. Conferme il codiç e la schede e mostre il to account. La app e domande il scope api. I token di acès a scjadin dopo dôs oris e mergecat ju rinove in automatic. Cheste opzion e à bisugne dal ID de aplicazion di une aplicazion OAuth di GitLab, inserît une volte sole in Impostazions › ID de aplicazion OAuth di GitLab (viôt Configurazion dal aministradôr). Cence di lui il boton al è disativât e la schede lu dîs.

Dopre un token di acès personâl. Tache un token (glpat-…) e fâs clic su Conet. Cree un token al vierç la pagjine dai token di GitLab cul non e il scope za selezionâts.

ScopeAl permet
apiDut, ancje la creazion di merge request.
read_apiDome la leture: dâts de storie, merge request, pipeline e deployment, ma no gnovis merge request.

Une conession GitLab e je di une sole istance GitLab: chê dal repository che al è viert cuant che tu jentris, se no gitlab.com. I token a son cifrâts cul deposit des credenziâls dal sisteme; viôt Dulà che a son salvadis lis credenziâls. Par gjavâ la conession, fâs clic su Disconet te schede GitLab.

Configurazion dal aministradôr: aplicazion OAuth

Jentre cun GitLab al à bisugne di une aplicazion OAuth regjistrade une volte sole par ogni istance GitLab. E pues jessi di un utent, di un grup o di dute la istance (aree di aministrazion). L’ID de aplicazion nol è un segret, e nol covente nissun segret.

Vierç lis impostazions Applications

Sielç dulà che e à di stâ la aplicazion: lis tôs impostazions di utent, lis impostazions di un grup o la aree di aministrazion de istance, po vierç Applications e zonte une gnove aplicazion.

Configurile

Dâi un non, par esempli “mergecat”. Gjave la selezion di Confidential: la aplicazion e à di jessi no confidenziâl, parcè che la app desktop no pues tignî un segret. Selezione il scope api e ative il device authorization grant.

Condivît l’ID de aplicazion

Salve la aplicazion e copie il so Application ID. Ogni persone lu inserìs in Impostazions › ID de aplicazion OAuth di GitLab de app desktop (o tu lu furnissis midiant di MERGECAT_GITLAB_CLIENT_ID); i utents di VS Code lu metin te impostazion mergecat.gitlab.clientId.

Variabilis di ambient

VariabileÛs
MERGECAT_GITLAB_CLIENT_IDID de aplicazion OAuth par Jentre cun GitLab. Al compile la impostazion cuant che e je vueide.
MERGECAT_GITLAB_URLURL de istance GitLab, par GitLab autogjestît e pai test.

Dutis lis variabilis a son listadis in Configurazion.

GitLab autogjestît

I remote des istancis GitLab autogjestidis no vegnin ancjemò ricognossûts: dome i remote gitlab.com. I repository suntun altri host GitLab a vegnin mostrâts come repository locâi.

Risoluzion dai problemis

SintomCe fâ
Jentre cun GitLab al è disativâtInserìs l’ID de aplicazion OAuth in Impostazions, o dopre un token di acès personâl.
La pagjine di acès e segnale un erôrControle che la istance e ziri GitLab 17.2 o plui gnûf e che la aplicazion e sedi no confidenziâl, e vedi il scope api e e permeti il device authorization grant.
GitLab rejected the token (expired, revoked or for another instance).Cree un gnûf token, o torne a jentrâ.
Project … was not found on …, or the account has no access to it.Controle l’URL dal remote, la tô apartignince al progjet e il scope dal token.
GitLab denied the … It needs a token with the "api" scope and at least the Developer role in the project.Par creâ merge request a coventin il scope api e il rûl Developer o un plui alt.
The GitLab sign-in expired (…). Sign in again in Connections.Il rinovament nol è lât ben, par esempli dopo che la aplicazion e je stade cambiade: torne a jentrâ.
API rate limit reached; it resets at …Spiete fin ae ore mostrade, po inzorne.

Prossims pas