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

Multiple feature additions #58

Closed
wants to merge 15 commits into from
Closed

Conversation

someshkoli
Copy link
Contributor

@someshkoli someshkoli commented Mar 13, 2024

  1. add workflow link to comment (Link in plan comment to workflow  #14)
  2. Add header and footer to the comment
  3. quite mode. dont comment if there are no changes (Add a quiet mode where the action doesn't leave a comment if there are no planned changes #11)

@someshkoli someshkoli mentioned this pull request Mar 13, 2024
@@ -113,13 +126,21 @@ try {
process.exit(0);
}

if (quiteMode && hasNoChanges) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (quiteMode && hasNoChanges) {
if (quietMode && hasNoChanges) {

@@ -113,13 +126,21 @@ try {
process.exit(0);
}

if (quiteMode && hasNoChanges) {
core.info("Quite mode is enabled and there are no changes to the infrastructure.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
core.info("Quite mode is enabled and there are no changes to the infrastructure.")
core.info("Quiet mode is enabled and there are no changes to the infrastructure.")

comment-header: "BIG HEADER"
comment-footer: "BIG FOOTER"
include-workflow-link: "true"
quite: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
quite: "true"
quiet: "true"

@@ -8,26 +8,37 @@ const myToken = core.getInput('github-token');
const octokit = github.getOctokit(myToken);
const context = github.context;
const inputFilenames = core.getMultilineInput('json-file');
const commentHeader = core.getMultilineInput('comment-header');
const commentFooter = core.getMultilineInput('comment-footer');
const quiteMode = core.getMultilineInput('quite');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const quiteMode = core.getMultilineInput('quite');
const quietMode = core.getMultilineInput('quiet');

Copy link
Contributor

@RobertKelly RobertKelly left a comment

Choose a reason for hiding this comment

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

Made some suggestions: quite to quiet

@someshkoli
Copy link
Contributor Author

This pr has become absolute mess in attempt to get things working ☠️
Will raise a new one after after some cleanup

@someshkoli
Copy link
Contributor Author

Closing in prefrence to #60

@someshkoli someshkoli closed this Mar 14, 2024
mitchell-liatrio added a commit that referenced this pull request May 8, 2024
* feat: multiple features

 - comment header option
 - comment footer option
 - workflow link option
 - quite mode option

* chore: update typos

* chore: add debug logs

* chore: add debug logs

* chore: add debug logs

* chore: add newline

---------

Co-authored-by: Mitchell Phillips <[email protected]>
mitchell-liatrio added a commit that referenced this pull request May 8, 2024
mitchell-liatrio added a commit that referenced this pull request May 8, 2024
github-actions bot pushed a commit that referenced this pull request May 8, 2024
# [1.5.0](v1.4.5...v1.5.0) (2024-05-08)

### Features

* additional feature additions ([#62](#62)) ([1465fa2](1465fa2))
* multiple feature addition [#58](#58)  ([#60](#60)) ([01f0321](01f0321))

### Reverts

* Revert " feat: multiple feature addition #58  (#60)" (#63) ([ab68bb6](ab68bb6)), closes [#58](#58) [#60](#60) [#63](#63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants