Skip to content
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

Decyjphr/pr 683 #721

Merged
merged 9 commits into from
Dec 28, 2024
Merged

Decyjphr/pr 683 #721

merged 9 commits into from
Dec 28, 2024

Conversation

decyjphr
Copy link
Collaborator

@decyjphr decyjphr commented Dec 27, 2024

Pull and test #683

  • resolves Updated according to lint rules #683
  • Also add code so that rulesets of sourcetype=enterprise is not handled as org level rulesets
  • Also add code so that security manager teams are not handled as regular teams

Gramatus and others added 7 commits September 17, 2024 20:19
Linting failed in deploymentConfig.js due to the static fields. Eslint supports this from ecmaVersion 13.
The full test suite failed because it tried to lint the tests, while the running linter did not do the same. Enabling linting gave errors due to jest having undef stuff, but overriding these files for jest env keeps the linting without these errors.
Removed to stop having eslint errors.
Updated with `npx standard --fix`.

Skipping environments.js and environments.test.js as they had a lot of
errors, handling those in a separate commit.
Updated with `npx standard --fix`.
This was done manually as no autofix was available.
@Copilot Copilot bot review requested due to automatic review settings December 27, 2024 16:10

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 10 out of 15 changed files in this pull request and generated no comments.

Files not reviewed (5)
  • .eslintrc.json: Language not supported
  • test/unit/lib/plugins/environments.test.js: Evaluated as low risk
  • test/unit/lib/plugins/labels.test.js: Evaluated as low risk
  • test/unit/lib/env.test.js: Evaluated as low risk
  • test/unit/index.test.js: Evaluated as low risk
Comments suppressed due to low confidence (2)

lib/plugins/environments.js:86

  • The variable name existing_custom_branch_policies should be renamed to existingCustomBranchPolicies for consistency.
let existing_custom_branch_policies = existing.deployment_branch_policy === null ? null : existing.deployment_branch_policy.custom_branch_policies

lib/plugins/environments.js:90

  • The variable name attrs_custom_branch_policies should be renamed to attrsCustomBranchPolicies for consistency.
let attrs_custom_branch_policies = attrs.deployment_branch_policy === null ? null : attrs.deployment_branch_policy.custom_branch_policies

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@decyjphr decyjphr merged commit 87beedc into main-enterprise Dec 28, 2024
5 checks passed
@decyjphr decyjphr deleted the decyjphr/pr-683 branch December 28, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants