When a Pull Request is created or edited through the Tangled Web UI, links to Tangled Issues and Pull Requests in the body are resolved to AT URIs and stored in the record's references field.
tng pr create currently writes an empty references array, so a link in the body does not establish the same relationship.
Update Pull Request creation and editing to resolve supported Tangled links in the body and store their canonical AT URIs in references, matching core behavior.
The resolver should:
- recognize Tangled Issue and Pull Request URLs in Markdown links and autolinks;
- resolve repository-local numeric IDs to canonical AT URIs;
- ignore unsupported, external, or unresolved links;
- deduplicate references; and
- preserve existing behavior for mentions.
This was observed while creating a Pull Request for https://tangled.org/nnabeyang.tngl.sh/swift-tangled/issues/1. Saving the same body through the Web UI populated the expected Issue AT URI in references.