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

Unable to link an organisation repo #119

Closed
JuliusSweetland opened this issue May 12, 2016 · 8 comments
Closed

Unable to link an organisation repo #119

JuliusSweetland opened this issue May 12, 2016 · 8 comments

Comments

@JuliusSweetland
Copy link

I am the owner of the OptiKey repo (which is owned by the OptiKey organisation) - CLA doesn't recognise this repo and allow me to link it. Am I doing something wrong or is this a genuine issue?

@KharitonOff
Copy link
Contributor

Hi Julius,
that's strange, it seems to be a bug.
Could you call this API, please :
https://api.github.com/user/repos?per_page=100&affiliation=owner,organization_member
(e.g. you can use postman with basic authentication) and check whether your repository is in the list and permissions for this repo are set to true (at least "push" should be true)

"permissions": {
            "admin": true,
            "push": true,
            "pull": true
        }

@JuliusSweetland
Copy link
Author

JuliusSweetland commented May 12, 2016

@KharitonOff I cannot authenticate as I use 2 factor authentication (2fa) and so get this response:

{
  "message": "Must specify two-factor authentication OTP code.",
  "documentation_url": "https://developer.github.com/v3/auth#working-with-two-factor-authentication"
}

Do you know how to specify a 2fa code in the request (using postman)?

@JuliusSweetland
Copy link
Author

@KharitonOff Ignore that - I figured out how to issue personal access tokens and now get this result from the request:

[
    {
        "id": 33625817,
        "name": "inputsimulator",
        "full_name": "JuliusSweetland/inputsimulator",
        "owner": {
            "login": "JuliusSweetland",
            "id": 4722561,
            "avatar_url": "https://avatars.githubusercontent.com/u/4722561?v=3",
            "gravatar_id": "",
            "url": "https://api.github.com/users/JuliusSweetland",
            "html_url": "https://github.com/JuliusSweetland",
            "followers_url": "https://api.github.com/users/JuliusSweetland/followers",
            "following_url": "https://api.github.com/users/JuliusSweetland/following{/other_user}",
            "gists_url": "https://api.github.com/users/JuliusSweetland/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/JuliusSweetland/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/JuliusSweetland/subscriptions",
            "organizations_url": "https://api.github.com/users/JuliusSweetland/orgs",
            "repos_url": "https://api.github.com/users/JuliusSweetland/repos",
            "events_url": "https://api.github.com/users/JuliusSweetland/events{/privacy}",
            "received_events_url": "https://api.github.com/users/JuliusSweetland/received_events",
            "type": "User",
            "site_admin": false
        },
        "private": false,
        "html_url": "https://github.com/JuliusSweetland/inputsimulator",
        "description": " Windows Input Simulator (C# SendInput Wrapper - Simulate Keyboard and Mouse)",
        "fork": true,
        "url": "https://api.github.com/repos/JuliusSweetland/inputsimulator",
        "forks_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/forks",
        "keys_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/teams",
        "hooks_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/hooks",
        "issue_events_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/issues/events{/number}",
        "events_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/events",
        "assignees_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/assignees{/user}",
        "branches_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/branches{/branch}",
        "tags_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/tags",
        "blobs_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/languages",
        "stargazers_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/stargazers",
        "contributors_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/contributors",
        "subscribers_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/subscribers",
        "subscription_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/subscription",
        "commits_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/contents/{+path}",
        "compare_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/merges",
        "archive_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/downloads",
        "issues_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/issues{/number}",
        "pulls_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/labels{/name}",
        "releases_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/releases{/id}",
        "deployments_url": "https://api.github.com/repos/JuliusSweetland/inputsimulator/deployments",
        "created_at": "2015-04-08T18:51:39Z",
        "updated_at": "2015-08-17T20:31:19Z",
        "pushed_at": "2015-04-08T19:16:21Z",
        "git_url": "git://github.com/JuliusSweetland/inputsimulator.git",
        "ssh_url": "git@github.com:JuliusSweetland/inputsimulator.git",
        "clone_url": "https://github.com/JuliusSweetland/inputsimulator.git",
        "svn_url": "https://github.com/JuliusSweetland/inputsimulator",
        "homepage": null,
        "size": 851,
        "stargazers_count": 1,
        "watchers_count": 1,
        "language": "C#",
        "has_issues": false,
        "has_downloads": true,
        "has_wiki": true,
        "has_pages": false,
        "forks_count": 1,
        "mirror_url": null,
        "open_issues_count": 0,
        "forks": 1,
        "open_issues": 0,
        "watchers": 1,
        "default_branch": "master",
        "permissions": {
            "admin": true,
            "push": true,
            "pull": true
        }
    },
    {
        "id": 39097134,
        "name": "NBug",
        "full_name": "JuliusSweetland/NBug",
        "owner": {
            "login": "JuliusSweetland",
            "id": 4722561,
            "avatar_url": "https://avatars.githubusercontent.com/u/4722561?v=3",
            "gravatar_id": "",
            "url": "https://api.github.com/users/JuliusSweetland",
            "html_url": "https://github.com/JuliusSweetland",
            "followers_url": "https://api.github.com/users/JuliusSweetland/followers",
            "following_url": "https://api.github.com/users/JuliusSweetland/following{/other_user}",
            "gists_url": "https://api.github.com/users/JuliusSweetland/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/JuliusSweetland/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/JuliusSweetland/subscriptions",
            "organizations_url": "https://api.github.com/users/JuliusSweetland/orgs",
            "repos_url": "https://api.github.com/users/JuliusSweetland/repos",
            "events_url": "https://api.github.com/users/JuliusSweetland/events{/privacy}",
            "received_events_url": "https://api.github.com/users/JuliusSweetland/received_events",
            "type": "User",
            "site_admin": false
        },
        "private": false,
        "html_url": "https://github.com/JuliusSweetland/NBug",
        "description": "NBug is a .NET library created to automate the bug reporting process. It automatically creates and sends: * Bug reports, * Crash reports with minidump, * Error/exception reports with stack trace + ext. info. It can also be set up as a user feedback system (i.e. feature requests).",
        "fork": true,
        "url": "https://api.github.com/repos/JuliusSweetland/NBug",
        "forks_url": "https://api.github.com/repos/JuliusSweetland/NBug/forks",
        "keys_url": "https://api.github.com/repos/JuliusSweetland/NBug/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/JuliusSweetland/NBug/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/JuliusSweetland/NBug/teams",
        "hooks_url": "https://api.github.com/repos/JuliusSweetland/NBug/hooks",
        "issue_events_url": "https://api.github.com/repos/JuliusSweetland/NBug/issues/events{/number}",
        "events_url": "https://api.github.com/repos/JuliusSweetland/NBug/events",
        "assignees_url": "https://api.github.com/repos/JuliusSweetland/NBug/assignees{/user}",
        "branches_url": "https://api.github.com/repos/JuliusSweetland/NBug/branches{/branch}",
        "tags_url": "https://api.github.com/repos/JuliusSweetland/NBug/tags",
        "blobs_url": "https://api.github.com/repos/JuliusSweetland/NBug/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/JuliusSweetland/NBug/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/JuliusSweetland/NBug/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/JuliusSweetland/NBug/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/JuliusSweetland/NBug/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/JuliusSweetland/NBug/languages",
        "stargazers_url": "https://api.github.com/repos/JuliusSweetland/NBug/stargazers",
        "contributors_url": "https://api.github.com/repos/JuliusSweetland/NBug/contributors",
        "subscribers_url": "https://api.github.com/repos/JuliusSweetland/NBug/subscribers",
        "subscription_url": "https://api.github.com/repos/JuliusSweetland/NBug/subscription",
        "commits_url": "https://api.github.com/repos/JuliusSweetland/NBug/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/JuliusSweetland/NBug/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/JuliusSweetland/NBug/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/JuliusSweetland/NBug/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/JuliusSweetland/NBug/contents/{+path}",
        "compare_url": "https://api.github.com/repos/JuliusSweetland/NBug/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/JuliusSweetland/NBug/merges",
        "archive_url": "https://api.github.com/repos/JuliusSweetland/NBug/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/JuliusSweetland/NBug/downloads",
        "issues_url": "https://api.github.com/repos/JuliusSweetland/NBug/issues{/number}",
        "pulls_url": "https://api.github.com/repos/JuliusSweetland/NBug/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/JuliusSweetland/NBug/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/JuliusSweetland/NBug/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/JuliusSweetland/NBug/labels{/name}",
        "releases_url": "https://api.github.com/repos/JuliusSweetland/NBug/releases{/id}",
        "deployments_url": "https://api.github.com/repos/JuliusSweetland/NBug/deployments",
        "created_at": "2015-07-14T19:52:25Z",
        "updated_at": "2015-09-11T12:53:27Z",
        "pushed_at": "2015-07-14T20:05:25Z",
        "git_url": "git://github.com/JuliusSweetland/NBug.git",
        "ssh_url": "git@github.com:JuliusSweetland/NBug.git",
        "clone_url": "https://github.com/JuliusSweetland/NBug.git",
        "svn_url": "https://github.com/JuliusSweetland/NBug",
        "homepage": "http://www.soygul.com/nbug",
        "size": 1260,
        "stargazers_count": 1,
        "watchers_count": 1,
        "language": "C#",
        "has_issues": false,
        "has_downloads": true,
        "has_wiki": false,
        "has_pages": false,
        "forks_count": 0,
        "mirror_url": null,
        "open_issues_count": 0,
        "forks": 0,
        "open_issues": 0,
        "watchers": 1,
        "default_branch": "master",
        "permissions": {
            "admin": true,
            "push": true,
            "pull": true
        }
    },
    {
        "id": 21836148,
        "name": "OptiKey",
        "full_name": "OptiKey/OptiKey",
        "owner": {
            "login": "OptiKey",
            "id": 15629872,
            "avatar_url": "https://avatars.githubusercontent.com/u/15629872?v=3",
            "gravatar_id": "",
            "url": "https://api.github.com/users/OptiKey",
            "html_url": "https://github.com/OptiKey",
            "followers_url": "https://api.github.com/users/OptiKey/followers",
            "following_url": "https://api.github.com/users/OptiKey/following{/other_user}",
            "gists_url": "https://api.github.com/users/OptiKey/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/OptiKey/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/OptiKey/subscriptions",
            "organizations_url": "https://api.github.com/users/OptiKey/orgs",
            "repos_url": "https://api.github.com/users/OptiKey/repos",
            "events_url": "https://api.github.com/users/OptiKey/events{/privacy}",
            "received_events_url": "https://api.github.com/users/OptiKey/received_events",
            "type": "Organization",
            "site_admin": false
        },
        "private": false,
        "html_url": "https://github.com/OptiKey/OptiKey",
        "description": "OptiKey - Full computer control and speech with your eyes",
        "fork": false,
        "url": "https://api.github.com/repos/OptiKey/OptiKey",
        "forks_url": "https://api.github.com/repos/OptiKey/OptiKey/forks",
        "keys_url": "https://api.github.com/repos/OptiKey/OptiKey/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/OptiKey/OptiKey/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/OptiKey/OptiKey/teams",
        "hooks_url": "https://api.github.com/repos/OptiKey/OptiKey/hooks",
        "issue_events_url": "https://api.github.com/repos/OptiKey/OptiKey/issues/events{/number}",
        "events_url": "https://api.github.com/repos/OptiKey/OptiKey/events",
        "assignees_url": "https://api.github.com/repos/OptiKey/OptiKey/assignees{/user}",
        "branches_url": "https://api.github.com/repos/OptiKey/OptiKey/branches{/branch}",
        "tags_url": "https://api.github.com/repos/OptiKey/OptiKey/tags",
        "blobs_url": "https://api.github.com/repos/OptiKey/OptiKey/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/OptiKey/OptiKey/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/OptiKey/OptiKey/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/OptiKey/OptiKey/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/OptiKey/OptiKey/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/OptiKey/OptiKey/languages",
        "stargazers_url": "https://api.github.com/repos/OptiKey/OptiKey/stargazers",
        "contributors_url": "https://api.github.com/repos/OptiKey/OptiKey/contributors",
        "subscribers_url": "https://api.github.com/repos/OptiKey/OptiKey/subscribers",
        "subscription_url": "https://api.github.com/repos/OptiKey/OptiKey/subscription",
        "commits_url": "https://api.github.com/repos/OptiKey/OptiKey/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/OptiKey/OptiKey/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/OptiKey/OptiKey/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/OptiKey/OptiKey/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/OptiKey/OptiKey/contents/{+path}",
        "compare_url": "https://api.github.com/repos/OptiKey/OptiKey/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/OptiKey/OptiKey/merges",
        "archive_url": "https://api.github.com/repos/OptiKey/OptiKey/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/OptiKey/OptiKey/downloads",
        "issues_url": "https://api.github.com/repos/OptiKey/OptiKey/issues{/number}",
        "pulls_url": "https://api.github.com/repos/OptiKey/OptiKey/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/OptiKey/OptiKey/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/OptiKey/OptiKey/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/OptiKey/OptiKey/labels{/name}",
        "releases_url": "https://api.github.com/repos/OptiKey/OptiKey/releases{/id}",
        "deployments_url": "https://api.github.com/repos/OptiKey/OptiKey/deployments",
        "created_at": "2014-07-14T21:23:52Z",
        "updated_at": "2016-05-11T10:32:00Z",
        "pushed_at": "2016-05-09T10:04:54Z",
        "git_url": "git://github.com/OptiKey/OptiKey.git",
        "ssh_url": "git@github.com:OptiKey/OptiKey.git",
        "clone_url": "https://github.com/OptiKey/OptiKey.git",
        "svn_url": "https://github.com/OptiKey/OptiKey",
        "homepage": "http://www.optikey.org",
        "size": 54055,
        "stargazers_count": 2125,
        "watchers_count": 2125,
        "language": "C#",
        "has_issues": true,
        "has_downloads": true,
        "has_wiki": true,
        "has_pages": true,
        "forks_count": 222,
        "mirror_url": null,
        "open_issues_count": 34,
        "forks": 222,
        "open_issues": 34,
        "watchers": 2125,
        "default_branch": "master",
        "permissions": {
            "admin": true,
            "push": true,
            "pull": true
        }
    }
]

@KharitonOff
Copy link
Contributor

@JuliusSweetland thank you, that looks good. So do I understand you right: you don't see the OptiKey/OptiKey repo in the dropdown list under Step 2 "Choose a repository"?
bildschirmfoto 2016-05-13 um 09 54 30

@JuliusSweetland
Copy link
Author

@KharitonOff That is correct:
image

@KharitonOff
Copy link
Contributor

@JuliusSweetland I think (and hope) we found the Issue 😄 Could you check your github profile settings please, whether the "Organization access" for CLA assistant to OptiKey is provided?

bildschirmfoto 2016-05-17 um 11 04 53

@JuliusSweetland
Copy link
Author

That's resolved it. Thank you.

@KharitonOff
Copy link
Contributor

Great!! Thank you very much for opening this issue and have fun with CLA assistant 😉

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

2 participants