-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3fa162
commit e36ca16
Showing
10 changed files
with
338 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
configparser | ||
click | ||
requests | ||
flask | ||
werkzeug |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
body{ | ||
padding-top: 60px; | ||
} | ||
.colorbox{ | ||
width: 1.5em; | ||
height: 1.5em; | ||
border: 1px solid black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "layout.html" %} | ||
{% block body %} | ||
<div class="jumbotron" id="landing-info"> | ||
<h1>Something went wrong!</h1> | ||
<hr> | ||
<h2>Error {{ error.code }}</h2> | ||
<p>{{ error.description }}</p> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" | ||
aria-expanded="false" aria-controls="navbar"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-logo" href="{{ url_for('index') }}"> | ||
<span class="navbar-brand"><span class="octicon octicon-radio-tower"></span> Labelord server</span> | ||
</a> | ||
</div> | ||
<div id="navbar" class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li> | ||
<a href="{{ url_for('index') }}"><span class="octicon octicon-home"></span> Home</a> | ||
</li> | ||
</ul> | ||
</div><!--/.nav-collapse --> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends "layout.html" %} | ||
{% block body %} | ||
<div class="jumbotron" id="landing-info"> | ||
<h1>Welcome!</h1> | ||
<hr> | ||
<p> | ||
<em>Labelord</em> is simple tool for management of issue labels for GitHub repositories. | ||
Server part serves for master-to-master replication of labels thanks to webhooks. It propagates | ||
labels changes within group of selected repositories. Cool huh?! | ||
</p> | ||
|
||
<p> | ||
This project has started as a semester work during advanced Python course | ||
<a href="https://github.com/cvut/MI-PYT/" target="_blank">MI-PYT @ FIT CTU in Prague</a>. | ||
</p> | ||
|
||
<hr> | ||
|
||
<h2>Instructions</h2> | ||
|
||
Create webhook @GitHub for your repositories with: | ||
<dl class="dl-horizontal"> | ||
<dt>Payload URL</dt> | ||
<dd><code>{{ url_for('hook_accept', _external=True) }}</code></dd> | ||
<dt>Content type</dt> | ||
<dd><code>application/json</code></dd> | ||
<dt>Secret</dt> | ||
<dd>The secret from config file!</dd> | ||
<dt>Content type</dt> | ||
<dd>Select event <strong>Label</strong> or more...</dd> | ||
</dl> | ||
|
||
<hr> | ||
|
||
<h2>Repositories</h2> | ||
<p> | ||
Application is running currently for following repositories (from config file): | ||
</p> | ||
|
||
<table class="table table-striped"> | ||
{% for repo in repos %} | ||
<tr> | ||
<td>{{ repo }}</td> | ||
<td align="right"> | ||
<a href="https://github.com/{{ repo }}" target="_blank" class="btn btn-primary"><span | ||
class="octicon octicon-octoface"></span> GitHub</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="author" content="Marek Suchánek"> | ||
<title>Labelord</title> | ||
|
||
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}"> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/octicons.min.css"/> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.min.css"/> | ||
</head> | ||
<body> | ||
<main> | ||
<div id="content"> | ||
<div class="container"> | ||
{% include "header.html" %} | ||
|
||
{% block body %}{% endblock %} | ||
</div> | ||
</div> | ||
</main> | ||
{% block scripts %}{% endblock %} | ||
</body> | ||
</html> |