Skip to content

Commit

Permalink
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
Browse files Browse the repository at this point in the history
chore: fix function names in comment

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
  • Loading branch information
lvyaoting committed Apr 15, 2024
1 parent c82b96e commit 486d7bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/controllers/events/events_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion server/core/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion server/events/event_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 486d7bf

Please sign in to comment.