github integration not 100% after moving project to company org

Matthew Hooker's Avatar

Matthew Hooker

Jun 05, 2017 @ 06:33 PM

Hi All,

We recently moved github.com/mitchellh/packer to https://github.com/hashicorp/packer/

It looks like builds stopped working as soon as we did that. I went to the webhooks setting on github and added my appveyor secret. Now PRs are building correctly, but I notice two things:

1. the appveyor build isn't showing as a check on my PRs any more: https://github.com/hashicorp/packer/pull/4964
2. the appveyor badge doesn't update: https://ci.appveyor.com/api/projects/status/miavlgnp989e5obc/branch/appveyor
3. In appveyor, the branch shows as master, even though it's a PR branch called `appveyor`: https://ci.appveyor.com/project/hashicorp/packer/build/3400

Is there something I can do to fix this without deleting the project and recreating it?

Thanks,
--Matt Hooker

  1. 1 Posted by Ilya Finkelshte... on Jun 05, 2017 @ 08:25 PM

    Ilya Finkelshteyn's Avatar

    Hi Matt,

    1, 2: please try to update you GitHub authorization by revoking and re-adding your GitHub authorization at https://ci.appveyor.com/account. Let us know id this helps.

    3: it is OK, this is build of "virtual merge" of PR to the master branch. It was the same way before you moved your project. If you need AppVeyor to build also in branch where PR was created, please remove branches/only/master white-listing from your configuration.

    Ilya.

  2. 2 Posted by Matthew Hooker on Jun 06, 2017 @ 07:29 PM

    Matthew Hooker's Avatar

    Hi Ilya,

    thanks for getting back to me. I followed your suggestion and the badge looks like it's fixed. Thanks!

    The pull request status check still isn't showing up, though. For example: https://github.com/hashicorp/packer/pull/4971

    which was built in https://ci.appveyor.com/project/hashicorp/packer/build/3423

    I deleted and recreated the webhook and no luck.

    Is there something I still need to do to get it to work?

    Thanks,
    --Matt

  3. 3 Posted by Ilya Finkelshte... on Jun 06, 2017 @ 08:30 PM

    Ilya Finkelshteyn's Avatar

    Hi Matt,

    I see errors 404 on our side when AppVeyor is trying to set statuses using POST to https://api.github.com/repos/hashicorp/packer/statuses/e7c8fa394ca5.... GitHub returns 404 also when access is denied. Can you please ensure account you use to authorize GitHub on AppVeyor has enough permissions to set statuses? Is it the same account you use with Travis?

    Ilya.

  4. 4 Posted by Matthew Hooker on Jun 06, 2017 @ 10:50 PM

    Matthew Hooker's Avatar

    I got it resolved, the user wasn't correctly in my org when I authorized it. Thanks very much for your help.

  5. 5 Posted by Ilya Finkelshte... on Jun 07, 2017 @ 02:53 PM

    Ilya Finkelshteyn's Avatar

    Thank you for update!

  6. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:17 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac