create and share your own github apps and actionsprobot . access and operate on github resources...

30

Upload: others

Post on 10-Jun-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 2: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 3: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Create and share your own GitHub Apps and Actions

Page 4: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Shashank BansalDirector, Product Management

@shashban

Page 5: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Global impact of your solutions

Brand Value Business

Page 6: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Let’s Build Something

Page 7: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Build artifacts and upload on creation of a Release

https://cli.github.com Sketch out the workflow

Page 8: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 9: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 10: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 11: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Owner / Repo

Tag

Input

Page 12: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

🧪

Page 13: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

• Created an action `setup-gh`

• It works cross-platform, and uses community tooling, minimizing the amount of code we need to maintain

• Contributed to the community

We did it !!!!

Page 14: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

ReleaseBuildPlan

Your integration journey with GitHub

Page 15: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Plan

Page 16: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

GitHub ActionOAuth AppGitHub App(this is what we just built)

Page 17: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Access and operate on GitHub resources autonomously as a

“bot”.

You maintain and operate on your compute.

OAuth app GitHub actionGitHub App

Page 18: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

A framework for building GitHub Apps

PROBOT

https://probot.github.io

Page 19: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access
Page 20: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Access and operate on GitHub resources autonomously as a

“bot”.

You maintain and operate on your compute.

OAuth appAccess and operate on GitHub resources on behalf of a user.

You maintain and operate on your compute.

GitHub actionGitHub App

Page 21: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Access and operate on GitHub resources autonomously as a

“bot”.

You maintain and operate on your compute.

OAuth appAccess and operate on GitHub resources on behalf of a user.

You maintain and operate on your compute.

GitHub actionExpose a discrete unit of work

that executes “headlessly” in the context of developer workflows.

You maintain, we operate on our compute / the customer’s

compute.

GitHub App

Page 22: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

GitHub AppOAuth app

GitHub action

Page 23: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Which one is right for you

GitHub action GitHub Apps

Solution can run completely on GitHub RunnersCommunicate over API/ via a CLI

Solution needs processing beyond GitHub RunnersService hosted by you outside GitHub

Solution runs “headlessly” with no UI Solution requires user interaction

Solution is “stateless” and without data storage Solution needs to persist data

Needs fixed permissionsExecuted with workflows in any repo

Needs fine grained, dynamic permissionsScoped to a repo/ installation

Needs chaining with other executions Standalone

Page 24: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Build

Page 25: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

APIsDocshttps://docs.github.com

SDKshttps://octokit.github.io

Webhooks

Building Blocks

Page 26: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

https://partner.github.com

Page 27: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Release

Page 28: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

The MarketplaceWindow to the world for your tools

https://github.com/marketplace

Page 29: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access

Self Serve VerificationApplying for publisher verification for your organization - GitHub Docs

Page 30: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access