Open
Description
Feature Description
When a PR is synchronized, GitHub's event data includes before
and after
keys, representing the head commit hashes of the previous and current pushes. However, Gitea's equivalent does not provide this information.
This is essential for developing an AI code-review action that reviews only the current changes by parsing the diff between two commit SHAs.
} else if (eventData.action === "synchronize") {
const newBaseSha = eventData.before;
const newHeadSha = eventData.after;
const response = await octokit.repos.compareCommits({
headers: {
accept: "application/vnd.github.v3.diff",
},
owner: prDetails.owner,
repo: prDetails.repo,
base: newBaseSha,
head: newHeadSha,
});
Is there any way to get this information? or do you have any plan to provide such information?
Screenshots
No response