Skip to content

Commit c204c30

Browse files
committed
fix: update delete file message formatting in GitHub repository file resource
1 parent 01b47db commit c204c30

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

github/resource_github_repository_file.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,11 @@ func resourceGithubRepositoryFileDelete(d *schema.ResourceData, meta interface{}
465465
return err
466466
}
467467

468+
if *opts.Message == fmt.Sprintf("Add %s", file) {
469+
m := fmt.Sprintf("Delete %s", file)
470+
opts.Message = &m
471+
}
472+
468473
if b, ok := d.GetOk("branch"); ok {
469474
log.Printf("[DEBUG] Using explicitly set branch: %s", b.(string))
470475
if err := checkRepositoryBranchExists(client, owner, repo, b.(string)); err != nil {

0 commit comments

Comments
 (0)