h1alexbel / ghiqc

Command-line tool for checking the quality of your bug reports in GitHub Issues, empowered with LLM
MIT License
4 stars 0 forks source link

feat(#37): ignores_dim #39

Closed h1alexbel closed 1 month ago

h1alexbel commented 1 month ago

closes #37


PR-Codex overview

This PR enhances the parsing logic for issue filtering rules based on authors and labels. It also refactors the ignores_title function and adds new tests.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

h1alexbel commented 1 month ago

@rultor merge

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 37.41%. Comparing base (a948224) to head (a93ac07). Report is 12 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #39 +/- ## ========================================== + Coverage 30.30% 37.41% +7.11% ========================================== Files 12 12 Lines 132 147 +15 ========================================== + Hits 40 55 +15 Misses 92 92 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rultor commented 1 month ago

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

h1alexbel commented 1 month ago

@rultor stop

rultor commented 1 month ago

@rultor stop

@h1alexbel OK, I'll try to stop current task.

rultor commented 1 month ago

@rultor stop

@h1alexbel Sorry, I failed to stop the previous command, however it has the following result: Oops, I failed. You can see the full log here (spent 6min)

55c1f8c9bd45: Pull complete
Digest: sha256:6ab533a12e1dbf652e3df191f158bf2177321eee72dc1e1b0e94cf32fe77b620
Status: Downloaded newer image for yegor256/rultor-image:1.23.1
docker.io/yegor256/rultor-image:1.23.1
+ docker ps --filter=status=exited
+ grep --quiet '\sh1alexbel_ghiqc_39\s*$'
+ ls -al .
total 56
drwx------  3 ubuntu ubuntu 4096 Aug  2 13:20 .
drwxrwxrwt 12 root   root   4096 Aug  2 13:20 ..
-rw-rw-r--  1 ubuntu ubuntu   57 Aug  2 13:19 credentials
-rwxrwxr-x  1 ubuntu ubuntu  556 Aug  2 13:24 end.sh
-rwxrwxr-x  1 ubuntu ubuntu  490 Aug  2 13:19 entry.sh
-rw-rw-r--  1 ubuntu ubuntu    5 Aug  2 13:19 pid
drwxrwxr-x  6 ubuntu ubuntu 4096 Aug  2 13:19 repo
-rwxrwxr-x  1 ubuntu ubuntu 5785 Aug  2 13:19 run.sh
-rw-rw-r--  1 ubuntu ubuntu  494 Aug  2 13:19 script.sh
-rw-rw-r--  1 ubuntu ubuntu 8605 Aug  2 13:25 stdout
-rwxrwxr-x  1 ubuntu ubuntu  258 Aug  2 13:24 stop.sh
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-lRuW:/main --env=head=git@github.com:h1alexbel/ghiqc.git --env=pull_id=39 --env=fork=git@github.com:h1alexbel/ghiqc.git --env=fork_branch=27-ignore-if --env=head_branch=master '--env=pull_title=feat(#37): ignores_dim' --env=author=h1alexbel '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:h1alexbel/ghiqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=39'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:h1alexbel/ghiqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=27-ignore-if'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=feat(#37): ignores_dim'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=h1alexbel'\''\'\'''\'''\'' '\'';'\'' '\''cargo install --version 1.30.1 just'\'' '\'';'\'' '\''just rultor'\'' '\'';'\'' )' --hostname=docker --privileged --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-lRuW/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=h1alexbel_ghiqc_39 yegor256/rultor-image:1.23.1 /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
++ awk -F : '$3 > 100 { print $1 }'
++ cat /etc/group
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G nogroup r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-journal r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-network r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-resolve r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G messagebus r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-timesync r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G _ssh r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G rvm r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G ssl-cert r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G postgres r
+ for g in $(cat /etc/group | awk  -F  ':' '$3 > 100 { print $1 }')
+ usermod -a -G r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cargo /root/.config /root/.gem /root/.gemrc /root/.launchpadlib /root/.m2 /root/.npm /root/.profile /root/.rustup /root/.rvmrc /root/texmf /home/r
b3c9e13d8dd393c6561fb45e650c6cb7e9777217167533d2e585ac6170c458de
Error response from daemon: Cannot kill container: b3c9e13d8dd393c6561fb45e650c6cb7e9777217167533d2e585ac6170c458de: container b3c9e13d8dd393c6561fb45e650c6cb7e9777217167533d2e585ac6170c458de is not running
container b3c9e13d8dd393c6561fb45e650c6cb7e9777217167533d2e585ac6170c458de is dead
Fri Aug  2 13:25:55 UTC 2024
h1alexbel commented 1 month ago

@rultor merge

rultor commented 1 month ago

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 1 month ago

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 17min)

0crat commented 1 month ago

@h1alexbel Thank you for your contribution! You've earned +30 points for this submission: +30 as a base reward, +15.2 for the 152 hits-of-code you wrote, and -15 for the lack of code review. While your effort is appreciated, please remember that code reviews are crucial for maintaining quality. Your current balance stands at -30. We encourage you to continue contributing and to participate in the review process for future submissions. Keep up the good work!