Skip to content

fix: support placeholder values in project URL validation#12720

Merged
mnkiefer merged 2 commits intoproject-shortfrom
copilot/sub-pr-12715-again
Jan 30, 2026
Merged

fix: support placeholder values in project URL validation#12720
mnkiefer merged 2 commits intoproject-shortfrom
copilot/sub-pr-12715-again

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

The schema validation for the project: field was rejecting placeholder URLs like https://github.com/orgs/<ORG>/projects/<NUMBER> used in test and example workflows, despite being intentionally documented as placeholders.

Schema Changes

  • Updated project URL regex pattern to accept angle-bracket placeholders (<ORG>, <NUMBER>)
  • Pattern now matches both concrete URLs and placeholder format: ^https://github\.com/(users|orgs)/([^/]+|<[A-Z_]+>)/projects/(\d+|<[A-Z_]+>)$

Documentation

  • Added placeholder example to frontmatter reference
  • Clarified quoting convention: optional for plain URLs, recommended for placeholders to ensure proper YAML parsing
# Plain URL - quotes optional
project: https://github.com/orgs/github/projects/123

# Placeholder - quotes recommended
project: "https://github.com/orgs/<ORG>/projects/<NUMBER>"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Updated project URL pattern in schema to accept placeholder values with angle brackets
- Added documentation clarifying when quotes are needed for project field
- Placeholders like <ORG> and <NUMBER> now validate correctly
- Added example with placeholder format to documentation

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor project field handling for URL string consistency fix: support placeholder values in project URL validation Jan 30, 2026
Copilot AI requested a review from mnkiefer January 30, 2026 10:46
@mnkiefer mnkiefer marked this pull request as ready for review January 30, 2026 10:54
@mnkiefer mnkiefer merged commit 04247c0 into project-short Jan 30, 2026
1 check passed
@mnkiefer mnkiefer deleted the copilot/sub-pr-12715-again branch January 30, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants