From 8ef8a721923204ca51fc4b2a64a4a5ca27e00370 Mon Sep 17 00:00:00 2001 From: Susana Sandoval Date: Wed, 18 Feb 2026 11:25:44 -0800 Subject: [PATCH 1/2] Changed behavior of the nothing input --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index d9884f9..3227019 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include using std::cout; using std::cin; @@ -22,6 +23,9 @@ int main(){ cout << "What are you listening to?\n"; getline(cin,input); transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); + if(input == "nothing"){ + return 0; + } cout << VALIDATION[pick] << "! Let's listen to more\n"; do{ From 85bf24e4fb068fcc0029123d9ad947a0b7ba2948 Mon Sep 17 00:00:00 2001 From: Susana Sandoval Date: Wed, 18 Feb 2026 11:39:49 -0800 Subject: [PATCH 2/2] Implemented continuous integration into workflow Issue 95 Implement CI workflow to compile program Fixes #95# --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..07f51e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Compile program + run: g++ main.cpp -o program \ No newline at end of file