├── .gitignore ├── .travis.yml ├── .env.example ├── README.md ├── index.js ├── LICENSE ├── package.json ├── test ├── index.test.js └── fixtures │ └── issues.opened.json ├── CONTRIBUTING.md ├── CODE_OF_CONDUCT.md └── app.yml /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | *.pem 4 | .env 5 | package-lock.json 6 | coverage 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "8.3" 5 | notifications: 6 | disabled: true 7 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # The ID of your GitHub App 2 | APP_ID= 3 | WEBHOOK_SECRET=development 4 | 5 | # Use `trace` to get verbose logging or `info` to show less 6 | LOG_LEVEL=debug 7 | 8 | # Go to https://smee.io/new set this to the URL that you are redirected to. 9 | WEBHOOK_PROXY_URL= 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # {{ name }} 2 | 3 | > A GitHub App built with [Probot](https://probot.github.io) that {{ description }} 4 | 5 | ## Setup 6 | 7 | ```sh 8 | # Install dependencies 9 | npm install 10 | 11 | # Run the bot 12 | npm start 13 | ``` 14 | 15 | ## Contributing 16 | 17 | If you have suggestions for how {{ name }} could be improved, or want to report a bug, open an issue! We'd love all and any contributions. 18 | 19 | For more, check out the [Contributing Guide](CONTRIBUTING.md). 20 | 21 | ## License 22 | 23 | [ISC](LICENSE) © {{ year }} {{ author }} 24 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the entry point for your Probot App. 3 | * @param {import('probot').Application} app - Probot's Application class. 4 | */ 5 | module.exports = app => { 6 | // Your code here 7 | app.log('Yay, the app was loaded!') 8 | 9 | app.on('issues.opened', async context => { 10 | const issueComment = context.issue({ body: 'Thanks for opening this issue!' }) 11 | return context.github.issues.createComment(issueComment) 12 | }) 13 | 14 | // For more information on building apps: 15 | // https://probot.github.io/docs/ 16 | 17 | // To get your app running against GitHub, see: 18 | // https://probot.github.io/docs/development/ 19 | } 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) {{ year }}, {{ author }} 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{ name }}", 3 | "version": "1.0.0", 4 | "description": "{{ description }}", 5 | "author": "{{ author }}", 6 | "license": "ISC", 7 | "repository": "https://github.com/{{ owner }}/{{ repo }}.git", 8 | "homepage": "https://github.com/{{ owner }}/{{ repo }}", 9 | "bugs": "https://github.com/{{ owner }}/{{ repo }}/issues", 10 | "keywords": [ 11 | "probot", 12 | "github", 13 | "probot-app" 14 | ], 15 | "scripts": { 16 | "dev": "nodemon", 17 | "start": "probot run ./index.js", 18 | "lint": "standard --fix", 19 | "test": "jest && standard", 20 | "test:watch": "jest --watch --notify --notifyMode=change --coverage" 21 | }, 22 | "dependencies": { 23 | "probot": "^7.2.0" 24 | }, 25 | "devDependencies": { 26 | "jest": "^22.4.3", 27 | "nodemon": "^1.17.2", 28 | "smee-client": "^1.0.2", 29 | "standard": "^10.0.3" 30 | }, 31 | "engines": { 32 | "node": ">= 8.3.0" 33 | }, 34 | "standard": { 35 | "env": [ 36 | "jest" 37 | ] 38 | }, 39 | "jest": { 40 | "testEnvironment": "node" 41 | }, 42 | "nodemonConfig": { 43 | "exec": "npm start", 44 | "watch": [".env", "."] 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- 1 | const { Application } = require('probot') 2 | // Requiring our app implementation 3 | const myProbotApp = require('..') 4 | 5 | const issuesOpenedPayload = require('./fixtures/issues.opened.json') 6 | 7 | test('that we can run tests', () => { 8 | // your real tests go here 9 | expect(1 + 2 + 3).toBe(6) 10 | }) 11 | 12 | describe('My Probot app', () => { 13 | let app, github 14 | 15 | beforeEach(() => { 16 | app = new Application() 17 | // Initialize the app based on the code from index.js 18 | app.load(myProbotApp) 19 | // This is an easy way to mock out the GitHub API 20 | github = { 21 | issues: { 22 | createComment: jest.fn().mockReturnValue(Promise.resolve({})) 23 | } 24 | } 25 | // Passes the mocked out GitHub API into out app instance 26 | app.auth = () => Promise.resolve(github) 27 | }) 28 | 29 | test('creates a comment when an issue is opened', async () => { 30 | // Simulates delivery of an issues.opened webhook 31 | await app.receive({ 32 | name: 'issues.opened', 33 | payload: issuesOpenedPayload 34 | }) 35 | 36 | // This test passes if the code in your index.js file calls `context.github.issues.createComment` 37 | expect(github.issues.createComment).toHaveBeenCalled() 38 | }) 39 | }) 40 | 41 | // For more information about testing with Jest see: 42 | // https://facebook.github.io/jest/ 43 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | [fork]: /fork 4 | [pr]: /compare 5 | [style]: https://standardjs.com/ 6 | [code-of-conduct]: CODE_OF_CONDUCT.md 7 | 8 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. 9 | 10 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. 11 | 12 | ## Issues and PRs 13 | 14 | If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them. 15 | 16 | We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR. 17 | 18 | ## Submitting a pull request 19 | 20 | 1. [Fork][fork] and clone the repository. 21 | 1. Configure and install the dependencies: `npm install`. 22 | 1. Make sure the tests pass on your machine: `npm test`, note: these tests also apply the linter, so there's no need to lint separately. 23 | 1. Create a new branch: `git checkout -b my-branch-name`. 24 | 1. Make your change, add tests, and make sure the tests still pass. 25 | 1. Push to your fork and [submit a pull request][pr]. 26 | 1. Pat your self on the back and wait for your pull request to be reviewed and merged. 27 | 28 | Here are a few things you can do that will increase the likelihood of your pull request being accepted: 29 | 30 | - Follow the [style guide][style] which is using standard. Any linting errors should be shown when running `npm test`. 31 | - Write and update tests. 32 | - Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests. 33 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). 34 | 35 | Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you. 36 | 37 | ## Resources 38 | 39 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) 40 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/) 41 | - [GitHub Help](https://help.github.com) 42 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | education, socio-economic status, nationality, personal appearance, race, 10 | religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at {{ email }}. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | -------------------------------------------------------------------------------- /app.yml: -------------------------------------------------------------------------------- 1 | # This is a GitHub App Manifest. These settings will be used by default when 2 | # configuring your GitHub App. 3 | # 4 | # Read more about configuring your GitHub App: 5 | # https://probot.github.io/docs/development/#configuring-a-github-app 6 | # 7 | # Read more about GitHub App Manifests: 8 | # https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/ 9 | 10 | # The list of events the GitHub App subscribes to. 11 | # Uncomment the event names below to enable them. 12 | default_events: 13 | # - check_run 14 | # - check_suite 15 | # - commit_comment 16 | # - create 17 | # - delete 18 | # - deployment 19 | # - deployment_status 20 | # - fork 21 | # - gollum 22 | # - issue_comment 23 | - issues 24 | # - label 25 | # - milestone 26 | # - member 27 | # - membership 28 | # - org_block 29 | # - organization 30 | # - page_build 31 | # - project 32 | # - project_card 33 | # - project_column 34 | # - public 35 | # - pull_request 36 | # - pull_request_review 37 | # - pull_request_review_comment 38 | # - push 39 | # - release 40 | # - repository 41 | # - repository_import 42 | # - status 43 | # - team 44 | # - team_add 45 | # - watch 46 | 47 | # The set of permissions needed by the GitHub App. The format of the object uses 48 | # the permission name for the key (for example, issues) and the access type for 49 | # the value (for example, write). 50 | # Valid values are `read`, `write`, and `none` 51 | default_permissions: 52 | # Repository creation, deletion, settings, teams, and collaborators. 53 | # https://developer.github.com/v3/apps/permissions/#permission-on-administration 54 | # administration: read 55 | 56 | # Checks on code. 57 | # https://developer.github.com/v3/apps/permissions/#permission-on-checks 58 | # checks: read 59 | 60 | # Repository contents, commits, branches, downloads, releases, and merges. 61 | # https://developer.github.com/v3/apps/permissions/#permission-on-contents 62 | # contents: read 63 | 64 | # Deployments and deployment statuses. 65 | # https://developer.github.com/v3/apps/permissions/#permission-on-deployments 66 | # deployments: read 67 | 68 | # Issues and related comments, assignees, labels, and milestones. 69 | # https://developer.github.com/v3/apps/permissions/#permission-on-issues 70 | issues: write 71 | 72 | # Search repositories, list collaborators, and access repository metadata. 73 | # https://developer.github.com/v3/apps/permissions/#metadata-permissions 74 | # metadata: read 75 | 76 | # Retrieve Pages statuses, configuration, and builds, as well as create new builds. 77 | # https://developer.github.com/v3/apps/permissions/#permission-on-pages 78 | # pages: read 79 | 80 | # Pull requests and related comments, assignees, labels, milestones, and merges. 81 | # https://developer.github.com/v3/apps/permissions/#permission-on-pull-requests 82 | # pull_requests: read 83 | 84 | # Manage the post-receive hooks for a repository. 85 | # https://developer.github.com/v3/apps/permissions/#permission-on-repository-hooks 86 | # repository_hooks: read 87 | 88 | # Manage repository projects, columns, and cards. 89 | # https://developer.github.com/v3/apps/permissions/#permission-on-repository-projects 90 | # repository_projects: read 91 | 92 | # Retrieve security vulnerability alerts. 93 | # https://developer.github.com/v4/object/repositoryvulnerabilityalert/ 94 | # vulnerability_alerts: read 95 | 96 | # Commit statuses. 97 | # https://developer.github.com/v3/apps/permissions/#permission-on-statuses 98 | # statuses: read 99 | 100 | # Organization members and teams. 101 | # https://developer.github.com/v3/apps/permissions/#permission-on-members 102 | # members: read 103 | 104 | # View and manage users blocked by the organization. 105 | # https://developer.github.com/v3/apps/permissions/#permission-on-organization-user-blocking 106 | # organization_user_blocking: read 107 | 108 | # Manage organization projects, columns, and cards. 109 | # https://developer.github.com/v3/apps/permissions/#permission-on-organization-projects 110 | # organization_projects: read 111 | 112 | # Manage team discussions and related comments. 113 | # https://developer.github.com/v3/apps/permissions/#permission-on-team-discussions 114 | # team_discussions: read 115 | 116 | # Manage the post-receive hooks for an organization. 117 | # https://developer.github.com/v3/apps/permissions/#permission-on-organization-hooks 118 | # organization_hooks: read 119 | 120 | # Get notified of, and update, content references. 121 | # https://developer.github.com/v3/apps/permissions/ 122 | # organization_administration: read 123 | 124 | 125 | # The name of the GitHub App. Defaults to the name specified in package.json 126 | # name: My Probot App 127 | 128 | # The homepage of your GitHub App. 129 | # url: https://example.com/ 130 | 131 | # A description of the GitHub App. 132 | # description: A description of my awesome app 133 | 134 | # Set to true when your GitHub App is available to the public or false when it is only accessible to the owner of the app. 135 | # Default: true 136 | # public: false 137 | -------------------------------------------------------------------------------- /test/fixtures/issues.opened.json: -------------------------------------------------------------------------------- 1 | { 2 | "action": "opened", 3 | "issue": { 4 | "url": "https://api.github.com/repos/Codertocat/Hello-World/issues/2", 5 | "repository_url": "https://api.github.com/repos/Codertocat/Hello-World", 6 | "labels_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/2/labels{/name}", 7 | "comments_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments", 8 | "events_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/2/events", 9 | "html_url": "https://github.com/Codertocat/Hello-World/issues/2", 10 | "id": 327883527, 11 | "node_id": "MDU6SXNzdWUzMjc4ODM1Mjc=", 12 | "number": 2, 13 | "title": "Spelling error in the README file", 14 | "user": { 15 | "login": "Codertocat", 16 | "id": 21031067, 17 | "node_id": "MDQ6VXNlcjIxMDMxMDY3", 18 | "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", 19 | "gravatar_id": "", 20 | "url": "https://api.github.com/users/Codertocat", 21 | "html_url": "https://github.com/Codertocat", 22 | "followers_url": "https://api.github.com/users/Codertocat/followers", 23 | "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", 24 | "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", 25 | "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", 26 | "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", 27 | "organizations_url": "https://api.github.com/users/Codertocat/orgs", 28 | "repos_url": "https://api.github.com/users/Codertocat/repos", 29 | "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", 30 | "received_events_url": "https://api.github.com/users/Codertocat/received_events", 31 | "type": "User", 32 | "site_admin": false 33 | }, 34 | "state": "open", 35 | "locked": false, 36 | "assignee": null, 37 | "assignees": [], 38 | "milestone": null, 39 | "comments": 0, 40 | "created_at": "2018-05-30T20:18:32Z", 41 | "updated_at": "2018-05-30T20:18:32Z", 42 | "closed_at": null, 43 | "author_association": "OWNER", 44 | "body": "It looks like you accidently spelled 'commit' with two 't's." 45 | }, 46 | "repository": { 47 | "id": 135493233, 48 | "node_id": "MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=", 49 | "name": "Hello-World", 50 | "full_name": "Codertocat/Hello-World", 51 | "owner": { 52 | "login": "Codertocat", 53 | "id": 21031067, 54 | "node_id": "MDQ6VXNlcjIxMDMxMDY3", 55 | "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", 56 | "gravatar_id": "", 57 | "url": "https://api.github.com/users/Codertocat", 58 | "html_url": "https://github.com/Codertocat", 59 | "followers_url": "https://api.github.com/users/Codertocat/followers", 60 | "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", 61 | "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", 62 | "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", 63 | "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", 64 | "organizations_url": "https://api.github.com/users/Codertocat/orgs", 65 | "repos_url": "https://api.github.com/users/Codertocat/repos", 66 | "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", 67 | "received_events_url": "https://api.github.com/users/Codertocat/received_events", 68 | "type": "User", 69 | "site_admin": false 70 | }, 71 | "private": false, 72 | "html_url": "https://github.com/Codertocat/Hello-World", 73 | "description": null, 74 | "fork": false, 75 | "url": "https://api.github.com/repos/Codertocat/Hello-World", 76 | "forks_url": "https://api.github.com/repos/Codertocat/Hello-World/forks", 77 | "keys_url": "https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}", 78 | "collaborators_url": "https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}", 79 | "teams_url": "https://api.github.com/repos/Codertocat/Hello-World/teams", 80 | "hooks_url": "https://api.github.com/repos/Codertocat/Hello-World/hooks", 81 | "issue_events_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}", 82 | "events_url": "https://api.github.com/repos/Codertocat/Hello-World/events", 83 | "assignees_url": "https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}", 84 | "branches_url": "https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}", 85 | "tags_url": "https://api.github.com/repos/Codertocat/Hello-World/tags", 86 | "blobs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}", 87 | "git_tags_url": "https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}", 88 | "git_refs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}", 89 | "trees_url": "https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}", 90 | "statuses_url": "https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}", 91 | "languages_url": "https://api.github.com/repos/Codertocat/Hello-World/languages", 92 | "stargazers_url": "https://api.github.com/repos/Codertocat/Hello-World/stargazers", 93 | "contributors_url": "https://api.github.com/repos/Codertocat/Hello-World/contributors", 94 | "subscribers_url": "https://api.github.com/repos/Codertocat/Hello-World/subscribers", 95 | "subscription_url": "https://api.github.com/repos/Codertocat/Hello-World/subscription", 96 | "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}", 97 | "git_commits_url": "https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}", 98 | "comments_url": "https://api.github.com/repos/Codertocat/Hello-World/comments{/number}", 99 | "issue_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}", 100 | "contents_url": "https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}", 101 | "compare_url": "https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}", 102 | "merges_url": "https://api.github.com/repos/Codertocat/Hello-World/merges", 103 | "archive_url": "https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}", 104 | "downloads_url": "https://api.github.com/repos/Codertocat/Hello-World/downloads", 105 | "issues_url": "https://api.github.com/repos/Codertocat/Hello-World/issues{/number}", 106 | "pulls_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}", 107 | "milestones_url": "https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}", 108 | "notifications_url": "https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}", 109 | "labels_url": "https://api.github.com/repos/Codertocat/Hello-World/labels{/name}", 110 | "releases_url": "https://api.github.com/repos/Codertocat/Hello-World/releases{/id}", 111 | "deployments_url": "https://api.github.com/repos/Codertocat/Hello-World/deployments", 112 | "created_at": "2018-05-30T20:18:04Z", 113 | "updated_at": "2018-05-30T20:18:10Z", 114 | "pushed_at": "2018-05-30T20:18:30Z", 115 | "git_url": "git://github.com/Codertocat/Hello-World.git", 116 | "ssh_url": "git@github.com:Codertocat/Hello-World.git", 117 | "clone_url": "https://github.com/Codertocat/Hello-World.git", 118 | "svn_url": "https://github.com/Codertocat/Hello-World", 119 | "homepage": null, 120 | "size": 0, 121 | "stargazers_count": 0, 122 | "watchers_count": 0, 123 | "language": null, 124 | "has_issues": true, 125 | "has_projects": true, 126 | "has_downloads": true, 127 | "has_wiki": true, 128 | "has_pages": true, 129 | "forks_count": 0, 130 | "mirror_url": null, 131 | "archived": false, 132 | "open_issues_count": 2, 133 | "license": null, 134 | "forks": 0, 135 | "open_issues": 2, 136 | "watchers": 0, 137 | "default_branch": "master" 138 | }, 139 | "sender": { 140 | "login": "Codertocat", 141 | "id": 21031067, 142 | "node_id": "MDQ6VXNlcjIxMDMxMDY3", 143 | "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", 144 | "gravatar_id": "", 145 | "url": "https://api.github.com/users/Codertocat", 146 | "html_url": "https://github.com/Codertocat", 147 | "followers_url": "https://api.github.com/users/Codertocat/followers", 148 | "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", 149 | "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", 150 | "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", 151 | "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", 152 | "organizations_url": "https://api.github.com/users/Codertocat/orgs", 153 | "repos_url": "https://api.github.com/users/Codertocat/repos", 154 | "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", 155 | "received_events_url": "https://api.github.com/users/Codertocat/received_events", 156 | "type": "User", 157 | "site_admin": false 158 | } 159 | } --------------------------------------------------------------------------------