Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update template to not rely on filesystem location of package.json #120

Merged
merged 1 commit into from
Sep 18, 2023
Merged
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
7 changes: 2 additions & 5 deletions views/probot.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
const { name, version } = require(`${process.cwd()}/package`);

module.exports.template = `
<!DOCTYPE html>
<html lang="en" class="height-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>${name} | built with Probot</title>
<title>Built with Probot</title>
<link rel="stylesheet" href="https://probot.github.io/assets/dist/styles.css">
</head>
<body class="height-full bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
<img src="https://probot.github.io/assets/img/logo.png" alt="Probot Logo" width="100" class="mb-6">
<div class="box-shadow rounded-2 border p-6 bg-white">
<h1>
Welcome to ${name}!
<span class="Label Label--outline v-align-middle ml-2 text-gray-light">v${version}</span>
Welcome to Probot!
</h1>
<p>This bot was built using <a href="https://github.com/probot/probot">Probot</a>, a framework for building GitHub Apps.</p>
</div>
Expand Down