mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-02-20 02:22:49 +08:00
Attempt to make this work
This commit is contained in:
@@ -14,8 +14,8 @@ export async function checkHumanActor(
|
||||
) {
|
||||
// Check if we're in a Gitea environment
|
||||
const isGitea =
|
||||
process.env.GITHUB_API_URL &&
|
||||
!process.env.GITHUB_API_URL.includes("api.github.com");
|
||||
process.env.GITEA_API_URL &&
|
||||
!process.env.GITEA_API_URL.includes("api.github.com");
|
||||
|
||||
if (isGitea) {
|
||||
console.log(
|
||||
|
||||
@@ -16,8 +16,8 @@ export async function checkWritePermissions(
|
||||
|
||||
// For Gitea compatibility, check if we're in a non-GitHub environment
|
||||
const isGitea =
|
||||
process.env.GITHUB_API_URL &&
|
||||
!process.env.GITHUB_API_URL.includes("api.github.com");
|
||||
process.env.GITEA_API_URL &&
|
||||
!process.env.GITEA_API_URL.includes("api.github.com");
|
||||
|
||||
if (isGitea) {
|
||||
core.info(`Detected Gitea environment, assuming actor has permissions`);
|
||||
|
||||
Reference in New Issue
Block a user