{"id":16124135,"url":"https://github.com/itaditya/octokit-plugin-sentiment","last_synced_at":"2025-04-06T12:22:22.821Z","repository":{"id":98864169,"uuid":"124374313","full_name":"itaditya/octokit-plugin-sentiment","owner":"itaditya","description":"It allows you to analyse the sentiment of a github comment easily","archived":false,"fork":false,"pushed_at":"2018-03-19T05:01:28.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T18:01:51.222Z","etag":null,"topics":["octokit","perspective-api","sentiment-analysis"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itaditya.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-08T10:16:32.000Z","updated_at":"2018-03-19T10:10:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c358bec-89ca-4c0b-8ecf-bc7e170c151f","html_url":"https://github.com/itaditya/octokit-plugin-sentiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Foctokit-plugin-sentiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Foctokit-plugin-sentiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Foctokit-plugin-sentiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Foctokit-plugin-sentiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaditya","download_url":"https://codeload.github.com/itaditya/octokit-plugin-sentiment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247479441,"owners_count":20945460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["octokit","perspective-api","sentiment-analysis"],"created_at":"2024-10-09T21:19:52.192Z","updated_at":"2025-04-06T12:22:22.792Z","avatar_url":"https://github.com/itaditya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## octokit-plugin-sentiment\n\n\u003e It allows you to analyse the sentiment of a github comment easily\n\n\n### How To Use\n\n```js\nconst octokit = require('@octokit/rest')();\nconst sentimentPlugin = require('octokit-plugin-sentiment')('provide-your-perspective-api-key'); // Import the plugin\n\noctokit.plugin(sentimentPlugin); // Plug-in the plugin\n\noctokit.analyseSentiment({ comment }) // Call the plugin methods\n\n// For a working example try out the demo example in /demo/demo.js\n```\n\n### List of available methods\n\n* **octokit.analyseSentiment({ comment })** : It takes a github comment and returns an array containing list of all users mentioned in the comment.\n\n### How to Contribute\n\n* Fork and Clone this repo.\n* On your local machine run `npm link` in the root of the cloned project.\n* `cd` into demo folder and run `npm link octokit-plugin-sentiment`.\n* Get your Perspective API key.\n* Use `npm test` to run unit test on the analyseSentiment function.\n* Now make changes in the `index.js` and test it via `demo/demo.js` file.\n* When you are ready create a branch and submit a PR.\n\n### Is this Tested ?\n\nYes, the plugin is tested with [Tape](https://github.com/substack/tape).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Foctokit-plugin-sentiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaditya%2Foctokit-plugin-sentiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Foctokit-plugin-sentiment/lists"}