Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def post(self):
sha = extract_sha(content)
if not sha:
# doesn't appear to be a git sha
error = "Doesn't look like a sha\n (%s) on %s" % (content, each["url"])
error = "Doesn't look like a sha:\n (“%s”)\n — on: %s" % (content, each["url"])
return make_response(jsonify({"error": error}))

deployments.append({"name": name, "sha": sha, "bugs": [], "url": url})
Expand Down
13 changes: 9 additions & 4 deletions src/DeployPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ class DeployPage extends React.Component {
this.startLoad('shas');
try {
const res = await ky
.post('/shas', { json: { owner, repo, deployments } })
.post('/shas', {
json: { owner, repo, deployments },
retries: 3,
timeout: 30000,
})
.json();

if (res.error) {
Expand All @@ -94,7 +98,7 @@ class DeployPage extends React.Component {
});
}
} catch (error) {
console.warn('Error fetching shas!');
console.warn('Error fetching deployment /shas or tags!');
console.error(error);
this.setState({ error });
} finally {
Expand Down Expand Up @@ -175,7 +179,7 @@ class DeployPage extends React.Component {
</>
) : !deployInfo ? (
<div className="alert alert-danger">
No Deployment info could be found
Deployment info could not be retrieved
</div>
) : (
<>
Expand Down Expand Up @@ -351,7 +355,8 @@ class DeployTable extends React.Component {
) : (
<div className="alert alert-warning" role="alert">
Even after comparing the last {commits.length} commits, a common
denominator could not be found! The difference is just too big.
denominator could not be found! The difference is just too big,
or the deployment SHA does not come from the default branch.
<br />
Use the links below to compare directly on GitHub.
</div>
Expand Down