+ All Categories
Home > Documents > Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process...

Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process...

Date post: 29-Jun-2020
Category:
Upload: others
View: 8 times
Download: 0 times
Share this document with a friend
59
Automating Open Source with Probot Bex Warner
Transcript
Page 1: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Automating Open Source with ProbotBex Warner

Page 2: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

#TheFuture #OrMaybeNot

Page 3: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

https://xkcd.com/1205/

Page 4: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Jidokaautomation with a human touch.

Page 5: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Automating ProcessImproves consistency, reduces overhead,

increases your confidence

Page 6: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Identify repeated tasks

“We {action}every {period of time}.”

Page 7: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Identify repeated tasks

“We release a changelogevery two weeks.”

Page 8: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

What does automation look like on GitHub?

Page 9: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

OAuth Apps

Page 10: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 11: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 12: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

github.com/dear-github/dear-github

Page 13: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

GitHub Apps 🎉

Page 14: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Granular permissions

Page 15: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 16: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 17: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

You’ve probably seen it in action

Page 18: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

You’ve probably seen it in action

Page 19: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

You’ve probably seen it in action

Page 20: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

probot.github.io

Page 21: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Listen on WebhooksTake action via the GitHub API

Page 22: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

AuthenticationJWT + installation access token

Page 23: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 24: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Abstracted away

Page 25: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

GitHub APIsREST, GraphQl, Octokits

Page 26: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Authenticated Octokit client

Page 27: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

https://developer.github.com/v3/libraries/

Page 28: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Let’s build an app!

Page 29: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

github.com/probot/create-probot-apphttps://carbon.now.sh/

Page 30: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

LIVE DEMO???

Page 31: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 32: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Let’s write some code

Page 33: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

index.jshttps://carbon.now.sh/

Page 34: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Identify repeated tasks

“We {action}every {period of time}.”

Page 35: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Identify repeated tasks

“We add a label forevery every new issue.”

Page 36: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

`app.on` listening for webhooks

https://carbon.now.sh/

Page 37: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Webhookshttps://developer.github.com/webhooks/

Page 38: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Issues Eventhttps://developer.github.com/v3/activity/events/types/

#issuesevent

Page 39: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Listening on `issues.opened`https://carbon.now.sh/

Page 40: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

https://octokit.github.io/rest.js/#api-Issues-addLabels

Page 41: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Probot’s Internal APIshttps://probot.github.io/api/latest/classes/context.html#issue

Page 42: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

`context.issue()`

Page 43: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Add necessary paramshttps://carbon.now.sh/

Page 44: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Make the API callhttps://carbon.now.sh/

Page 45: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Watch it work!

Page 46: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

Existing Apps

Page 47: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

probot.github.io/apps

Page 48: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 49: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 50: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 51: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 52: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 53: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 54: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 55: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated
Page 56: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

probot.github.io/community

Page 57: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

probot.github.io

Page 58: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

We’re hiring!

https://github.com/about/careers

Page 59: Automating Open Source with Probot · Jidoka automation with a human touch. Automating Process Improves consistency, reduces overhead, increases your confidence. Identify repeated

probot.github.io

[email protected]

@hiimbex

@hiimbexo Bex Warner

GitHub


Recommended