Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanDalelR committed Jun 20, 2023
1 parent b8c9eed commit fb1c968
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions pages/api/actions/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,13 @@ export default async (req, res) => {
]
);
addActionCount({ watermelon_user });
console.log("added action value");

let textToWrite = "";
textToWrite += "### WatermelonAI Summary (BETA)";
textToWrite += `\n`;

let businessLogicSummary;
if (AISummary) {
console.log("getting AISummary", AISummary);
businessLogicSummary = await getOpenAISummary({
ghValue,
commitList,
Expand All @@ -337,7 +335,6 @@ export default async (req, res) => {
});

if (businessLogicSummary) {
console.log("businessLogicSummary", businessLogicSummary);
textToWrite += businessLogicSummary;
} else {
textToWrite += "Error getting summary" + businessLogicSummary.error;
Expand Down Expand Up @@ -368,7 +365,6 @@ export default async (req, res) => {
});

// Fetch all comments on the PR
console.log("request to get comments", number);
const comments = await octokit.request(
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments?sort=created&direction=desc",
{
Expand Down
1 change: 0 additions & 1 deletion pages/slack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default function Slack({ organization, avatar_url, userEmail, error }) {
}
export async function getServerSideProps(context) {
let f;
console.log("context", context.query);
if (context.query.code) {
f = await fetch(`https://slack.com/api/oauth.v2.access`, {
method: "POST",
Expand Down
6 changes: 5 additions & 1 deletion utils/actions/markdownHelpers/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const notionMarkdown = ({
markdown += `\n`;
markdown += "### Notion Pages";
markdown += `\n`;
console.log("notionValue", notionValue);

if (NotionPages) {
if (notionValue?.error === "no notion token") {
Expand All @@ -20,6 +19,11 @@ const notionMarkdown = ({
if (notionValue?.length) {
for (let index = 0; index < notionValue.length; index++) {
const element = notionValue[index];
console.log("element", {
icon: element?.icon,
title: element?.properties.title,
url: element?.url,
});
markdown += `\n - [${
element?.icon.type === "external"
? `<img src="${element?.icon.external.url}" alt="Page icon" width="20" height="20" />`
Expand Down

1 comment on commit fb1c968

@vercel
Copy link

@vercel vercel bot commented on fb1c968 Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.