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

Github commits not successfully triggering packagist #572

Closed
Danack opened this issue Aug 22, 2015 · 5 comments
Closed

Github commits not successfully triggering packagist #572

Danack opened this issue Aug 22, 2015 · 5 comments
Labels

Comments

@Danack
Copy link

Danack commented Aug 22, 2015

For several projects that I have set up recently, the Packagist Webhook I have setup on Github for the project appears to be configured correctly on Github, but no pushes appear to be reaching Packagist, and it still has the message "This package is not auto-updated."

I've checked the setup for them quite a few times, and obviously it could still be me doing something dumb but I can't see anything different to how my other projects are setup that are successfully working.

Doing the 'test service' in Github gives the message "Okay, the test payload is on its way." but there is no update on the packagist end.

Incidentally, I recently linked my Github account to my packagist account. That may or may not be totally unrelated.

One of the projects that has this problem is:

https://github.com/Danack/Tier
https://packagist.org/packages/danack/tier

Obviously there is a work-around of going to Packagist and hitting the 'update' button for each package after doing a commit/tag, but it would be nice to have the automatic updating working.

@alcohol
Copy link
Member

alcohol commented Aug 22, 2015

You added your packagist API token?

@Seldaek
Copy link
Member

Seldaek commented Aug 22, 2015

Common issues:

  • you used the packagist email or github username instead of the packagist username in the username field
  • you borked your API token copy paste somehow (unlikely I think)
  • you added a domain name with some sort of weirdness instead of leaving that field empty
  • GitHub just messed up. It seems it happens sometimes and that deleting and re-creating the hook entirely helps fix it. Worth a shot.

@Danack
Copy link
Author

Danack commented Aug 24, 2015

So - I think the issue was that the url I had setup did not match exactly.

Deleting the packages from Packagist and re-creating them with the exact spelling as the git repo made them work.

For one of the projects I was having trouble with, I had also managed to set it up with a non-https URL i.e. http://www.github.com/danack/caching instead of https://github.com/Danack/Caching

So I guess this is turning into a feature request to either grab the canonical when setting up a repo, or allow matching based on normalized urls, or just prevent dumbos like me from being able to setup an entry in packagist in a way that is never going to be able to process the push hook from Github.

@stof
Copy link
Contributor

stof commented Aug 25, 2015

well, http vs https is handled already IIRC. but you have an extra www in your case.

@Seldaek
Copy link
Member

Seldaek commented Aug 25, 2015

Yeah we do get the canonical for github repos but I think the issue is actually that using www.github.com made it skip the github driver and instead just use the repo as a plain git repo, which skipped the canonical step. That'll have to be fixed in composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants