feat: Add a new input flag to avoid commenting on stacks that have not changed.#85
feat: Add a new input flag to avoid commenting on stacks that have not changed.#85drew-rsk wants to merge 3 commits intocorymhall:mainfrom
Conversation
Head branch was pushed to by a user without write access
corymhall
left a comment
There was a problem hiding this comment.
@drew-rsk overall the PR looks good! The only thing missing is adding the new input property to the action metadata here
Line 23 in 69475f7
I'm a little hesitant to add this feature as is because I'm worried that it creates a scenario where something could fail to process and the user would think that it was because the stack had no changes.
What would you think about having a single summary comment that has info on what stages/stacks were processed? It could just be a single comment saying that stacks x,y,z had no changes.
Q1: Yeah that'd be a good step and possibly sufficient for my team's development purposes. How can I play with my changes as they are, or any other PR's changes, as a way to manually inspect the results? Q2: I propose leaving this PR as is and working up an independent one that does what you suggest over hacking this one into a different functional solution. How does that plan suit you? |
You can pin an action to a branch if you want to test. Something like this should work. - name: Diff
uses: corymhall/cdk-diff-action@drew-rsk:drew/ignore-unchanged-stacks
I'm not sure what you are asking here. I'm not comfortable merging this PR as is because I think we need to have some kind of indication that all stacks were processed. |
Right now it's actually unclear when the comment was generated/updated and it's only visible upon clicking the dropdown on the comment box. I would say that the comment should look like this: |
Yeah I think adding a timestamp makes sense. I'm going to create a new issue to track this. |
|
Please re-open this - adding the timestamp does not fulfill/replace the need of the input for no stack changes. |
|
@rantoniuk we currently always comment with the status of each stack (with/without changes). This PR was wanting to remove commenting altogether when stacks have no changes which we are not going to do. There is an existing issue to track that request #86 which we can continue that discussion. |
Adds a flag to allow users to skip comments for stacks that have not changed.