package dev.minco.gradle.changelog;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.io.IOException;

public class ChangelogTest {
	@Test
	public void testCommitExtraction() throws IOException {
		var result = ChangelogBuilder.extractCommits("5402843f1e78c477f10c6", "32fa725a96484402d0");
		Assertions.assertEquals("- Remove bintray from CI workflow by Luna\n" +
			"- Remove bintray support from plugin by Luna", result);
	}
}

@@ -71,16 +71,58 @@
 rtions;%0A
+import org.junit.jupiter.api.Assumptions;%0A
 import o
@@ -271,16 +271,119 @@
 ption %7B%0A
+%09%09Assumptions.assumeTrue(System.getenv(%22CI%22) == null, %22Running on CI, full history isn't available%22);%0A%0A
 %09%09var re

Add assumption