Skip to content

Commit

Permalink
s/repokitteh.sky/repokitteh.star/ et al (envoyproxy#4945)
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Donanhirsh <[email protected]>
  • Loading branch information
itayd authored and mattklein123 committed Nov 2, 2018
1 parent e3929e0 commit 919ab97
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 0 additions & 2 deletions repokitteh.sky

This file was deleted.

2 changes: 2 additions & 0 deletions repokitteh.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
use("github.com/softkitteh/repokitteh-modules/assign.star")
use("github.com/softkitteh/repokitteh-modules/review.star")
12 changes: 6 additions & 6 deletions source/docs/repokitteh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
<img src="https://repokitteh.io/logo.svg" height="100" align="right">

[RepoKitteh](https://repokitteh.io) is a [GitHub application](https://developer.github.com/apps/) that provides an easy way to create, integrate and maintain GitHub bots. It is deployed in GCP and supplied to Envoy under a contract with the CNCF.
The application is installed on specific GitHub repositories and interacts with these by receiving webhooks and making GitHub API calls. A root `repokitteh.sky` script tells the application what to do based on the webhook received.
The application is installed on specific GitHub repositories and interacts with these by receiving webhooks and making GitHub API calls. A root `repokitteh.star` script tells the application what to do based on the webhook received.

## Integration with Envoy
The file [repokitteh.sky](https://github.com/envoyproxy/envoy/blob/master/repokitteh.sky), which resides in the root of the Envoy repository tells RepoKitteh what functionality to use. The file is written in the [~~Skylark~~ Starlark language](https://github.com/bazelbuild/starlark/), which is a Python dialect with well defined threading and hermeticity guarantees.
The file [repokitteh.star](https://github.com/envoyproxy/envoy/blob/master/repokitteh.star), which resides in the root of the Envoy repository tells RepoKitteh what functionality to use. The file is written in the [Starlark language](https://github.com/bazelbuild/starlark/), which is a Python dialect with well defined threading and hermeticity guarantees.

For example, the statement
```
use("github.com/softkitteh/repokitteh-modules/assign.sky")
use("github.com/softkitteh/repokitteh-modules/assign.star")
```
tells RepoKitteh to use the [assign.sky](https://github.com/softkitteh/repokitteh-modules/blob/master/assign.sky) module.
tells RepoKitteh to use the [assign.star](https://github.com/softkitteh/repokitteh-modules/blob/master/assign.star) module.
Similar modules can be integrated in the future into Envoy in the same way.

## Current Functionality
### [Assign](https://github.com/softkitteh/repokitteh-modules/blob/master/assign.sky)
### [Assign](https://github.com/softkitteh/repokitteh-modules/blob/master/assign.star)
Set assignees to issues or pull requests.

Examples:
Expand All @@ -36,7 +36,7 @@ Only organization members can assign or unassign other users, who must be organi

[Demo PR](https://github.com/envoyproxy/envoybot/pull/6)

### [Review](https://github.com/softkitteh/repokitteh-modules/blob/master/review.sky)
### [Review](https://github.com/softkitteh/repokitteh-modules/blob/master/review.star)
Requests a a user to recview a pull request.

Examples:
Expand Down

0 comments on commit 919ab97

Please sign in to comment.