mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
The PullRequestDialog was trying to access `credentials.token` which doesn't exist in the GitCredential interface. The actual token is stored in the `password` field. Additionally, GitLab's API requires the `PRIVATE-TOKEN` header for Personal Access Tokens, not `Authorization: Bearer`. Updated both the GitHub and GitLab API calls to use the correct credential field and proper authentication headers. Changes: - Changed credentials.token to credentials.password for both GitHub and GitLab - Updated GitLab API calls to use PRIVATE-TOKEN header instead of Authorization Bearer - Added comprehensive logging to help debug credential issues - Added validation to check if token is empty and provide helpful error message This fixes the "401 Unauthorized" error when creating merge requests on GitLab.