{"id":13478936,"url":"https://github.com/github/platform-samples","last_synced_at":"2025-05-13T21:04:30.605Z","repository":{"id":7147879,"uuid":"8445877","full_name":"github/platform-samples","owner":"github","description":"A public place for all platform sample projects.","archived":false,"fork":false,"pushed_at":"2025-04-28T05:47:45.000Z","size":7765,"stargazers_count":1979,"open_issues_count":43,"forks_count":1770,"subscribers_count":695,"default_branch":"master","last_synced_at":"2025-04-28T12:08:50.934Z","etag":null,"topics":["graphql","hooks","javascript","platform","platform-samples","pre-receive-hooks","ruby","sample"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-02-27T01:04:54.000Z","updated_at":"2025-04-26T12:11:11.000Z","dependencies_parsed_at":"2024-05-30T05:42:47.887Z","dependency_job_id":"e82aa4ec-e56b-4410-b1d1-51ce2f686cac","html_url":"https://github.com/github/platform-samples","commit_stats":{"total_commits":460,"total_committers":99,"mean_commits":4.646464646464646,"dds":0.8391304347826087,"last_synced_commit":"238ba2b653782a9ccc3ad7d60284f2969c41216d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fplatform-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fplatform-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fplatform-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fplatform-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/platform-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311331,"owners_count":21569009,"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":["graphql","hooks","javascript","platform","platform-samples","pre-receive-hooks","ruby","sample"],"created_at":"2024-07-31T16:02:06.148Z","updated_at":"2025-04-28T12:08:57.830Z","avatar_url":"https://github.com/github.png","language":"Shell","readme":"platform-samples\n================\n\nThis is a public place for all sample projects related to the GitHub Platform.\n\n## Hierarchy\n\nThe directories are organized to correlate with guides found on developer.github.com.\nBut here it is, broken down:\n\n* _api_: here's a bunch of sample code relating to the GitHub API. Subdirectories in this\ncategory are broken up by language. Do you have a language sample you'd like added?\nMake a pull request and we'll consider it.\n* _graphql_: here's a bunch of sample GraphQL queries that can be run against our [GitHub GraphQL API](https://docs.github.com/graphql).\n* _hooks_: want to find out how to write a consumer for [our web hooks](https://docs.github.com/webhooks-and-events/webhooks/about-webhooks)? The examples in this subdirectory show you how. We are open for more contributions via pull requests.\n* _microsoft-graph-api_: here's a bunch of sample [Microsoft Graph](https://learn.microsoft.com/en-us/graph/use-the-api) commands related to integrations for GitHub, such as EMU (Enterprise Managed User) OIDC authentication for Azure AD/Entra. \n* _pre-receive-hooks_: this one contains [pre-receive-hooks](https://docs.github.com/enterprise-server/admin/policies/enforcing-policy-with-pre-receive-hooks) that can block commits on GitHub Enterprise that do not fit your requirements. Do you have more great examples? Create a pull request and we will check it out.\n* _scripts_: want to analyze or clean-up your Git repository? The scripts in this subdirectory show you how. We are open for more contributions via pull requests.\n* _sql_: here are sql scripts for custom reporting for GitHub Enterprise Server. We are open for more contributions via pull requests.\n","funding_links":[],"categories":["Shell","inbox"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fplatform-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fplatform-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fplatform-samples/lists"}