From 0eb4c290d03cc47682b534f4e928e4e8bec854f6 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:48:56 +0200 Subject: [PATCH 01/14] lol --- .forgejo/workflows/demo.yml | 11 ++++++++++- output.txt | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 output.txt diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index f51b9e2..217696b 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -1,4 +1,4 @@ -on: [push] +on: [pull_request] jobs: build: env: @@ -9,3 +9,12 @@ jobs: - run: ls -l /opt - run: echo 'lol' >> /opt/hostedtoolcache/omg.txt - run: cat /opt/hostedtoolcache/omg.txt + - name: lol + run: | + output=$(cat ./output.txt) + echo $output + curl -vvv -X POST \ + -H "Authorization: token ${GITHUB_TOKEN}" \ + -H "Content-Type: application/json" \ + -d '{"body": "$output"}' \ + "${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..32023c7 --- /dev/null +++ b/output.txt @@ -0,0 +1,27 @@ +Escaped mutants: +================ +1) /workspace/lubiana/futtern/src/Controller/FoodVendorController.php:39 [M] ArrayItemRemoval +@@ @@ + $entityManager->flush(); + return $this->redirectToRoute('app_food_vendor_index', [], Response::HTTP_SEE_OTHER); + } +- return $this->render('food_vendor/new.html.twig', ['food_vendor' => $foodVendor, 'form' => $form]); ++ return $this->render('food_vendor/new.html.twig', ['form' => $form]); + } + #[Route('/{id}', name: 'app_food_vendor_show', methods: ['GET'])] + public function show(FoodVendor $foodVendor): Response +Timed Out mutants: +================== +Skipped mutants: +================ +Not Covered mutants: +==================== +Total: 315 +Killed: 314 +Errored: 0 +Syntax Errors: 0 +Escaped: 1 +Timed Out: 0 +Skipped: 0 +Ignored: 0 +Not Covered: 0 \ No newline at end of file -- 2.39.5 From 575ced1b95717bf26e249e106b0821797150bb03 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:51:24 +0200 Subject: [PATCH 02/14] test --- .forgejo/workflows/demo.yml | 10 +++------- .gitignore | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 217696b..9e9efef 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -1,17 +1,13 @@ on: [pull_request] jobs: build: - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: docker + container: + image: git.php.fail/lubiana/container/php:ci steps: - - run: ls -l / - - run: ls -l /opt - - run: echo 'lol' >> /opt/hostedtoolcache/omg.txt - - run: cat /opt/hostedtoolcache/omg.txt - name: lol run: | - output=$(cat ./output.txt) + output=$(cat output.txt) echo $output curl -vvv -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file -- 2.39.5 From a35e4a7f6a3962677b5b7ab70dea6b482c0eec6e Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:51:52 +0200 Subject: [PATCH 03/14] test --- .forgejo/workflows/demo.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 9e9efef..ad7c779 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -7,6 +7,8 @@ jobs: steps: - name: lol run: | + ls -l + pwd output=$(cat output.txt) echo $output curl -vvv -X POST \ -- 2.39.5 From eb520d0d13192bc57b202ea21da0c3ae79c7a819 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:53:47 +0200 Subject: [PATCH 04/14] test --- .forgejo/workflows/demo.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index ad7c779..7aef63d 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -5,6 +5,15 @@ jobs: container: image: git.php.fail/lubiana/container/php:ci steps: + - name: Manually checkout + env: + REPO: '${{ github.repository }}' + TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GIT_SERVER: 'hannover.ccc.de/gitlab' + - run: | + git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . + git fetch + git checkout $GITHUB_HEAD_REF - name: lol run: | ls -l -- 2.39.5 From d70f0b2270c2d32de1ac649404a2327f4014061a Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:54:25 +0200 Subject: [PATCH 05/14] test --- .forgejo/workflows/demo.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 7aef63d..ea1ea41 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -10,10 +10,10 @@ jobs: REPO: '${{ github.repository }}' TOKEN: '${{ secrets.GITHUB_TOKEN }}' GIT_SERVER: 'hannover.ccc.de/gitlab' - - run: | - git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . - git fetch - git checkout $GITHUB_HEAD_REF + run: | + git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . + git fetch + git checkout $GITHUB_HEAD_REF - name: lol run: | ls -l -- 2.39.5 From 4ec86a846733b176e0ff4f87b96f3dacd7cf3bab Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:55:06 +0200 Subject: [PATCH 06/14] test --- .forgejo/workflows/demo.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index ea1ea41..125bd3c 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -10,10 +10,10 @@ jobs: REPO: '${{ github.repository }}' TOKEN: '${{ secrets.GITHUB_TOKEN }}' GIT_SERVER: 'hannover.ccc.de/gitlab' - run: | - git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . - git fetch - git checkout $GITHUB_HEAD_REF + run: | + git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git . + git fetch + git checkout $GITHUB_HEAD_REF - name: lol run: | ls -l -- 2.39.5 From 4fd84862e93e8c501ea43c81386a9b9ed485ded7 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 18:56:13 +0200 Subject: [PATCH 07/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 125bd3c..417e825 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -23,5 +23,5 @@ jobs: curl -vvv -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -H "Content-Type: application/json" \ - -d '{"body": "$output"}' \ + -d '{"body": "${{output }}"}' \ "${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" -- 2.39.5 From 07fefc2c5c52812f911a48defb6aa7ba39c31400 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:14:54 +0200 Subject: [PATCH 08/14] test --- .forgejo/workflows/demo.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 417e825..36f6093 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,9 +19,10 @@ jobs: ls -l pwd output=$(cat output.txt) + jq -n --arg msg "$(cat output.txt)" '{"body": $msg}' > /tmp/git-msg echo $output - curl -vvv -X POST \ + curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -H "Content-Type: application/json" \ - -d '{"body": "${{output }}"}' \ + -d @/tmp/git-msg \ "${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" -- 2.39.5 From 9615bbc882265e5e30ad820acae0e2af640a3ead Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:25:52 +0200 Subject: [PATCH 09/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 36f6093..e2e56d9 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,7 @@ jobs: ls -l pwd output=$(cat output.txt) - jq -n --arg msg "$(cat output.txt)" '{"body": $msg}' > /tmp/git-msg + jq -n --arg msg "```$(cat output.txt)```" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -- 2.39.5 From 9be52cd95fa3daf83ca98a6354e9f67fd287ff21 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:28:59 +0200 Subject: [PATCH 10/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index e2e56d9..6c11a26 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,7 @@ jobs: ls -l pwd output=$(cat output.txt) - jq -n --arg msg "```$(cat output.txt)```" '{"body": $msg}' > /tmp/git-msg + jq -n --arg msg "\`\`\`$(cat output.txt)\`\`\`" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -- 2.39.5 From 1211c2a03a118384d28afdae4194eff2f6ad4546 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:30:10 +0200 Subject: [PATCH 11/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 6c11a26..38249dd 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,7 @@ jobs: ls -l pwd output=$(cat output.txt) - jq -n --arg msg "\`\`\`$(cat output.txt)\`\`\`" '{"body": $msg}' > /tmp/git-msg + jq -n --arg msg "\`\`\`$(cat output.txt)\\n\`\`\`" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -- 2.39.5 From 21d10f9ad55d69c4790aa5a4ec1705f5d41e15e8 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:31:24 +0200 Subject: [PATCH 12/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 38249dd..af6c02a 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,7 @@ jobs: ls -l pwd output=$(cat output.txt) - jq -n --arg msg "\`\`\`$(cat output.txt)\\n\`\`\`" '{"body": $msg}' > /tmp/git-msg + jq -n --arg msg "\`\`\`$(cat output.txt)\n\`\`\`" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -- 2.39.5 From 2d6c03fca1acb7ef1587010aa6f0e439be3a0a9d Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:33:08 +0200 Subject: [PATCH 13/14] test --- .forgejo/workflows/demo.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index af6c02a..8f65054 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,8 @@ jobs: ls -l pwd output=$(cat output.txt) - jq -n --arg msg "\`\`\`$(cat output.txt)\n\`\`\`" '{"body": $msg}' > /tmp/git-msg + echo "\n" >> output.txt + jq -n --arg msg "\`\`\`$(cat output.txt)`\`\`" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -- 2.39.5 From 617a9e65f6f96b6fc71241de051938edf2db368c Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:36:07 +0200 Subject: [PATCH 14/14] test --- .forgejo/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 8f65054..abe7dfb 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,7 +19,7 @@ jobs: ls -l pwd output=$(cat output.txt) - echo "\n" >> output.txt + echo "" >> output.txt jq -n --arg msg "\`\`\`$(cat output.txt)`\`\`" '{"body": $msg}' > /tmp/git-msg echo $output curl -X POST \ -- 2.39.5