Skip to content

Commit

Permalink
feat: Refine the Atlantis VCS Pull Request Comments (runatlantis#4254)
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Guardian authored and terakoya76 committed Dec 31, 2024
1 parent 5efa08b commit 79894e0
Show file tree
Hide file tree
Showing 113 changed files with 2,427 additions and 959 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Ran Plan for 2 projects:

1. dir: `dir1` workspace: `default`
1. dir: `dir2` workspace: `default`
---

### 1. dir: `dir1` workspace: `default`
```diff
Expand All @@ -20,10 +21,14 @@ Plan: 1 to add, 0 to change, 0 to destroy.
```

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir1`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir1
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir1`
```shell
atlantis plan -d dir1
```

---
### 2. dir: `dir2` workspace: `default`
Expand All @@ -43,17 +48,25 @@ Plan: 1 to add, 0 to change, 0 to destroy.
```

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir2`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir2
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir2`
```shell
atlantis plan -d dir2
```

---
### Plan Summary

2 projects, 2 with changes, 0 with no changes, 0 failed

* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Ran Plan for 2 projects:

1. dir: `dir1` workspace: `default`
1. dir: `dir2` workspace: `default`
---

### 1. dir: `dir1` workspace: `default`
<details><summary>Show Output</summary>
Expand All @@ -26,13 +27,17 @@ Terraform will perform the following actions:

Plan: 1 to add, 0 to change, 0 to destroy.
```
</details>

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir1`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir1
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir1`
</details>
```shell
atlantis plan -d dir1
```
Plan: 1 to add, 0 to change, 0 to destroy.

---
Expand All @@ -59,21 +64,29 @@ Terraform will perform the following actions:

Plan: 1 to add, 0 to change, 0 to destroy.
```
</details>

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir2`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir2
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir2`
</details>
```shell
atlantis plan -d dir2
```
Plan: 1 to add, 0 to change, 0 to destroy.

---
### Plan Summary

2 projects, 2 with changes, 0 with no changes, 0 failed

* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir1`
```shell
atlantis plan -d dir1
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Ran Plan for 2 projects:

1. dir: `dir1` workspace: `default`
1. dir: `dir2` workspace: `default`
---

### 1. dir: `dir1` workspace: `default`
```diff
Expand All @@ -14,10 +15,14 @@ and found no differences, so no changes are needed.
```

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir1`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir1
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir1`
```shell
atlantis plan -d dir1
```

---
### 2. dir: `dir2` workspace: `default`
Expand All @@ -43,21 +48,29 @@ Terraform will perform the following actions:

Plan: 1 to add, 0 to change, 0 to destroy.
```
</details>

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d dir2`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d dir2
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d dir2`
</details>
```shell
atlantis plan -d dir2
```
Plan: 1 to add, 0 to change, 0 to destroy.

---
### Plan Summary

2 projects, 1 with changes, 1 with no changes, 0 failed

* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,25 @@ Terraform will perform the following actions:

Plan: 2 to add, 0 to change, 0 to destroy.
```
</details>

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d .`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d .
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
</details>
```shell
atlantis plan -d .
```
Plan: 2 to add, 0 to change, 0 to destroy.

---
* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
```shell
atlantis plan -d .
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
```shell
atlantis plan -d .
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ and found no differences, so no changes are needed.
```

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d .`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d .
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d . -- -var var=overridden`
```shell
atlantis plan -d . -- -var var=overridden
```

---
* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,25 @@ Terraform will perform the following actions:

Plan: 2 to add, 0 to change, 0 to destroy.
```
</details>

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d .`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d .
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
</details>
```shell
atlantis plan -d .
```
Plan: 2 to add, 0 to change, 0 to destroy.

---
* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
```shell
atlantis plan -d .
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
```shell
atlantis plan -d .
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ and found no differences, so no changes are needed.
```

* :arrow_forward: To **apply** this plan, comment:
* `atlantis apply -d .`
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
```shell
atlantis apply -d .
```
* :put_litter_in_its_place: To **delete** this plan and lock, click [here](lock-url)
* :repeat: To **plan** this project again, comment:
* `atlantis plan -d .`
```shell
atlantis plan -d .
```

---
* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
* `atlantis apply`
* :put_litter_in_its_place: To **delete** all plans and locks for the PR, comment:
* `atlantis unlock`
* :fast_forward: To **apply** all unapplied plans from this Pull Request, comment:
```shell
atlantis apply
```
* :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment:
```shell
atlantis unlock
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -p dir1-ops`
```shell
atlantis plan -p dir1-ops
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ your Terraform state and will henceforth be managed by Terraform.
:put_litter_in_its_place: A plan file was discarded. Re-plan would be required before applying.

* :repeat: To **plan** this project again, comment:
* `atlantis plan -p dir1-ops`
```shell
atlantis plan -p dir1-ops
```
Loading

0 comments on commit 79894e0

Please sign in to comment.