Skip to content

github/platform-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 26, 2024
e5d5c0f · Nov 26, 2024
Jan 14, 2023
Sep 6, 2024
Feb 29, 2024
Nov 26, 2024
May 30, 2024
Nov 3, 2023
Oct 24, 2023
Aug 24, 2020
Mar 9, 2023
Jan 14, 2014
Apr 11, 2017
Oct 26, 2023
Sep 5, 2024

platform-samples

This is a public place for all sample projects related to the GitHub Platform.

Hierarchy

The directories are organized to correlate with guides found on developer.github.com. But here it is, broken down:

  • api: here's a bunch of sample code relating to the GitHub API. Subdirectories in this category are broken up by language. Do you have a language sample you'd like added? Make a pull request and we'll consider it.
  • graphql: here's a bunch of sample GraphQL queries that can be run against our GitHub GraphQL API.
  • hooks: want to find out how to write a consumer for our web hooks? The examples in this subdirectory show you how. We are open for more contributions via pull requests.
  • microsoft-graph-api: here's a bunch of sample Microsoft Graph commands related to integrations for GitHub, such as EMU (Enterprise Managed User) OIDC authentication for Azure AD/Entra.
  • pre-receive-hooks: this one contains 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.
  • 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.
  • sql: here are sql scripts for custom reporting for GitHub Enterprise Server. We are open for more contributions via pull requests.