Unverified Commit 733efaea authored by Copilot's avatar Copilot Committed by GitHub
Browse files

feat: Disable interactiveMode in generated Maven settings.xml (#1052)

* Initial plan

* Add interactiveMode false to generated maven settings.xml

---------

Co-authored-by: default avatarcopilot-swe-agent[bot] <[email protected]>
Co-authored-by: default avatarBruno Borges <[email protected]>
parent 6c4d4a50
Loading
Loading
Loading
Loading
+2
Changes for __tests__/auth.test.ts: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ describe('auth tests', () => {
    const expectedSettings = `<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <interactiveMode>false</interactiveMode>
  <servers>
    <server>
      <id>${id}</id>
@@ -181,6 +182,7 @@ describe('auth tests', () => {
    const expectedSettings = `<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <interactiveMode>false</interactiveMode>
  <servers>
    <server>
      <id>${id}</id>
+1
Changes for dist/setup/index.js: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -77727,6 +77727,7 @@ function generate(id, username, password, gpgPassphrase) {
            '@xmlns': 'http://maven.apache.org/SETTINGS/1.0.0',
            '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
            '@xsi:schemaLocation': 'http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd',
            interactiveMode: false,
            servers: {
                server: [
                    {
+2
Changes for docs/advanced-usage.md: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -437,6 +437,7 @@ The two `settings.xml` files created from the above example look like the follow
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <interactiveMode>false</interactiveMode>
  <servers>
    <server>
      <id>github</id>
@@ -456,6 +457,7 @@ The two `settings.xml` files created from the above example look like the follow
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <interactiveMode>false</interactiveMode>
  <servers>
    <server>
      <id>maven</id>
+1
Changes for src/auth.ts: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ export function generate(
      '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
      '@xsi:schemaLocation':
        'http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd',
      interactiveMode: false,
      servers: {
        server: [
          {