From b6aa81f3b1bdd006a5d4e8728ef677b2a71a9bff Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 6 Jun 2026 23:20:18 -0400 Subject: [PATCH] fix(ci): replace nonexistent gitea-issue-create action with curl API call The `actions/gitea-issue-create@v1` action does not exist on GitHub, causing the docs-drift workflow to fail at clone time. Replace it with a direct call to the Gitea REST API using curl. Also corrects the label from `documentation` to `Kind/Documentation`. --- .gitea/workflows/docs-drift.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/docs-drift.yml b/.gitea/workflows/docs-drift.yml index be5968f..ee4b9df 100644 --- a/.gitea/workflows/docs-drift.yml +++ b/.gitea/workflows/docs-drift.yml @@ -27,19 +27,19 @@ jobs: - name: Open drift reminder issue if: steps.drift.outputs.synced == 'false' - uses: actions/gitea-issue-create@v1 - with: - token: ${{ secrets.GITEA_TOKEN }} - title: "docs: README updated — review docs/fish-config.md for drift" - body: | - README.md was modified in commit ${{ github.sha }} but - `docs/fish-config.md` (the offline manual) was not updated in - the same push. - - Please review the README diff and update the offline documentation - if any functions, keybindings, abbreviations, or configuration - options were added, removed, or changed. - - Commit: ${{ github.sha }} - Branch: ${{ github.ref_name }} - labels: documentation + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + SERVER_URL: ${{ github.server_url }} + REPO: ${{ github.repository }} + SHA: ${{ github.sha }} + BRANCH: ${{ github.ref_name }} + run: | + curl -s -X POST \ + -H "Authorization: token ${GITEA_TOKEN}" \ + -H "Content-Type: application/json" \ + "${SERVER_URL}/api/v1/repos/${REPO}/issues" \ + -d "{ + \"title\": \"docs: README updated — review docs/fish-config.md for drift\", + \"body\": \"README.md was modified in commit ${SHA} but \`docs/fish-config.md\` (the offline manual) was not updated in the same push.\n\nPlease review the README diff and update the offline documentation if any functions, keybindings, abbreviations, or configuration options were added, removed, or changed.\n\nCommit: ${SHA}\nBranch: ${BRANCH}\", + \"labels\": [\"Kind/Documentation\"] + }"