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

Cheating uh? on Merge changes #177

Open
filipebteixeira opened this issue May 14, 2019 · 6 comments
Open

Cheating uh? on Merge changes #177

filipebteixeira opened this issue May 14, 2019 · 6 comments

Comments

@filipebteixeira
Copy link

Hi,

When trying to Merge changes, which points to the Webhook, I get the "Cheating uh?" message. Commits from the server to the Gitlab repo is working properly and on the Status I can see a "modified on remote" as well.

Thanks for your help!

@pdobrescu
Copy link
Contributor

Hi @filipebteixeira ,

That message shows up when the check at this line fails:

https://github.com/presslabs/gitium/blob/master/gitium/gitium-webhook.php#L29

In short, that means Gitium doesn't see the correct key and cannot make the pull from the repo. Is it possible that you don't have in your repo the correct key for Gitium? Have you done a key regeneration since the moment you installed Gitium? Or has the site address changed since then?

@filipebteixeira
Copy link
Author

Hey,

The initial commit was done successfully yesterday, so I'm assuming that the key is correct, right? I didn't do a key regeneration since then and the site address is the same.

Thanks!

@pdobrescu
Copy link
Contributor

Ok, understood. In this case, can you please try the following:

  • logout from the site
  • login again
  • deactivate & reactivate Gitium
  • if the automatic merge didn't take place, try to click on the "Merge changes" button or simply copy/paste the webhook in your browser

Let me know if you still have errors after that.

@filipebteixeira
Copy link
Author

filipebteixeira commented May 17, 2019 via email

@filipebteixeira
Copy link
Author

I could check that $webhook_key = get_option( 'gitium_webhook_key', '' ); returns empty. If I hardcode the webhook_key on the php file, then the if condition is met, but I get a blank page.

I hope this helps to troubleshoot.

@kfathy194
Copy link

Hello, any updates on this issue?
I'm facing the same scenario that happened with @filipebteixeira

Also, follow the steps that @pdobrescu mentioned, but still not fixed.

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

No branches or pull requests

3 participants