From 434017da7f1b7c66a36cae5634d39bda4440bda5 Mon Sep 17 00:00:00 2001 From: EdJaPe Date: Wed, 18 Feb 2026 11:25:02 -0800 Subject: [PATCH 1/3] fixed nothing problem on issue #96 --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index d9884f9..089fabf 100644 --- a/main.cpp +++ b/main.cpp @@ -21,8 +21,12 @@ int main(){ pick = rand() % VALIDATION.size(); cout << "What are you listening to?\n"; getline(cin,input); - transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); - cout << VALIDATION[pick] << "! Let's listen to more\n"; + if (input == "nothing"){ + return 0; + }else{ + transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); + cout << VALIDATION[pick] << "! Let's listen to more\n"; + } do{ cout << "What's next?\n"; From 27a1bb3f355dd210a05e77df4fd3276593b8fbd1 Mon Sep 17 00:00:00 2001 From: EdJaPe Date: Wed, 18 Feb 2026 11:45:48 -0800 Subject: [PATCH 2/3] added auto compile feature, fixed issue #95 --- .github/workflows/compile.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..408a490 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,23 @@ +name: Build C++ + +on: + push: + branches: "devops" + pull_request: + branches: [ main ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp \ No newline at end of file From b945bbc11070ca55d2c06f3ab9bab7993a8c4219 Mon Sep 17 00:00:00 2001 From: EdJaPe Date: Wed, 18 Feb 2026 11:49:05 -0800 Subject: [PATCH 3/3] added action badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bbcf55a..3b1bc38 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build C++](https://github.com/EdJaPe/autovalidate/actions/workflows/compile.yml/badge.svg)](https://github.com/EdJaPe/autovalidate/actions/workflows/compile.yml) + # autovalidate I like that app too!