mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
131 lines
5.4 KiB
HTML
131 lines
5.4 KiB
HTML
---
|
|
layout: default
|
|
---
|
|
<div class="container-lg px-3">
|
|
<header class="py-6">
|
|
<div class="pb-0 pt-md-4 py-lg-6">
|
|
<div class="d-md-flex flex-md-items-center flex-md-row-reverse flex-md-justify-center gutter-md-spacious">
|
|
<div class="col-md-8 text-center text-md-left">
|
|
<h1 class="alt-h2 text-uppercase lh-condensed text-brand-blue">Probot</h1>
|
|
<h2 class="alt-h2 lh-condensed">
|
|
GitHub Apps to automate <br>and improve your workflow
|
|
</h2>
|
|
<p class="alt-lead text-gray-light mt-2 lh-condensed" style="opacity: 0.6">
|
|
Use the pre-built apps to extend GitHub,<br>
|
|
and easily build and share your own.
|
|
</p>
|
|
</div>
|
|
<div class="col-3 mx-auto mx-md-0 offset-md-1 text-center text-md-right">
|
|
<img src="/assets/logo.png" class="width-fit">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</div>
|
|
|
|
<div id="explore" class="bg-gray-light border-top border-gray-light">
|
|
<div class="container-lg px-3 page-section">
|
|
<h2 class="alt-h1 text-center">Discover</h2>
|
|
<p class="lead text-center col-md-8 col-sm-10 mx-auto">
|
|
Check out these apps built by the community that extend your project on GitHub. They're all open source and free to use on any project.
|
|
</p>
|
|
|
|
<div class="d-md-flex flex-wrap gutter flex-auto">
|
|
{% assign apps = site.apps | sort: 'stars' | reverse %}
|
|
{% for app in apps limit:9 %}
|
|
<div class="col-lg-4 col-md-6 mb-3 mt-3">
|
|
<a href="{{ app.url }}" class="d-flex flex-column bg-white rounded-1 box-shadow border text-inherit no-underline" style="height:100%">
|
|
<h3 class="h4 px-3 pt-3">{{ app.title }}</h3>
|
|
<p class="text-gray lh-condensed px-3 pb-3">{{ app.description }}</p>
|
|
<div class="text-gray-light pl-3 pr-2 py-2 bg-gray-light border-top" style="margin-top: auto;">
|
|
<div class="d-flex flex-row">
|
|
<div class="col-3 tooltipped tooltipped-s" aria-label="{{ app.stars }} stars">{% octicon star heigh:16 class:"v-align-middle" %} <span class="">{{ app.stars }}</span></div>
|
|
<div class="col-6 text-right">
|
|
<img class="avatar tooltipped tooltipped-s" aria-label="Made by {{ app.author }}" height="24" src="https://github.com/{{ app.author }}.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="text-center my-6">
|
|
<p class="lead mx-auto col-md-8">
|
|
Discover dozens of apps that extend GitHub and improve your workflow.
|
|
</p>
|
|
<a class="btn btn-outline btn-large" href="https://github.com/search?q=topic%3Aprobot-plugin&type=Repositories">
|
|
{% octicon telescope class:"mr-2" %}
|
|
Explore more apps
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="build" class="border-top page-section f4">
|
|
<div class="container-lg px-3">
|
|
<h2 class="alt-h1 text-center lh-condensed">Build your own app</h2>
|
|
<p class="alt-lead text-center mb-6">Apps are easy to write and share.</p>
|
|
<p class="text-center mb-6">
|
|
<a class="btn btn-outline btn-large" href="/docs/">
|
|
{% octicon tools class:"mr-2" %}
|
|
Build a Probot App
|
|
</a>
|
|
</p>
|
|
|
|
<div class="page-section d-flex flex-column flex-md-row gutter flex-items-center flex-md-items-center">
|
|
<div class="col-md-6 hide-md">
|
|
<img src="https://assets-cdn.github.com/images/modules/site/home-illo-conversation.svg" class="d-block width-fit mx-6">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h3 class="alt-h3 mb-2">Optimized for GitHub</h3>
|
|
<p class="">
|
|
Receive webhooks and use the authenticated client to access the GitHub API. Granular permissions give each app access only to the data it needs and nothing more.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="page-section">
|
|
<div class="d-md-flex flex-md-row gutter-md flex-md-items-center">
|
|
<div class="col-md-6">
|
|
<h3 class="alt-h3 mb-2">Easily scriptable</h3>
|
|
<p class="">Focus on what you want to build. A simple API—built on the latest ES6 JavaScript features—hides the details you don't care about.</p>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="rounded-2 overflow-hidden border" style="margin-left: 60px;">
|
|
{% highlight javascript %}
|
|
module.exports = robot => {
|
|
robot.on('issues.opened', async context => {
|
|
const params = context.issue({
|
|
body: 'Hello World!'
|
|
});
|
|
context.github.issues.createComment(params);
|
|
});
|
|
};
|
|
{% endhighlight %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-md-flex flex-md-row flex-md-row-reverse gutter mt-4">
|
|
<div class="col-md-6">
|
|
<img src="https://github.com/probot.png" height="44" width="44" class="avatar rounded-1 float-left">
|
|
<div class="timeline-comment box rounded-2 border bg-white" style="margin-left: 60px;">
|
|
<div class="bg-gray px-3 py-2 border-bottom">
|
|
<strong>@probot</strong> commented
|
|
</div>
|
|
<p class="m-0 p-3">Hello World!</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h2 class="alt-h3 mb-2"></h2>
|
|
<p>Apps are first class actors within GitHub.</p>
|
|
<p class="mt-3">
|
|
<a href="/docs/">Get started with Probot {% octicon chevron-right %}</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|