parser

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseResult

type ParseResult struct {
	Region     string
	Repository string
	PRId       string
}

ParseResult holds the extracted components from a CodeCommit PR URL.

func Parse

func Parse(rawURL string) (ParseResult, error)

Parse extracts region, repository, and PR ID from a CodeCommit PR URL. Expected format:

https://<region>.console.aws.amazon.com/codesuite/codecommit/repositories/<repo>/pull-requests/<pr-id>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL