From 07c29ba7793975cd402b347b4c7066648b4ec14e Mon Sep 17 00:00:00 2001 From: Saravanan Palanisamy Date: Thu, 30 Mar 2023 20:21:09 +0400 Subject: [PATCH] remove TODO comment and update error message --- src/add-to-project.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/add-to-project.ts b/src/add-to-project.ts index 4f990f33..4564373c 100644 --- a/src/add-to-project.ts +++ b/src/add-to-project.ts @@ -1,8 +1,6 @@ import * as core from '@actions/core' import * as github from '@actions/github' -// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well. -// https://github.com/orgs|users//projects/ const urlParse = /\/(?orgs|users)\/(?[^/]+)\/projects\/(?\d+)/ @@ -80,7 +78,7 @@ export async function addToProject(): Promise { if (!urlMatch) { throw new Error( - `Invalid project URL: ${projectUrl}. Project URL should match the format ///projects/`, + `Invalid project URL: ${projectUrl}. Project URL should match the format ///projects/`, ) }