Skip to content

Clean-up temporary ID pattern and add deferral logic to update-project#16098

Merged
mnkiefer merged 6 commits intomainfrom
fix-tmp-ids
Feb 16, 2026
Merged

Clean-up temporary ID pattern and add deferral logic to update-project#16098
mnkiefer merged 6 commits intomainfrom
fix-tmp-ids

Conversation

@mnkiefer
Copy link
Contributor

@mnkiefer mnkiefer commented Feb 16, 2026

  • Standardizes the format for temporary IDs to 3-8 alphanumeric characters consistently.
  • Fixes handling of unresolved temporary IDs in update_project by deferring updates when a referenced temporary ID cannot be resolved (yet).

@mnkiefer mnkiefer self-assigned this Feb 16, 2026
Copilot AI review requested due to automatic review settings February 16, 2026 12:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the safe-outputs tool schemas and tests to use a consistent temporary ID length (3–8 chars) and adds retry-friendly deferral behavior to update_project when it references unresolved temporary issue IDs.

Changes:

  • Relax temporary ID regex patterns from {4,8} to {3,8} across tool schemas and related tests.
  • Add update_project handler deferral when content_number/issue/pull_request is an unresolved temporary ID.
  • Add unit test coverage for the new update_project deferral behavior.

Reviewed changes

Copilot reviewed 53 out of 53 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
pkg/workflow/js/safe_outputs_tools.json Updates schema patterns for temporary IDs (3–8) for multiple tools.
actions/setup/js/safe_outputs_tools.json Mirrors schema pattern updates for the JS tool definitions.
actions/setup/js/update_project.cjs Defers update_project when the referenced issue/PR temp ID is not yet resolved.
actions/setup/js/update_project.test.cjs Adds a test asserting deferral behavior and no GraphQL call on unresolved temp IDs.
actions/setup/js/create_issue_new_arch.test.cjs Updates temporary ID regex expectation to 3–8 chars.
actions/setup/js/create_issue.test.cjs Updates temporary ID regex expectation to 3–8 chars.
Comments suppressed due to low confidence (1)

pkg/workflow/js/safe_outputs_tools.json:892

  • temporary_id for draft issues currently disallows a leading #, but the update_project handler accepts #aw_... and normalizes it by stripping the hash. To avoid rejecting inputs the handler can process (and to stay consistent with actions/setup/js/safe_outputs_tools.json), consider allowing an optional leading # in this pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Feb 16, 2026

@mnkiefer I've opened a new pull request, #16101, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 53 out of 53 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Feb 16, 2026

@mnkiefer I've opened a new pull request, #16104, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI added a commit that referenced this pull request Feb 16, 2026
…y_id patterns

Align pkg/workflow/js/safe_outputs_tools.json schema with actions/setup/js/safe_outputs_tools.json
and the update_project handler implementation which already accepts and strips # prefix.

Changes:
- Update draft_issue_id pattern from ^aw_[A-Za-z0-9]{3,8}$ to ^#?aw_[A-Za-z0-9]{3,8}$
- Update temporary_id pattern from ^aw_[A-Za-z0-9]{3,8}$ to ^#?aw_[A-Za-z0-9]{3,8}$
- Update descriptions to reflect optional # prefix support

Fixes schema validation failures for inputs like #aw_abc123 that work at runtime.

Addresses: #16098 (comment)

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@mnkiefer
Copy link
Contributor Author

@copilot recompile workflows

Copy link
Contributor

Copilot AI commented Feb 16, 2026

@mnkiefer I've opened a new pull request, #16110, to work on those changes. Once the pull request is ready, I'll request review from you.

@mnkiefer mnkiefer merged commit d97c388 into main Feb 16, 2026
52 checks passed
@mnkiefer mnkiefer deleted the fix-tmp-ids branch February 16, 2026 14:15
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