Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

206 B
Raw Blame
const NUMBERED_PATH =
  /\/(?:pull|pulls|merge_requests|pull-requests)\/(\d+)(?:[/?#]|$)/i;

export function pullRequestNumber(url: string): string | null {
  return NUMBERED_PATH.exec(url)?.[1] ?? null;
}