private async Task <bool> RepoShipNeedsWebhookHelpHelper(bool hasHook, bool isAdmin)
        {
            using (var context = new ShipHubContext()) {
                var userAccount = TestUtil.MakeTestUser(context);
                var orgAccount  = new AccountTableType()
                {
                    Id    = 4001,
                    Login = "******",
                    Type  = "org",
                };
                var repo = new RepositoryTableType()
                {
                    Id        = 5001,
                    AccountId = 4001,
                    Name      = "unicorns",
                    FullName  = "pureimaginary/unicorns",
                    Private   = true,
                    HasIssues = true,
                };

                await context.BulkUpdateAccounts(DateTimeOffset.UtcNow, new[] { orgAccount });

                var user = context.Users.Single(x => x.Id == userAccount.Id);
                await context.SaveChangesAsync();

                await context.BulkUpdateRepositories(DateTimeOffset.UtcNow, new[] { repo });

                await context.SetUserOrganizations(user.Id, new[] { orgAccount.Id });

                await context.SetAccountLinkedRepositories(
                    userAccount.Id,
                    new[] { (repo.Id, isAdmin) });