Skip to content

Commit 1eb30a0

Browse files
authoredSep 18, 2023··
fix: update template to not rely on filesystem location of package.json (#120)
1 parent 6a0dd6f commit 1eb30a0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎views/probot.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
const { name, version } = require(`${process.cwd()}/package`);
2-
31
module.exports.template = `
42
<!DOCTYPE html>
53
<html lang="en" class="height-full">
64
<head>
75
<meta charset="UTF-8">
86
<meta name="viewport" content="width=device-width, initial-scale=1.0">
97
<meta http-equiv="X-UA-Compatible" content="ie=edge">
10-
<title>${name} | built with Probot</title>
8+
<title>Built with Probot</title>
119
<link rel="stylesheet" href="https://probot.github.io/assets/dist/styles.css">
1210
</head>
1311
<body class="height-full bg-gray-light">
1412
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
1513
<img src="https://probot.github.io/assets/img/logo.png" alt="Probot Logo" width="100" class="mb-6">
1614
<div class="box-shadow rounded-2 border p-6 bg-white">
1715
<h1>
18-
Welcome to ${name}!
19-
<span class="Label Label--outline v-align-middle ml-2 text-gray-light">v${version}</span>
16+
Welcome to Probot!
2017
</h1>
2118
<p>This bot was built using <a href="https://github.com/probot/probot">Probot</a>, a framework for building GitHub Apps.</p>
2219
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.