-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
someshkoli
commented
Mar 13, 2024
•
edited
Loading
edited
- add workflow link to comment (Link in plan comment to workflow #14)
- Add header and footer to the comment
- 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)
- comment header option - comment footer option - workflow link option - quite mode option
feat: multiple features
@@ -113,13 +126,21 @@ try { | |||
process.exit(0); | |||
} | |||
|
|||
if (quiteMode && hasNoChanges) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const quiteMode = core.getMultilineInput('quite'); | |
const quietMode = core.getMultilineInput('quiet'); |
There was a problem hiding this 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
This pr has become absolute mess in attempt to get things working ☠️ |
Closing in prefrence to #60 |
* 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]>
# [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)