Skip to content

Commit

Permalink
🐛 Hide unwanted warning about fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Aug 4, 2023
1 parent fc4ff42 commit 3424d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69600,7 +69600,7 @@ function main() {
return __awaiter2(this, void 0, void 0, function* () {
try {
const inputs = (0, utils_1.getInputs)();
if (inputs.pushFixes && inputs.prMode && github.context.payload.pull_request !== void 0) {
if (inputs.pushFixes !== qodana_1.NONE && inputs.prMode && github.context.payload.pull_request !== void 0) {
inputs.pushFixes = qodana_1.NONE;
core.warning("push-fixes is currently not supported with pr-mode: true in pull requests. Running Qodana with push-fixes: false.");
}
Expand Down
2 changes: 1 addition & 1 deletion scan/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function main(): Promise<void> {
try {
const inputs = getInputs()
if (
inputs.pushFixes &&
inputs.pushFixes !== NONE &&
inputs.prMode &&
github.context.payload.pull_request !== undefined
) {
Expand Down

0 comments on commit 3424d7b

Please sign in to comment.