PromucFlow_constructor/.github
Shrikant Sharat Kandula 35774bb4f6
ci: Remove inert ADS compliance check (#33603)
The ADS compliance check relies on the condition
`github.pull_request.base.ref == 'true'`, but this variable just doesn't
exist. There's no `pull_request` under the `github` context, so this ADS
compliance check never worked.

If we want this check, we can add it later as part of the
`client-build.compliance.js` script. Here's a PoC for the record, based
on the intention I interpreted:

```javascript
function doADSCheck({core, github, context, affectedFiles}) {
  const filesForADSCheck = affectedFiles.filter(f => (f.status === "added" || f.status === "modified") && f.filename.startsWith("app/client/src/"));

  const violatedFiles = new Set();
  for (const f of filesForADSCheck) {
    const content = fs.readFileSync(f.filename, "utf8");
    if (content.match(/(color|Color).*#|border.*#|(color|Color).*"/)) {
      violatedFiles.add(f.filename);
    }
  }

  if (violatedFiles.size === 0) {
    return;
  }

  const body = [
    "🔴 Below files are not compliant with ADS. Please fix and re-trigger ok-to-test",
    ...Array.from(violatedFiles).sort().map(f => "1. " + f),
  ].join("\n");

  github.rest.issues.createComment({
    owner: context.repo.owner,
    repo: context.repo.repo,
    issue_number: prNumber,
    body,
  });
}
```

/test sanity
2024-05-21 11:21:15 +05:30
..
ISSUE_TEMPLATE Update --bug-report.yaml 2024-05-02 12:38:29 +05:30
workflows ci: Remove inert ADS compliance check (#33603) 2024-05-21 11:21:15 +05:30
config-test.json chore: updated label config to let us add performance on any independent issue (#20009) 2023-01-25 15:21:22 +05:30
config.json Updated Label Config 2024-05-20 11:51:48 +05:30
config.yml chore: Update the welcome bot message (#16444) 2022-09-01 16:12:07 +05:30
labeler.yml ci: Using appsmith's fork of labeler for minor enhancement & easier config (#7177) 2021-09-06 22:48:35 +05:30
pull_request_template.md chore: Include a closed question to PRs template (#32517) 2024-04-18 15:21:58 +05:30
release-drafter-template.yml chore: increment minor number for snapshot versions (#30487) 2024-01-22 10:02:57 +05:30
reviewers.yml fix: Added DS pod as reviewer for all PR that changes client (#23635) 2023-05-23 15:04:16 +05:30
semantic.yml chore: Removing redundant toast message in action creation & deletion flow (#6998) 2021-09-01 03:40:44 +00:00