Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update planpreview comment format #4101

Merged
merged 2 commits into from
Jan 5, 2023
Merged

Update planpreview comment format #4101

merged 2 commits into from
Jan 5, 2023

Conversation

knanao
Copy link
Member

@knanao knanao commented Jan 4, 2023

What this PR does / why we need it:

Before


Screenshot 2023-01-04 at 14 49 54


Screenshot 2023-01-04 at 14 50 55

After


Screenshot 2023-01-04 at 14 49 22


Screenshot 2023-01-04 at 14 50 19

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@knanao knanao enabled auto-merge (squash) January 4, 2023 06:06
@@ -178,11 +178,13 @@ func makeCommentBody(event *githubEvent, r *PlanPreviewResult) string {
b.WriteString(fmt.Sprintf(hasChangeTitleFormat, event.HeadCommit, len(r.Applications)))

changedApps, pipelineApps, quickSyncApps := groupApplicationResults(r.Applications)
if len(changedApps)+len(pipelineApps)+len(quickSyncApps) > 0 {
b.WriteString("\n## Plans\n\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
b.WriteString("\n## Plans\n\n")
b.WriteString("\n## Plans Preview\n\n")

how about this?

Copy link
Member Author

@knanao knanao Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm, if u wanna do this, I feel Plan Preview or Plan Previews are more natural.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I think I will go with Plan Preview but it's up to you 👍

Copy link
Member Author

@knanao knanao Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, I feel Plans is enough because this action is planpreview, so let's keep this. 🙌

@knanao knanao merged commit ac99527 into master Jan 5, 2023
@knanao knanao deleted the planpreview-format branch January 5, 2023 02:39
@github-actions github-actions bot mentioned this pull request Jan 6, 2023
knanao added a commit that referenced this pull request Jan 6, 2023
* Update planpreview comment format

* fixup
knanao added a commit that referenced this pull request Jan 6, 2023
* Fix to return an error when not finding the last commit (#4100)

* Update planpreview comment format (#4101)

* Update planpreview comment format

* fixup

* Update the planpreview format (#4103)

* Remove deprecated envName field (#4105)

* Release v0.41.2 (#4111)

* Release v0.41.2

* Update the release note

Co-authored-by: Khanh Tran <[email protected]>
This was referenced Feb 7, 2023
@github-actions github-actions bot mentioned this pull request Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants