From a86a162c0ed993ceb510a4422dd6ec73b3e55c3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:17:58 +0000 Subject: [PATCH 1/5] Initial plan From c04e9443aaf14a7bdefca1d9c9ba3ede3cb29032 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:22:10 +0000 Subject: [PATCH 2/5] workflow: don't exit on Linux runners; set SHOULD_CONTINUE env var instead Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com> --- dynamic/copilot-swe-agent/copilot | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 dynamic/copilot-swe-agent/copilot diff --git a/dynamic/copilot-swe-agent/copilot b/dynamic/copilot-swe-agent/copilot new file mode 100644 index 0000000000..be3a1bd062 --- /dev/null +++ b/dynamic/copilot-swe-agent/copilot @@ -0,0 +1,48 @@ +name: Copilot SWE Agent + +on: + workflow_dispatch: + push: + branches: + - copilot/evaluate-software-stack + +jobs: + copilot-agent: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Determine OS and set environment + shell: bash + run: | + # Determine runner OS (use GitHub-provided RUNNER_OS or fallback to uname) + if [ -z "${RUNNER_OS:-}" ]; then + RUNNER_OS="$(uname -s 2>/dev/null || echo Unknown)" + fi + + case "$RUNNER_OS" in + Linux|linux) + echo "SHOULD_CONTINUE=true" >> "$GITHUB_ENV" + echo "Runner OS is Linux — continuing." + ;; + "Windows"|"Windows_NT"|MINGW*|CYGWIN*|msys*) + echo "SHOULD_CONTINUE=true" >> "$GITHUB_ENV" + echo "Runner OS is Windows — continuing." + ;; + Darwin|Mac|macOS) + echo "SHOULD_CONTINUE=true" >> "$GITHUB_ENV" + echo "Runner OS is macOS — continuing." + ;; + *) + # Unknown or unsupported OS — do not exit; mark that some steps should skip if needed + echo "SHOULD_CONTINUE=false" >> "$GITHUB_ENV" + echo "Runner OS ($RUNNER_OS) is not explicitly supported. Continuing without quitting; subsequent steps should check SHOULD_CONTINUE." + ;; + esac + + - name: Run Copilot Agent + if: env.SHOULD_CONTINUE == 'true' + run: | + echo "Running Copilot SWE Agent..." + # Add your Copilot agent commands here From 350795430d3df1621a183657ae3b88237b359088 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:23:27 +0000 Subject: [PATCH 3/5] Fix line length issues in workflow file Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com> --- dynamic/copilot-swe-agent/copilot | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dynamic/copilot-swe-agent/copilot b/dynamic/copilot-swe-agent/copilot index be3a1bd062..83f985558e 100644 --- a/dynamic/copilot-swe-agent/copilot +++ b/dynamic/copilot-swe-agent/copilot @@ -16,7 +16,8 @@ jobs: - name: Determine OS and set environment shell: bash run: | - # Determine runner OS (use GitHub-provided RUNNER_OS or fallback to uname) + # Determine runner OS (use GitHub-provided RUNNER_OS or + # fallback to uname) if [ -z "${RUNNER_OS:-}" ]; then RUNNER_OS="$(uname -s 2>/dev/null || echo Unknown)" fi @@ -35,9 +36,12 @@ jobs: echo "Runner OS is macOS — continuing." ;; *) - # Unknown or unsupported OS — do not exit; mark that some steps should skip if needed + # Unknown or unsupported OS — do not exit; mark that + # some steps should skip if needed echo "SHOULD_CONTINUE=false" >> "$GITHUB_ENV" - echo "Runner OS ($RUNNER_OS) is not explicitly supported. Continuing without quitting; subsequent steps should check SHOULD_CONTINUE." + echo "Runner OS ($RUNNER_OS) is not explicitly" \ + "supported. Continuing without quitting;" \ + "subsequent steps should check SHOULD_CONTINUE." ;; esac From 2410db346f3256741a663dd1de50644995122a11 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:26:23 +0000 Subject: [PATCH 4/5] Address code review feedback: improve readability and consistency Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com> --- dynamic/copilot-swe-agent/copilot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dynamic/copilot-swe-agent/copilot b/dynamic/copilot-swe-agent/copilot index 83f985558e..b1f2dfb371 100644 --- a/dynamic/copilot-swe-agent/copilot +++ b/dynamic/copilot-swe-agent/copilot @@ -27,7 +27,7 @@ jobs: echo "SHOULD_CONTINUE=true" >> "$GITHUB_ENV" echo "Runner OS is Linux — continuing." ;; - "Windows"|"Windows_NT"|MINGW*|CYGWIN*|msys*) + Windows|Windows_NT|MINGW*|CYGWIN*|msys*) echo "SHOULD_CONTINUE=true" >> "$GITHUB_ENV" echo "Runner OS is Windows — continuing." ;; @@ -39,9 +39,9 @@ jobs: # Unknown or unsupported OS — do not exit; mark that # some steps should skip if needed echo "SHOULD_CONTINUE=false" >> "$GITHUB_ENV" - echo "Runner OS ($RUNNER_OS) is not explicitly" \ - "supported. Continuing without quitting;" \ - "subsequent steps should check SHOULD_CONTINUE." + echo "Runner OS ($RUNNER_OS) is not explicitly supported." + echo "Continuing without quitting; subsequent steps" \ + "should check SHOULD_CONTINUE." ;; esac From 2f28e522ec6473972024459c8b11e4dde2167baf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:29:05 +0000 Subject: [PATCH 5/5] Simplify unknown OS message and fix line length Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com> --- dynamic/copilot-swe-agent/copilot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dynamic/copilot-swe-agent/copilot b/dynamic/copilot-swe-agent/copilot index b1f2dfb371..9b5194c946 100644 --- a/dynamic/copilot-swe-agent/copilot +++ b/dynamic/copilot-swe-agent/copilot @@ -39,9 +39,9 @@ jobs: # Unknown or unsupported OS — do not exit; mark that # some steps should skip if needed echo "SHOULD_CONTINUE=false" >> "$GITHUB_ENV" - echo "Runner OS ($RUNNER_OS) is not explicitly supported." - echo "Continuing without quitting; subsequent steps" \ - "should check SHOULD_CONTINUE." + printf '%s\n' \ + "Runner OS ($RUNNER_OS) is not explicitly supported." \ + "Continuing without quitting; check SHOULD_CONTINUE." ;; esac