afragen / git-updater-gitlab

GitLab API for Git Updater plugin
MIT License
7 stars 5 forks source link

Howto set private token header #2

Closed zzOzz closed 2 years ago

zzOzz commented 2 years ago

I've got a private gitlab-ce server with a wordpress theme project

I don't understand how can I set private token header to update theme ?

this is the style.css header

/*!
Theme Name: Prairial Neve Child
Theme URI: https://git.mydomain/wordpress/sites/prairial.git
GitLab Theme URI: https://git.mydomain/wordpress/sites/prairial.git
Template: neve
…
afragen commented 2 years ago

You enter the URI to the private GitLab repository. As you have done. You will need to enter the personal access token in the GitLab settings tab as well.

Make sure you use a Primary Branch header if the primary branch is not master.

https://git-updater.com has loads of info.

afragen commented 2 years ago

https://git-updater.com/knowledge-base/self-hosted-enterprise-git-hosts/#articleTOC_2

zzOzz commented 2 years ago

I cannot find where do I put the access token on the plugin side ?

afragen commented 2 years ago

Can you post a screenshot of the Git Updater settings page? Specifically the GitLab tab.

zzOzz commented 2 years ago

You can close this issue.

I found that I have a bug in my wordpress install (gitupdater doesn't activate correctly)

I forgot -> Primary Branch: main

I miss "nocanon" Option in my apache gitlab reverse proxy. (same bug as https://gitlab.com/gitlab-org/gitlab-foss/-/issues/44214)

But now I works !!!

Thanks a lot.