Add a link to the GitHub repository for queue#84
Open
mrmonday wants to merge 1 commit intobarosl:masterfrom
Open
Add a link to the GitHub repository for queue#84mrmonday wants to merge 1 commit intobarosl:masterfrom
mrmonday wants to merge 1 commit intobarosl:masterfrom
Conversation
This adds a link back to the GitHub repository for a project, from the queue.
Author
|
This might not be the best place for a link, and it might not be the best way to do it if there are plans to support non-github repositories in future, I figured I'd throw the change together though since it's a one-liner and I'd find it useful. |
|
It looks like I'm not familiar enough yet with the +++ b/homu/html/queue.html
@@ -30,7 +30,7 @@
</style>
</head>
<body>
- <h1>Homu queue - {{repo_label}}</h1>
+ <h1>Homu queue - {{repo_url}}</h1>
<p>
<button type="button" id="rollup">Create a rollup</button>
diff --git a/homu/server.py b/homu/server.py
index 25f06fa..66dd66a 100644
--- a/homu/server.py
+++ b/homu/server.py
@@ -81,6 +81,7 @@ def queue(repo_label):
})
return g.tpls['queue'].render(
+ repo_url = g.repos[repo_label].html_url,
repo_label = repo_label,
states = rows,
oauth_client_id = g.cfg['github']['app_client_id'], |
Manishearth
added a commit
to Manishearth/homu
that referenced
this pull request
Mar 14, 2017
add homu ping command (fixes barosl#83)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a link back to the GitHub repository for a project, from the queue.