Enhance MuleSoft tools, UI, and auto-approve features#31
Merged
Conversation
Enhance Anypoint Studio with new tools, UI improvements, and workflows
…-exception fix: Handle CancellationException in signOut and CompletionProvider
…ave scripts - Introduced `mule_read_transform` to read DataWeave scripts from `ee:transform` components in Mule XML files. - Introduced `mule_write_transform` to safely update DataWeave scripts in Transform Message components. - Enhanced `MuleTransformSupport` with shared utilities for XML parsing, transform lookup, resource resolution, and serialization. - Updated agent assets to include new tools and ensure proper usage of local and MCP tools. - Improved error handling for transform read/write operations, ensuring clean failures for various edge cases. - Hardened XML handling with secure parser settings to avoid unnecessary churn in XML declarations. - Added comprehensive tests to validate the functionality of the new tools and ensure expected behavior.
…iched tool descriptions, and new context preferences - Expanded six existing prompt files for detailed guidance on Mulesoft best practices, security, performance, deployment, API contract validation, and MUnit testing. - Introduced three new prompt files focusing on DataWeave best practices, connector governance, and logging observability. - Deepened agent instructions to include specific Mulesoft patterns and error handling strategies. - Enriched tool descriptions to provide clearer context on usage and expected outcomes. - Added new preferences for console and transform context in the Chat Preferences page. - Updated preference initializer with default values for new context features. - Introduced a new DataWeave content assist processor for inline completions in .dwl editors. - Documented changes and improvements in MULESOFT_COPILOT_IMPROVEMENTS.md for clarity on enhancements.
- Added a method to refresh the input background in ActionBar to ensure consistent styling. - Introduced CSS class for chat input in ChatInputTextViewer and applied dark mode colors. - Styled text inputs across various preference dialogs using PreferencePageUtils for better UI consistency. - Migrated old MCP tools status preferences to remove plugin display name prefixes from server names in LanguageServerSettingManager. - Documented the structure and styling of chat window containers in new markdown and SVG files for better developer reference.
Enhance MuleSoft tools and UI with new DataWeave features
* feat - LSP data layer + confirmationService skeleton (Auto-approve Part 1 ) (microsoft#132) * feat: Terminal auto-approve with confirmation dialog enhancement (Auto-approve Part 2) (microsoft#171) * revert splitDropdownButton padding change (microsoft#184) * feat: File operation auto-approve with glob pattern rules (Auto-approve Part 3) (microsoft#216) * add file operation approve logic * resolve comments * change default rules color * resolve comments * update test cases * feat: MCP tool auto-approve and global auto-approve (Auto-approve Part 4) (microsoft#218) * add mcp approve support and global approve support * resolve comments * fix test cases * resolve comments and add token/policy check * fix compile error * Fix auto-approve preference page layout instability * fix copilot comments
Dev/anypoint studio
…clipse-anypoint into stage # Conflicts: # com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/CopilotAgentSettings.java # com.microsoft.copilot.eclipse.ui/css/dark.css # com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/AgentToolService.java # com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java
…for tool migration
Master: Enhance MuleSoft tools, UI, and auto-approve features
There was a problem hiding this comment.
Pull request overview
This PR extends the Eclipse plugin with MuleSoft/Anypoint-focused capabilities (new Mule analysis tools + prompt library), introduces a “Tool Auto Approve” preferences UI and supporting confirmation/auto-approval plumbing, and refines chat/picker UI theming and DataWeave editor integration for Anypoint Studio.
Changes:
- Add MuleSoft agent tools (project scan/review/security/schema/MUnit utilities) plus a packaged prompt library under
mulesoft-copilot/. - Add tool confirmation + auto-approve preferences (terminal/file ops/MCP/global) including new preference pages, handlers, and policy/feature-flag wiring.
- Improve chat UI styling/background inheritance and add DataWeave (
.dwl) content type + content assist plumbing.
Reviewed changes
Copilot reviewed 153 out of 154 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Add anypoint modules to build |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/utils/UiUtils.java | Icon button background behavior |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/utils/PreferencesUtils.java | Add console/transform pref helpers |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/SplitDropdownButton.java | Rename + split-button enhancements |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/ItemController.java | Focus bg paint + disposal |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java | Apply popup bg recursively |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownButton.java | Optional parent bg for face |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/CssConstants.java | Add chat bg/fg color getters |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/WrappableNoteLabel.java | Inherit parent background |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/WrappableIconLink.java | Inherit parent background |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/Messages.java | Add preference UI strings |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/McpPreferencePage.java | Style MCP text inputs |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/GeneralPreferencesPage.java | Style GHE text input |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CustomModesPreferencePage.java | Style mode name input |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CustomInstructionPreferencePage.java | Style instruction inputs |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferencesPage.java | Link to auto-approve page |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferenceInitializer.java | New defaults + auto-approve defaults |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/ChatPreferencesPage.java | Add console/transform toggles |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AutoApprovePreferencePage.java | New auto-approve preference page |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AddTerminalRuleDialog.java | New terminal rule dialog |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AddByokModelDialog.java | Style BYOK dialog inputs |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AddApiKeyDialog.java | Style API key dialog input |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerItem.java | Use SplitDropdownButton |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/UserTurnWidget.java | Chat message css + bg tweaks |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitValidateFlowTestsTool.java | New MUnit validation tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitImprovementSuggestionsTool.java | New MUnit suggestions tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitFullReviewTool.java | New MUnit full review tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleToolResponse.java | Structured tool response JSON |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleSecurityReviewTool.java | New Mule security review tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectSummaryTool.java | New project summary tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectScanTool.java | New project scan tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectAnalysis.java | Project analysis model |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleDwlReadTool.java | Read .dwl tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleDiagnostic.java | Diagnostics model |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleCodeReviewTool.java | New code review tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/ApiSchemaAnalyzeTool.java | New schema analyzer tool |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/UserPreferenceService.java | Reload built-in modes async |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/MuleConsoleParser.java | Mule console enrichment |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/McpConfigService.java | Bind MCP auto-approve section |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/MavenConsoleParser.java | Maven console enrichment |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextPromptProcessor.java | Implement @console context |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/messages.properties | Confirmation dialog strings |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/Messages.java | Wire new chat NLS keys |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/confirmation/FallbackConfirmationHandler.java | Default confirmation handler |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/confirmation/ConfirmationHandler.java | Confirmation handler API (UI) |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatMarkupViewer.java | Apply chat message background class |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatAssistProcessor.java | Proposals for @console/@Transform |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/BaseTurnWidget.java | ConfirmationContent-based confirmation flow |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AddContextButton.java | Flat icon button background |
| com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ActionBar.java | Parent bg for pickers/buttons |
| com.microsoft.copilot.eclipse.ui/plugin.xml | Add auto-approve pref page + DataWeave content type/editor |
| com.microsoft.copilot.eclipse.ui/plugin.properties | Add auto-approve page label |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-security-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-performance-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-code-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/logging-observability.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/generate-munit-tests.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/error-handling-contract.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/deployment-readiness.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/dataweave-optimize.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/dataweave-best-practices.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/connector-governance.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/batch-job-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/async-flow-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-spec-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-led-architecture-review.prompt.md | New prompt |
| com.microsoft.copilot.eclipse.ui/META-INF/MANIFEST.MF | Export confirmation pkg + relax wikitext ranges |
| com.microsoft.copilot.eclipse.ui/css/macosx-light.css | Light theme message bg |
| com.microsoft.copilot.eclipse.ui/css/light.css | Light theme bg adjustments |
| com.microsoft.copilot.eclipse.ui/css/dark.css | Dark theme bg adjustments |
| com.microsoft.copilot.eclipse.ui/build.properties | Package mulesoft-copilot prompts |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManagerTests.java | Update settings expectations |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferenceInitializerTest.java | Add console context default test |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/MavenConsoleParserTest.java | New parser unit tests |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextServiceTest.java | New console service tests |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/ChatCompletionServiceTest.java | Add @console gating tests |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/ChatAssistProcessorTest.java | Add proposal tests |
| com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpConfigurationTest.java | New anypoint config tests |
| com.microsoft.copilot.eclipse.ui.test/META-INF/MANIFEST.MF | Add anypoint + console deps |
| com.microsoft.copilot.eclipse.repository/pom.xml | Include all deps in p2 repo |
| com.microsoft.copilot.eclipse.repository/category.xml | Publish anypoint feature/category |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/ToolAnnotations.java | Add MCP tool annotations model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/policy/DidChangePolicyParams.java | Add auto-approval policy flag |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/InvokeClientToolConfirmationParams.java | Add annotations/metadata fields |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/GetDefaultFileSafetyRulesResult.java | Add CLS default rules result |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/FileSafetyRuleInfo.java | Add file safety rule model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/DidChangeFeatureFlagsParams.java | Add auto-approval flag helper |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java | Add getDefaultFileSafetyRules call |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServer.java | Add getDefaultFileSafetyRules request |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageClient.java | Wire auto-approval flags |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/format/FormatOptionProvider.java | Add DataWeave language mapping |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/FeatureFlags.java | Add auto-approval gating logic |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/Constants.java | Add console/transform + auto-approve keys |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java | Treat CancellationException as cancel |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/TerminalAutoApproveRule.java | New terminal rule model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/FileOperationAutoApproveRule.java | New file-op rule model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/ConfirmationResult.java | New confirmation evaluation result |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/ConfirmationHandler.java | Core confirmation handler API |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/ConfirmationContent.java | Confirmation dialog content model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/ConfirmationActionScope.java | Persist scope enum |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/ConfirmationAction.java | Action button model |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/BuiltInChatModeManager.java | Add async reload API |
| com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java | Handle sign-out cancellation |
| com.microsoft.copilot.eclipse.core/plugin.xml | Add DataWeave content type mapping |
| com.microsoft.copilot.eclipse.core/copilot-agent/package.json | Formatting/cleanup |
| com.microsoft.copilot.eclipse.core/copilot-agent/copy-binaries.js | Don’t fail if platform binary missing |
| com.microsoft.copilot.eclipse.core.test/src/com/microsoft/copilot/eclipse/core/completion/FormatOptionProviderTests.java | Add DataWeave extension test |
| com.microsoft.copilot.eclipse.core.agent.win32/pom.xml | Add tycho-packaging-plugin |
| com.microsoft.copilot.eclipse.core.agent.macosx.x64/pom.xml | Add tycho-packaging-plugin |
| com.microsoft.copilot.eclipse.core.agent.macosx.aarch64/pom.xml | Add tycho-packaging-plugin |
| com.microsoft.copilot.eclipse.core.agent.linux.x64/pom.xml | Add tycho-packaging-plugin |
| com.microsoft.copilot.eclipse.core.agent.linux.aarch64/pom.xml | Add tycho-packaging-plugin |
| com.microsoft.copilot.eclipse.anypoint/templates/copilot-instructions-mule-template.md | Add Mule project instructions template |
| com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpSettings.java | Secure preference storage |
| com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpRegistrationProvider.java | Provide MCP server config |
| com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpConfiguration.java | Build MuleSoft MCP JSON |
| com.microsoft.copilot.eclipse.anypoint/pom.xml | New anypoint plugin module |
| com.microsoft.copilot.eclipse.anypoint/plugin.xml | Register MCP provider + pref page |
| com.microsoft.copilot.eclipse.anypoint/META-INF/MANIFEST.MF | Bundle manifest for anypoint |
| com.microsoft.copilot.eclipse.anypoint/build.properties | Build includes templates |
| com.microsoft.copilot.eclipse.anypoint.feature/pom.xml | New anypoint feature module |
| com.microsoft.copilot.eclipse.anypoint.feature/feature.xml | AnyPoint packaging feature |
| base.target | Add TM terminal IUs |
| .gitignore | Adjust zip ignores + add dirs |
| .github/workflows/sync-upstream.yml | Add upstream sync automation |
| .github/workflows/ci.yml | CI workflow commented out |
| .github/workflows/build-and-package.yml | Add p2 zip packaging workflow |
Comments suppressed due to low confidence (1)
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/SplitDropdownButton.java:108
- The constructor Javadoc says "Creates a new SplitButton" but the class is named SplitDropdownButton. Updating the wording to match the class name avoids confusion in API docs/search.
Comment on lines
+33
to
+35
| pref.setDefault(Constants.WORKSPACE_CONTEXT_ENABLED, true); | ||
| pref.setDefault(Constants.CONSOLE_CONTEXT_ENABLED, true); | ||
| pref.setDefault(Constants.TRANSFORM_CONTEXT_ENABLED, false); |
Comment on lines
11
to
13
Comment on lines
17
to
+21
| com.microsoft.copilot.eclipse.core;bundle-version="0.15.0", | ||
| com.microsoft.copilot.eclipse.ui;bundle-version="0.15.0", | ||
| com.microsoft.copilot.eclipse.anypoint;bundle-version="0.15.0", | ||
| org.eclipse.ui;bundle-version="3.205.0", | ||
| org.eclipse.ui.console, |
Comment on lines
+1
to
+43
| # name: CI | ||
|
|
||
| # on: | ||
| # push: | ||
| # branches: [ "main" ] | ||
| # pull_request: | ||
| # branches: [ "main" ] | ||
|
|
||
| # permissions: | ||
| # contents: read | ||
|
|
||
| # jobs: | ||
| # build: | ||
|
|
||
| # runs-on: ${{ matrix.os }} | ||
| # strategy: | ||
| # matrix: | ||
| # os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
|
||
| # steps: | ||
| # - uses: actions/checkout@v4 | ||
|
|
||
| # - name: Setup Node.js environment | ||
| # uses: actions/setup-node@v4 | ||
| # with: | ||
| # node-version: 22 | ||
|
|
||
| # - name: Install Copilot agent | ||
| # working-directory: com.microsoft.copilot.eclipse.core/copilot-agent | ||
| # run: npm i -f | ||
|
|
||
| # - name: Set up JDK 17 | ||
| # uses: actions/setup-java@v4 | ||
| # with: | ||
| # java-version: '17' | ||
| # distribution: 'temurin' | ||
| # cache: maven | ||
|
|
||
| # - name: Build | ||
| # uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1 | ||
| # with: | ||
| # run: >- | ||
| # ./mvnw clean verify --batch-mode |
Comment on lines
+16
to
+24
| private static final Pattern MAVEN_MARKER = | ||
| Pattern.compile("\\[(INFO|WARNING|ERROR|WARN)\\]|BUILD (SUCCESS|FAILURE)", Pattern.CASE_INSENSITIVE); | ||
| private static final Pattern BUILD_RESULT_PATTERN = | ||
| Pattern.compile("BUILD (SUCCESS|FAILURE)", Pattern.CASE_INSENSITIVE); | ||
| private static final Pattern ERROR_LINE_PATTERN = | ||
| Pattern.compile("^\\[ERROR\\]", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE); | ||
| private static final Pattern WARNING_LINE_PATTERN = | ||
| Pattern.compile("^\\[WARNING\\]", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE); | ||
|
|
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.
No description provided.