From 486d7bf4a0c0aee42606294572a0492ea67a7c22 Mon Sep 17 00:00:00 2001 From: lvyaoting Date: Mon, 8 Apr 2024 11:18:35 +0800 Subject: [PATCH] Signed-off-by: lvyaoting chore: fix function names in comment Signed-off-by: lvyaoting --- server/controllers/events/events_controller.go | 2 +- server/core/redis/redis.go | 2 +- server/events/event_parser.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/controllers/events/events_controller.go b/server/controllers/events/events_controller.go index 91a7bf2592..ca29053519 100644 --- a/server/controllers/events/events_controller.go +++ b/server/controllers/events/events_controller.go @@ -371,7 +371,7 @@ func (e *VCSEventsController) handleGiteaPullRequestEvent(w http.ResponseWriter, e.respond(w, logging.Debug, http.StatusOK, response.body) } -// HandleGiteaCommentEvent handles comment events from Gitea where Atlantis commands can come from. +// HandleGiteaPullRequestCommentEvent handles comment events from Gitea where Atlantis commands can come from. func (e *VCSEventsController) HandleGiteaPullRequestCommentEvent(w http.ResponseWriter, body []byte, reqID string) { var event gitea.GiteaIssueCommentPayload if err := json.Unmarshal(body, &event); err != nil { diff --git a/server/core/redis/redis.go b/server/core/redis/redis.go index 030cd15b82..2afe336ce4 100644 --- a/server/core/redis/redis.go +++ b/server/core/redis/redis.go @@ -238,7 +238,7 @@ func (r *RedisDB) CheckCommandLock(cmdName command.Name) (*command.Lock, error) return &cmdLock, err } -// UpdatePullWithResults updates pull's status with the latest project results. +// UpdateProjectStatus updates pull's status with the latest project results. // It returns the new PullStatus object. func (r *RedisDB) UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, newStatus models.ProjectPlanStatus) error { key, err := r.pullKey(pull) diff --git a/server/events/event_parser.go b/server/events/event_parser.go index 54abcebb26..8a02f476e1 100644 --- a/server/events/event_parser.go +++ b/server/events/event_parser.go @@ -1088,7 +1088,7 @@ func (e *EventParser) ParseGiteaPullRequestEvent(event giteasdk.PullRequest) (mo return pull, pullEventType, baseRepo, headRepo, user, nil } -// ParseGithubPull parses the response from the GitHub API endpoint (not +// ParseGiteaPull parses the response from the Gitea API endpoint (not // from a webhook) that returns a pull request. // See EventParsing for return value docs. func (e *EventParser) ParseGiteaPull(pull *giteasdk.PullRequest) (pullModel models.PullRequest, baseRepo models.Repo, headRepo models.Repo, err error) {