Skip to content

Commit 9e8c6fa

Browse files
committed
add ENABLE_PR_FEEDBACK var to enable turning off PR commenting
1 parent ed2942a commit 9e8c6fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-all-custom-flags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# typical config case covered for success feedback
181181
- name: Communicate BIT failure on originating issue
182182
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183-
if: failure() && github.event.client_payload.origin_issue
183+
if: failure() && github.event.client_payload.origin_issue && vars.ENABLE_PR_FEEDBACK == 'true'
184184
with:
185185
github-token: ${{ steps.app-token.outputs.token }}
186186
script: |

.github/workflows/test-all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
181181
- name: Communicate BIT failure on originating issue
182182
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183-
if: failure() && github.event.client_payload.origin_issue
183+
if: failure() && github.event.client_payload.origin_issue && vars.ENABLE_PR_FEEDBACK == 'true'
184184
with:
185185
github-token: ${{ steps.app-token.outputs.token }}
186186
script: |
@@ -206,7 +206,7 @@ jobs:
206206
207207
- name: Communicate BIT success on originating issue
208208
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
209-
if: success() && github.event.client_payload.origin_issue
209+
if: success() && github.event.client_payload.origin_issue && vars.ENABLE_PR_FEEDBACK == 'true'
210210
with:
211211
github-token: ${{ steps.app-token.outputs.token }}
212212
script: |

0 commit comments

Comments
 (0)