Skip to content

Instantly share code, notes, and snippets.

@EdgarOrtegaRamirez
Created May 10, 2022 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdgarOrtegaRamirez/0fe5532984481b093aadf6f517c135c8 to your computer and use it in GitHub Desktop.
Save EdgarOrtegaRamirez/0fe5532984481b093aadf6f517c135c8 to your computer and use it in GitHub Desktop.
Github Actions Context Payload for Push Event
{
"payload":{
"after":"65aeff1fc085e1e369533de9f59b2754c5bb20b1",
"base_ref":null,
"before":"77a9bae00f0d6996e0883ce6d23f2778c6a2ee25",
"commits":[
{
"author":{
"email":"email@gmail.com",
"name":"First Last",
"username":"username"
},
"committer":{
"email":"email@gmail.com",
"name":"First Last",
"username":"username"
},
"distinct":true,
"id":"65aeff1fc085e1e369533de9f59b2754c5",
"message":"Git Commit Message",
"timestamp":"2022-05-10T12:50:28-05:00",
"tree_id":"6760e3ca8a0b74468a9d122a8e74d94d0",
"url":"https://github.com/owner/repo/commit/65aeff1fc085e1e369533de9f59b2754c"
}
],
"compare":"https://github.com/owner/repo/compare/77a9bae00...65aeff1fc",
"created":false,
"deleted":false,
"enterprise":{},
"private":true,
"pulls_url":"https://api.github.com/repos/owner/repo/pulls{/number}",
"pushed_at":1652205047,
"releases_url":"https://api.github.com/repos/owner/repo/releases{/id}",
"size":2500,
"ssh_url":"git@github.com:owner/repo.git",
"stargazers":2,
"stargazers_count":2,
"stargazers_url":"https://api.github.com/repos/owner/repo/stargazers",
"statuses_url":"https://api.github.com/repos/owner/repo/statuses/{sha}",
"subscribers_url":"https://api.github.com/repos/owner/repo/subscribers",
"subscription_url":"https://api.github.com/repos/owner/repo/subscription",
"svn_url":"https://github.com/owner/repo",
"tags_url":"https://api.github.com/repos/owner/repo/tags",
"teams_url":"https://api.github.com/repos/owner/repo/teams",
"topics":[],
"trees_url":"https://api.github.com/repos/owner/repo/git/trees{/sha}",
"updated_at":"2022-04-21T21:01:37Z",
"url":"https://github.com/owner/repo",
"visibility":"private",
"watchers":2,
"watchers_count":2
},
"sender":{
"avatar_url":"https://avatars.githubusercontent.com/u/841407?v=4",
"events_url":"https://api.github.com/users/user/events{/privacy}",
"followers_url":"https://api.github.com/users/user/followers",
"following_url":"https://api.github.com/users/user/following{/other_user}",
"gists_url":"https://api.github.com/users/user/gists{/gist_id}",
"gravatar_id":"",
"html_url":"https://github.com/user",
"id":84140703,
"login":"user",
"node_id":"MDQ6VXNlcjg0MTQwNzAz",
"organizations_url":"https://api.github.com/users/user/orgs",
"received_events_url":"https://api.github.com/users/user/received_events",
"repos_url":"https://api.github.com/users/user/repos",
"site_admin":false,
"starred_url":"https://api.github.com/users/user/starred{/owner}{/repo}",
"subscriptions_url":"https://api.github.com/users/user/subscriptions",
"type":"User",
"url":"https://api.github.com/users/user"
},
"eventName":"push",
"sha":"65aeff1fc085e1e369533de9f59b2754c5bb20",
"ref":"refs/heads/branch-2880",
"workflow":"Workflow Name",
"action":"__self_2",
"actor":"user",
"job":"sync",
"runNumber":5,
"runId":23024093,
"apiUrl":"https://api.github.com",
"serverUrl":"https://github.com",
"graphqlUrl":"https://api.github.com/graphql"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment