implement: https://github.com/go-gitea/gitea/issues/24544
Changes:
- Add a global variable `tasksVersion` to store the lastest version number which returned by Gitea.
- Pass `tasksVersion` to Gitea when invoking `FetchTask`.
- If there is no task in the `FetchTask` response, store the version from the `FetchTask` response into `tasksVersion` variable.
- If there is a task in the `FetchTask` response, set `tasksVersion` to zero to focre query db in next `FetchTask` request.
Related:
- Protocol: https://gitea.com/gitea/actions-proto-def/pulls/10
- Gitea side: https://github.com/go-gitea/gitea/pull/25199
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
implement: https://github.com/go-gitea/gitea/issues/24544
Changes:
tasksVersionto store the lastest version number which returned by Gitea.tasksVersionto Gitea when invokingFetchTask.FetchTaskresponse, store the version from theFetchTaskresponse intotasksVersionvariable.FetchTaskresponse, settasksVersionto zero to focre query db in nextFetchTaskrequest.Related: