Remove undocumented view deletion attempts in campaign project creation#10367
Merged
Remove undocumented view deletion attempts in campaign project creation#10367
Conversation
- Remove deleteDefaultView and deleteProjectView functions - Add updateProjectView function to rename/update existing views - Update view creation logic to rename "View 1" to first configured view instead of trying to delete it - This fixes the issue where GitHub API doesn't allow deleting views Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Update safe-outputs.md to explain that first view replaces "View 1" - Remove outdated text about deleting the default view Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update project board default view to our board view in campaigns
Replace view deletion with view update for campaign project boards
Jan 16, 2026
Contributor
|
@copilot Check that this graphql mutation actually exists. |
The deleteProjectV2View GraphQL mutation is not documented in GitHub's official API. Research confirms that neither REST PATCH endpoints nor GraphQL mutations for updating/deleting ProjectV2 views are officially supported. Solution: Simply create configured views without attempting to delete "View 1". The default view will remain, and configured views are created as additional views. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Contributor
Author
You're correct. After checking GitHub's API documentation, I found that:
The solution in commit 3c830d7 removes all view deletion/update attempts. GitHub's default "View 1" will remain, and configured views are created as additional views. |
Copilot
AI
changed the title
Replace view deletion with view update for campaign project boards
Remove undocumented view deletion attempts in campaign project creation
Jan 16, 2026
mnkiefer
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub's Projects v2 API doesn't officially support deleting or updating views. The previous implementation attempted to delete the default "View 1" after creating custom views using an undocumented GraphQL mutation, which would fail silently.
Changes
deleteProjectView()anddeleteDefaultView()functions that used the undocumenteddeleteProjectV2ViewGraphQL mutationResearch Findings
After verification of GitHub's API documentation:
deleteProjectV2Viewmutation is not officially documented or supportedImplementation
This approach works within GitHub's officially documented API capabilities. The default "View 1" remains in the project, and configured views are created as view #2, #3, etc.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.