Skip to content

Remove project-to-repository linking in update-project safe output#7439

Merged
mnkiefer merged 4 commits intomainfrom
copilot/update-project-safe-output
Dec 23, 2025
Merged

Remove project-to-repository linking in update-project safe output#7439
mnkiefer merged 4 commits intomainfrom
copilot/update-project-safe-output

Conversation

Copy link
Contributor

Copilot AI commented Dec 23, 2025

The update-project safe output was automatically linking resolved projects to the current repository using the linkProjectV2ToRepository GraphQL mutation. This linking behavior is now removed.

Changes

  • pkg/workflow/js/update_project.cjs: Removed the linkProjectV2ToRepository mutation call and associated error handling (lines 160-169)
  • Step numbering: Updated progress messages from 5 steps to 4 steps (removed "[3/5] Linking project to repository...")
  • pkg/workflow/js/update_project.test.cjs: Removed linkResponse mock from all 16 test cases

Behavior

Before:

// Step 3: Attempted to link project to repository
await github.graphql(
  "mutation($projectId: ID!, $repositoryId: ID!) { ... }",
  { projectId, repositoryId }
);

After:

// Step 3: Directly proceeds to processing content
core.info("[3/4] Processing content (issue/PR/draft) if specified...");

Project resolution, item management, and field updates remain unchanged.

Original prompt

In update-project safe output do not attempt to link the resolved project to the current repository.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 23, 2025 21:04
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Update project to avoid linking resolved project to repository Remove project-to-repository linking in update-project safe output Dec 23, 2025
Copilot AI requested a review from mnkiefer December 23, 2025 21:19
@mnkiefer mnkiefer marked this pull request as ready for review December 23, 2025 21:29
@mnkiefer mnkiefer merged commit cb1aae3 into main Dec 23, 2025
43 checks passed
@mnkiefer mnkiefer deleted the copilot/update-project-safe-output branch December 23, 2025 21:35
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