Skip to content
Snippets Groups Projects
  1. Jun 04, 2024
    • Pablo Correa Gomez's avatar
      Don't fetch version dynamically · 7d068e20
      Pablo Correa Gomez authored and Pablo Correa Gomez's avatar Pablo Correa Gomez committed
      This is unnecessary, because the code does not use the version. And
      setuptools was getting very confused with "mrhlpr.version", as it is
      importing the top-level mrhlpr.py file, and failing to import the
      module.
      7d068e20
  2. Jun 03, 2024
  3. May 28, 2024
  4. May 20, 2024
  5. May 09, 2024
    • Newbyte's avatar
      mrhlpr: Make setting auto merge more robust (MR 38) · afc979c5
      Newbyte authored
      Even with the 5 second sleep, it sometimes seems to fail at setting auto
      merge, and instead raises GitlabMRClosedError for some reason. As such,
      retry up to 3 times with a 5 second sleep in-between, which seems to be
      more robust from my testing.
      afc979c5
    • Newbyte's avatar
      mrhlpr.mr: Add more type hints (MR 38) · ab12663b
      Newbyte authored
      ab12663b
    • Newbyte's avatar
      mrhlpr: Reword comment request (MR 38) · 2dac23a7
      Newbyte authored
      While I understand the intent behind the original message, I always end
      up reading it as that providing a thank you comment is discouraged.
      While I think the intended meaning is obvious if you think about it, to
      me writing it this way feels like a better way to communicate it.
      2dac23a7
    • Newbyte's avatar
      mrhlpr: Allow skipping approval (MR 38) · 77c4fcf9
      Newbyte authored
      In some cases you may not want to approve an MR but still merge it. For
      example, if it's your own MR.
      
      Even if automatic detection of self-merging later is implemented, there
      may still be instances where you wish to merge an MR without approving
      it, for example if an MR you don't understand well enough to feel
      confident merging already has enough approvals for a merge.
      77c4fcf9
  6. May 06, 2024
  7. Apr 30, 2024
  8. Apr 24, 2024
  9. Apr 10, 2024
    • Newbyte's avatar
      CI: Omit file list in Ruff check (MR 35) · 0ae0c77b
      Newbyte authored
      Ruff will recursively lint all files in subdirectories if no list of
      files is omitted. This also lets us remove the ShellCheck ignore as the
      affected code no longer exist.
      
      [ci:skip-build]: already built successfully in CI
      0ae0c77b
    • Newbyte's avatar
      CI: Check formatting with Ruff as well (MR 35) · cbfe2a96
      Newbyte authored
      If the list of files is omitted, Ruff will check all files recursively.
      
      Use --diff to get a diff of what's not complicit instead of applying
      the changes directly.
      cbfe2a96
    • Newbyte's avatar
      mrtest: Format with Ruff (MR 35) · 8fcac5b3
      Newbyte authored
      8fcac5b3
    • Newbyte's avatar
      mrhlpr: Format with Ruff (MR 35) · d8a107bf
      Newbyte authored
      d8a107bf
    • Newbyte's avatar
      mrhlpr: Add type hints and appease mypy (MR 31) · 5b5f5a34
      Newbyte authored
      This does not cover the entirety of mrhlpr's codebase, and does not even
      attempt to start typing mrtest. The types were generated with
      MonkeyType, which seems to have worked well to get a starting point for
      typing. However, it still required significant manual adjustment and as
      such time investment due to some of the type hints being wrong
      (presumably since MonkeyType runs off of runtime information and I
      didn't manage to trigger every possible code path), but primarily due to
      the codebase needing other fixes to make mypy happy.
      
      Overall, I think MonkeyType saved me enough time to be worthwhile using
      for future type expansion, but the time investment required is still
      significant.
      
      This also introduces the MergeRequestStatus and GitLabOrigin dataclasses
      to avoid unnecessary type assertions and improve ease of reading the
      code.
      5b5f5a34
  10. Mar 13, 2024
    • Nikita Travkin's avatar
      mrtest: Add a nag script (MR 34) · 1c64ead8
      Nikita Travkin authored and Pablo Correa Gomez's avatar Pablo Correa Gomez committed
      mrtest installs packages from apk files which pins the package version
      to the hash of the package. This means that apk would be reluctant to
      update packages on which .mrtest- virtual package depends.
      
      This can cause problems to the users who may forget that they have some
      packages installed using mrtest, espacially if those were boot-critical
      packages.
      
      Add a script that would implement an apk hook that would nag the user
      about installed mrtest packages. This hook should be installed in
      /etc/apk/commit_hooks.d/ and will be run by apk on every execution.
      
      Fixes: #13
      1c64ead8
  11. Feb 27, 2024
  12. Feb 18, 2024
  13. Feb 15, 2024
  14. Feb 14, 2024
  15. Feb 10, 2024
  16. Sep 20, 2023
  17. Sep 08, 2023
Loading