{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/comments/183969305","pull_request_review_id":115068310,"id":183969305,"diff_hunk":"@@ -1,59 +1,93 @@\n # GitHub Connector\n \n-Allows connecting to GitHub GraphQL API. \n+Connects to the GitHub GraphQL API from Ballerina.\n \n-GitHub connector provides a Ballerina API to access the GitHub GraphQL API. \n-The connector has built-in support to handle OAuth2.0, provides auto completion and type conversions. The following \n-sections explains how to use Ballerina GitHub4 connector. You can refer the [GitHub GraphQL API v4.0]\n-(https://developer.github.com/v4/) to learn more about the API. \n+This package provides a Ballerina API to access the GitHub GraphQL API. It has built-in support for operations related to projects, pull requests, and issues. It handles OAuth2.0 and provides auto completion and type conversions. The following sections explain how to use the Ballerina GitHub4 connector. Visit [GitHub GraphQL API v4.0](https://developer.github.com/v4/) to learn more about the API.\n \n-### Compatibility\n+**Project Operations**\n \n-|Ballerina Language Version | GitHub API Version |\n-|------------------| ------------------ |\n-|0.970.0-beta10-SNAPSHOT | v4 |\n+The wso2/github4 package covers most of the project-related operations including columns and cards. It returns the information in structs that can be easily accessed.\n \n+**Pull Request Operations**\n \n-### Getting started\n-1) Refer [Getting Started](https://ballerina.io/learn/getting-started/) to download Ballerina and install tools.\n+This package can retrieve pull requests from GitHub GraphQL. It returns comprehensive data structures for various data segments returned by the GraphQL API.\n+\n+**Issues Operations**\n+\n+The current version of the wso2/github4 package has support for creating and listing issues.\n+\n+\n+## Compatibility\n+|                                 |       Version                  |\n+| ------------------------------- | -------------------------------|\n+|  Ballerina Language Version     |   0.970.0-beta12               |\n+|  GitHub API Version             |   V4                           |\n+\n+## Sample\n+\n+The GitHub connector can be used to get a repository, get an issue list, and create an issue. First, import the `wso2/github4` package into the Ballerina project.\n \n-2) To use the GitHub connector, you will need provide the following.\n-    -   GitHub OAuth access token\n-    \n-    Visit [here](https://developer.github.com/v4/guides/forming-calls/#authenticating-with-graphql) for more information on obtaining OAuth2 credentials.\n-    \n-3) Create a new Ballerina project by executing the following command\n-    ```bash\n-       <PROJECT_ROOT_DIRECTORY>$ ballerina init\n-    ```\n-4) Import the package to your ballerina project.\n-    \n ```ballerina\n     import wso2/github4;\n+```\n \n-    public function main (string[] args) {\n-        endpoint github4:Client githubClient {\n-            clientEndpointConfiguration: {\n-                auth:{\n-                    scheme:\"oauth\",\n-                    accessToken:config:getAsString(\"GITHUB_TOKEN\")\n-                }\n-            }\n-        };\n-    \n-        github4:Repository repository = {};\n-        var repo = githubClient -> getRepository(\"wso2-ballerina/package-github\");\n-        match repo {\n-            github4:Repository rep => {\n-                repository = rep;\n-            }\n-            github4:GitClientError err => {\n-                io:println(err);\n+**Obtaining the Access Token to Run the Sample**\n+\n+1. Visit your GitHub profile [https://github.com/{profile}] and go to Settings -> Developer settings -> Personal access tokens.","path":"github4/Package.md","position":76,"original_position":76,"commit_id":"e6f0f8b93dd5e59e3f3a78d068c1cc46701ee31b","original_commit_id":"e6f0f8b93dd5e59e3f3a78d068c1cc46701ee31b","user":{"login":"appellj","id":6487148,"avatar_url":"https://avatars0.githubusercontent.com/u/6487148?v=4","gravatar_id":"","url":"https://api.github.com/users/appellj","html_url":"https://github.com/appellj","followers_url":"https://api.github.com/users/appellj/followers","following_url":"https://api.github.com/users/appellj/following{/other_user}","gists_url":"https://api.github.com/users/appellj/gists{/gist_id}","starred_url":"https://api.github.com/users/appellj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appellj/subscriptions","organizations_url":"https://api.github.com/users/appellj/orgs","repos_url":"https://api.github.com/users/appellj/repos","events_url":"https://api.github.com/users/appellj/events{/privacy}","received_events_url":"https://api.github.com/users/appellj/received_events","type":"User","site_admin":false},"body":"Menu commands needs to be bold","created_at":"2018-04-25T07:57:31Z","updated_at":"2018-04-25T07:57:31Z","html_url":"https://github.com/wso2-ballerina/package-github/pull/28#discussion_r183969305","pull_request_url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/comments/183969305"},"html":{"href":"https://github.com/wso2-ballerina/package-github/pull/28#discussion_r183969305"},"pull_request":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28","id":183939279,"html_url":"https://github.com/wso2-ballerina/package-github/pull/28","diff_url":"https://github.com/wso2-ballerina/package-github/pull/28.diff","patch_url":"https://github.com/wso2-ballerina/package-github/pull/28.patch","issue_url":"https://api.github.com/repos/wso2-ballerina/package-github/issues/28","number":28,"state":"open","locked":false,"title":"Update package.md","user":{"login":"keerthu","id":1663756,"avatar_url":"https://avatars0.githubusercontent.com/u/1663756?v=4","gravatar_id":"","url":"https://api.github.com/users/keerthu","html_url":"https://github.com/keerthu","followers_url":"https://api.github.com/users/keerthu/followers","following_url":"https://api.github.com/users/keerthu/following{/other_user}","gists_url":"https://api.github.com/users/keerthu/gists{/gist_id}","starred_url":"https://api.github.com/users/keerthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keerthu/subscriptions","organizations_url":"https://api.github.com/users/keerthu/orgs","repos_url":"https://api.github.com/users/keerthu/repos","events_url":"https://api.github.com/users/keerthu/events{/privacy}","received_events_url":"https://api.github.com/users/keerthu/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n> Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.\r\n\r\n## Goals\r\n> Describe the solutions that this feature/fix will introduce to resolve the problems described above\r\n\r\n## Approach\r\n> Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.\r\n\r\n## User stories\r\n> Summary of user stories addressed by this change>\r\n\r\n## Release note\r\n> Brief description of the new feature or bug fix as it will appear in the release notes\r\n\r\n## Documentation\r\n> Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact\r\n\r\n## Training\r\n> Link to the PR for changes to the training content in https://github4.com/wso2/WSO2-Training, if applicable\r\n\r\n## Certification\r\n> Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.\r\n\r\n## Marketing\r\n> Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable\r\n\r\n## Automation github4.tests\r\n - Unit github4.tests \r\n   > Code coverage information\r\n - Integration github4.tests\r\n   > Details about the test cases and coverage\r\n\r\n## Security checks\r\n - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes/no\r\n - Ran FindSecurityBugs plugin and verified report? yes/no\r\n - Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes/no\r\n\r\n## Samples\r\n> Provide high-level details about the samples related to this feature\r\n\r\n## Related PRs\r\n> List any other related PRs\r\n\r\n## Migrations (if applicable)\r\n> Describe migration steps and platforms on which migration has been tested\r\n\r\n## Test environment\r\n> List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested\r\n \r\n## Learning\r\n> Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.","created_at":"2018-04-25T06:53:05Z","updated_at":"2018-04-25T07:57:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72a4c8d2188a86bc504307e6b0f724a81505eecc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28/commits","review_comments_url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28/comments","review_comment_url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2-ballerina/package-github/issues/28/comments","statuses_url":"https://api.github.com/repos/wso2-ballerina/package-github/statuses/e6f0f8b93dd5e59e3f3a78d068c1cc46701ee31b","head":{"label":"keerthu:master","ref":"master","sha":"e6f0f8b93dd5e59e3f3a78d068c1cc46701ee31b","user":{"login":"keerthu","id":1663756,"avatar_url":"https://avatars0.githubusercontent.com/u/1663756?v=4","gravatar_id":"","url":"https://api.github.com/users/keerthu","html_url":"https://github.com/keerthu","followers_url":"https://api.github.com/users/keerthu/followers","following_url":"https://api.github.com/users/keerthu/following{/other_user}","gists_url":"https://api.github.com/users/keerthu/gists{/gist_id}","starred_url":"https://api.github.com/users/keerthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keerthu/subscriptions","organizations_url":"https://api.github.com/users/keerthu/orgs","repos_url":"https://api.github.com/users/keerthu/repos","events_url":"https://api.github.com/users/keerthu/events{/privacy}","received_events_url":"https://api.github.com/users/keerthu/received_events","type":"User","site_admin":false},"repo":{"id":130813190,"name":"package-github","full_name":"keerthu/package-github","owner":{"login":"keerthu","id":1663756,"avatar_url":"https://avatars0.githubusercontent.com/u/1663756?v=4","gravatar_id":"","url":"https://api.github.com/users/keerthu","html_url":"https://github.com/keerthu","followers_url":"https://api.github.com/users/keerthu/followers","following_url":"https://api.github.com/users/keerthu/following{/other_user}","gists_url":"https://api.github.com/users/keerthu/gists{/gist_id}","starred_url":"https://api.github.com/users/keerthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keerthu/subscriptions","organizations_url":"https://api.github.com/users/keerthu/orgs","repos_url":"https://api.github.com/users/keerthu/repos","events_url":"https://api.github.com/users/keerthu/events{/privacy}","received_events_url":"https://api.github.com/users/keerthu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keerthu/package-github","description":null,"fork":true,"url":"https://api.github.com/repos/keerthu/package-github","forks_url":"https://api.github.com/repos/keerthu/package-github/forks","keys_url":"https://api.github.com/repos/keerthu/package-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keerthu/package-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keerthu/package-github/teams","hooks_url":"https://api.github.com/repos/keerthu/package-github/hooks","issue_events_url":"https://api.github.com/repos/keerthu/package-github/issues/events{/number}","events_url":"https://api.github.com/repos/keerthu/package-github/events","assignees_url":"https://api.github.com/repos/keerthu/package-github/assignees{/user}","branches_url":"https://api.github.com/repos/keerthu/package-github/branches{/branch}","tags_url":"https://api.github.com/repos/keerthu/package-github/tags","blobs_url":"https://api.github.com/repos/keerthu/package-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keerthu/package-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keerthu/package-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/keerthu/package-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keerthu/package-github/statuses/{sha}","languages_url":"https://api.github.com/repos/keerthu/package-github/languages","stargazers_url":"https://api.github.com/repos/keerthu/package-github/stargazers","contributors_url":"https://api.github.com/repos/keerthu/package-github/contributors","subscribers_url":"https://api.github.com/repos/keerthu/package-github/subscribers","subscription_url":"https://api.github.com/repos/keerthu/package-github/subscription","commits_url":"https://api.github.com/repos/keerthu/package-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/keerthu/package-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/keerthu/package-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/keerthu/package-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/keerthu/package-github/contents/{+path}","compare_url":"https://api.github.com/repos/keerthu/package-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keerthu/package-github/merges","archive_url":"https://api.github.com/repos/keerthu/package-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keerthu/package-github/downloads","issues_url":"https://api.github.com/repos/keerthu/package-github/issues{/number}","pulls_url":"https://api.github.com/repos/keerthu/package-github/pulls{/number}","milestones_url":"https://api.github.com/repos/keerthu/package-github/milestones{/number}","notifications_url":"https://api.github.com/repos/keerthu/package-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keerthu/package-github/labels{/name}","releases_url":"https://api.github.com/repos/keerthu/package-github/releases{/id}","deployments_url":"https://api.github.com/repos/keerthu/package-github/deployments","created_at":"2018-04-24T07:20:59Z","updated_at":"2018-04-25T06:54:16Z","pushed_at":"2018-04-25T06:54:14Z","git_url":"git://github.com/keerthu/package-github.git","ssh_url":"git@github.com:keerthu/package-github.git","clone_url":"https://github.com/keerthu/package-github.git","svn_url":"https://github.com/keerthu/package-github","homepage":null,"size":214,"stargazers_count":0,"watchers_count":0,"language":"Ballerina","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2-ballerina:master","ref":"master","sha":"8d1d7d294399e3d638501f6500dbb4d148423f4b","user":{"login":"wso2-ballerina","id":35947277,"avatar_url":"https://avatars0.githubusercontent.com/u/35947277?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2-ballerina","html_url":"https://github.com/wso2-ballerina","followers_url":"https://api.github.com/users/wso2-ballerina/followers","following_url":"https://api.github.com/users/wso2-ballerina/following{/other_user}","gists_url":"https://api.github.com/users/wso2-ballerina/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-ballerina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-ballerina/subscriptions","organizations_url":"https://api.github.com/users/wso2-ballerina/orgs","repos_url":"https://api.github.com/users/wso2-ballerina/repos","events_url":"https://api.github.com/users/wso2-ballerina/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-ballerina/received_events","type":"Organization","site_admin":false},"repo":{"id":121368536,"name":"package-github","full_name":"wso2-ballerina/package-github","owner":{"login":"wso2-ballerina","id":35947277,"avatar_url":"https://avatars0.githubusercontent.com/u/35947277?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2-ballerina","html_url":"https://github.com/wso2-ballerina","followers_url":"https://api.github.com/users/wso2-ballerina/followers","following_url":"https://api.github.com/users/wso2-ballerina/following{/other_user}","gists_url":"https://api.github.com/users/wso2-ballerina/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-ballerina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-ballerina/subscriptions","organizations_url":"https://api.github.com/users/wso2-ballerina/orgs","repos_url":"https://api.github.com/users/wso2-ballerina/repos","events_url":"https://api.github.com/users/wso2-ballerina/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-ballerina/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2-ballerina/package-github","description":null,"fork":false,"url":"https://api.github.com/repos/wso2-ballerina/package-github","forks_url":"https://api.github.com/repos/wso2-ballerina/package-github/forks","keys_url":"https://api.github.com/repos/wso2-ballerina/package-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2-ballerina/package-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2-ballerina/package-github/teams","hooks_url":"https://api.github.com/repos/wso2-ballerina/package-github/hooks","issue_events_url":"https://api.github.com/repos/wso2-ballerina/package-github/issues/events{/number}","events_url":"https://api.github.com/repos/wso2-ballerina/package-github/events","assignees_url":"https://api.github.com/repos/wso2-ballerina/package-github/assignees{/user}","branches_url":"https://api.github.com/repos/wso2-ballerina/package-github/branches{/branch}","tags_url":"https://api.github.com/repos/wso2-ballerina/package-github/tags","blobs_url":"https://api.github.com/repos/wso2-ballerina/package-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2-ballerina/package-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2-ballerina/package-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2-ballerina/package-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2-ballerina/package-github/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2-ballerina/package-github/languages","stargazers_url":"https://api.github.com/repos/wso2-ballerina/package-github/stargazers","contributors_url":"https://api.github.com/repos/wso2-ballerina/package-github/contributors","subscribers_url":"https://api.github.com/repos/wso2-ballerina/package-github/subscribers","subscription_url":"https://api.github.com/repos/wso2-ballerina/package-github/subscription","commits_url":"https://api.github.com/repos/wso2-ballerina/package-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2-ballerina/package-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2-ballerina/package-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2-ballerina/package-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2-ballerina/package-github/contents/{+path}","compare_url":"https://api.github.com/repos/wso2-ballerina/package-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2-ballerina/package-github/merges","archive_url":"https://api.github.com/repos/wso2-ballerina/package-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2-ballerina/package-github/downloads","issues_url":"https://api.github.com/repos/wso2-ballerina/package-github/issues{/number}","pulls_url":"https://api.github.com/repos/wso2-ballerina/package-github/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2-ballerina/package-github/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2-ballerina/package-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2-ballerina/package-github/labels{/name}","releases_url":"https://api.github.com/repos/wso2-ballerina/package-github/releases{/id}","deployments_url":"https://api.github.com/repos/wso2-ballerina/package-github/deployments","created_at":"2018-02-13T10:22:38Z","updated_at":"2018-04-24T07:52:41Z","pushed_at":"2018-04-25T06:54:15Z","git_url":"git://github.com/wso2-ballerina/package-github.git","ssh_url":"git@github.com:wso2-ballerina/package-github.git","clone_url":"https://github.com/wso2-ballerina/package-github.git","svn_url":"https://github.com/wso2-ballerina/package-github","homepage":null,"size":213,"stargazers_count":0,"watchers_count":0,"language":"Ballerina","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28"},"html":{"href":"https://github.com/wso2-ballerina/package-github/pull/28"},"issue":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/issues/28"},"comments":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-ballerina/package-github/statuses/e6f0f8b93dd5e59e3f3a78d068c1cc46701ee31b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"appellj"}}