Can't get commit information

I’m use gitea, All processes went correct except notify

- name: notify-success
  image: plugins/webhook
  settings:
    urls:
       from_secret: webhook_url
    content_type: application/json
    template: |
      {"msg_type": "interactive","card": { "config": {"wide_screen_mode": true},"header": {"title": {"tag": "plain_text","content": "{{repo.name}}第{{build.number}} 次自动部署"},"template": "blue"},"elements": [{"tag": "markdown","content": "状态:✅\n耗时:{{since build.created}}\n提交分支:{{build.branch}}\n提交信息:{{commit.message}}\n详情:{{ build.link }}"}]}}
  when:
    status: 
    - success

QQ截图20220829112303

the commit is empty

Gitea version : 1.16.9

here is docker-compose

version: '3'

services:
  drone:
    container_name: drone
    image: drone/drone
    restart: always
    ports:
      - 7000:80
    volumes:
      - /appStroe/drone:/data
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_GITEA_SERVER=https://xxxx
      - DRONE_GITEA_CLIENT_ID=xxx
      - DRONE_GITEA_CLIENT_SECRET=xxxx
      - DRONE_SERVER_HOST=xxxx
      - DRONE_RPC_SECRET=xxx
      - DRONE_SERVER_PROTO=http
      - DRONE_USER_CREATE=username:xxx,admin:true

  drone-runner:
    container_name: drone-runner
    image: drone/drone-runner-docker
    restart: always
    ports:
      - 3000:3000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_RPC_PROTO=http
      - DRONE_RPC_HOST=xxx
      - DRONE_RPC_SECRET=xxx

Hi @liulib here are few docs that should help you with your query:

  1. Cannot get commits via API · Issue #3710 · go-gitea/gitea · GitHub
  2. Here's how I show last commit & history of directories / files · Issue #16206 · go-gitea/gitea · GitHub
  3. Usage: Automatically Linked References - Docs

Thanks!