From eba6cfe5c8ff1fe3e2b2fde146c15e74f3f4035d Mon Sep 17 00:00:00 2001 From: Swain Molster Date: Mon, 18 Sep 2023 14:58:40 -0400 Subject: [PATCH] fix: update template to not rely on filesystem location of package.json --- views/probot.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/views/probot.js b/views/probot.js index 4d4cfa3..5d20d0b 100644 --- a/views/probot.js +++ b/views/probot.js @@ -1,5 +1,3 @@ -const { name, version } = require(`${process.cwd()}/package`); - module.exports.template = ` @@ -7,7 +5,7 @@ module.exports.template = ` - ${name} | built with Probot + Built with Probot @@ -15,8 +13,7 @@ module.exports.template = ` Probot Logo

- Welcome to ${name}! - v${version} + Welcome to Probot!

This bot was built using Probot, a framework for building GitHub Apps.