INNER CODE UNIT · Kotlin

is_merge_commit

nekomangaorg/Neko · .github/scripts/generate_changelog.sh:43

    def is_merge_commit:
      (.message[0]? // "" | select(type == "string") // "") |
      startswith("Merge remote-tracking branch '\''origin/main'\''");

    # --- Main processing starts here ---

    [ .commits[] |
      {
        message: (.commit.message | split("\n")),
        username: .author.login
      }
      | select(is_merge_commit | not)
    ] |

    reduce .[] as $item ({
      prefixed: [],
      other: []
    };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…