Add views property to update-project frontmatter configuration#9907
Add views property to update-project frontmatter configuration#9907
Conversation
…nagement guides Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot Add views property to update-project frontmatter (similar to how create-project has target-owner). |
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot Document this new safe outputs feature. |
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Documented the views property in commit 6534307. Documentation added to:
The documentation explains that users can declare views in frontmatter like: safe-outputs:
update-project:
views:
- name: "Sprint Board"
layout: board
filter: "is:issue is:open"Views are automatically created during workflow execution. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Implements declarative project view configuration in workflow frontmatter, allowing users to define views directly in
update-projectsafe output configuration instead of via programmatic MCP tool calls.Changes
Go Implementation:
ProjectViewstruct with fields: name, layout, filter, visible_fields, descriptionViews []ProjectViewfield toUpdateProjectConfigstructparseUpdateProjectConfig()to extract views from frontmatter YAMLGH_AW_PROJECT_VIEWSenvironment variableJSON Schema:
viewsarray property toupdate-projectschema inpkg/parser/schemas/main_workflow_schema.jsonJavaScript Runtime:
main()function inactions/setup/js/update_project.cjsto read and parseGH_AW_PROJECT_VIEWSDocumentation:
docs/src/content/docs/reference/safe-outputs.mdwith configuration examples, property reference table, layout descriptions, and filter syntaxdocs/src/content/docs/reference/frontmatter-full.mdwith views property documentation and inline examplesdocs/src/content/docs/guides/campaigns/project-management.mdexplaining the featureUsage Example
Views are serialized as JSON in the compiled workflow and automatically created at runtime when the workflow executes.
Files Changed
pkg/workflow/update_project.go- Added ProjectView struct and parsing logicpkg/workflow/compiler_safe_outputs_specialized.go- Added environment variable serializationpkg/workflow/update_project_job.go- Added views support for standalone job pathpkg/parser/schemas/main_workflow_schema.json- Added views schema definitionactions/setup/js/update_project.cjs- Added runtime view creation logicdocs/src/content/docs/reference/safe-outputs.md- Added comprehensive view creation documentationdocs/src/content/docs/reference/frontmatter-full.md- Added views property to update-project configurationdocs/src/content/docs/guides/campaigns/project-management.md- Added declarative view configuration sectionOriginal 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.