Skip to content

Getting notified when avatar is updated #131113

Discussion options

You must be logged in to vote

GitHub does not provide a webhook specifically for notifying changes to an organization's avatar when a GitHub app is installed. GitHub webhooks primarily cover events related to repositories, organizations, deployments, and other repository-specific activities.

However, you can periodically check the avatar URL of the organization using GitHub's REST API to detect changes. Here’s a basic approach you could take:

Retrieve Organization Information: Use the GitHub REST API to fetch information about the organization. You can do this using the following endpoint:

GET /orgs/:org

Replace :org with the actual name of the organization.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dadepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Question
2 participants