Skip to content
Snippets Groups Projects

Offer option to keep previously written Reviewed-by trailers

Merged David Heidelberg requested to merge dhxx/marge-bot:keep-trailers into main
All threads resolved!

In Mesa3D project, developers often already append reviews, which happened before, so wiping them and relying only on Approval button is not an option.

This functionality ensure, that no previously given R-b is removed.

Signed-off-by: David Heidelberg david@ixit.cz

Merge request reports

Test summary results are being parsed

Merged by Ben BrownBen Brown 5 months ago (Oct 16, 2024 10:20am UTC)

Loading

Pipeline #1498227077 passed

Pipeline passed for 0854b559 on main

Deployed to pa‎ges‎ 4 months ago

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ben Brown
  • Ben Brown
    • Resolved by David Heidelberg

      You require the following (or similar) to fix the tests/test_single_job.py failures:

      diff --git a/tests/git_repo_mock.py b/tests/git_repo_mock.py
      index b79a5bc..f82d405 100644
      --- a/tests/git_repo_mock.py
      +++ b/tests/git_repo_mock.py
      @@ -225,10 +225,12 @@ class GitModel:
               _, _, filter_cmd, commit_range = args
               assert args == ("--force", "--msg-filter", filter_cmd, commit_range)
       
      -        trailers_var, python, script_path = shlex.split(filter_cmd)
      +        trailers_var, keep_trailers_var, python, script_path = shlex.split(filter_cmd)
               _, trailers_str = trailers_var.split("=")
      +        _, keep_trailers_str = keep_trailers_var.split("=")
       
               assert trailers_var == f"TRAILERS={trailers_str}"
      +        assert keep_trailers_var == f"KEEP_TRAILERS={keep_trailers_str}"
               assert python == "python3"
               assert script_path.endswith("marge/trailerfilter.py")
  • added 5 commits

    Compare with previous version

  • David Heidelberg resolved all threads

    resolved all threads

  • Thank you @benjamb some of those I fixed locally after pushing it, some I merged in :wink: let me see what CI says now.

  • added 1 commit

    • c529cac6 - Offer option to keep previusly written Reviewed-by trailers

    Compare with previous version

  • Ben Brown approved this merge request

    approved this merge request

  • David Heidelberg marked this merge request as ready

    marked this merge request as ready

  • merged

  • Ben Brown mentioned in commit 0854b559

    mentioned in commit 0854b559

  • :tada: This MR is included in version 0.11.0 :tada:

    The release is available on GitLab release.

    Your semantic-release bot :package: :rocket:

  • Please register or sign in to reply
    Loading