DataDog / integrations-core

Core integrations of the Datadog Agent
BSD 3-Clause "New" or "Revised" License
919 stars 1.39k forks source link

INTPLAT-231: add yaml for dismiss-stale-reviews #18699

Open davidfeng-datadog opened 1 day ago

davidfeng-datadog commented 1 day ago

What does this PR do?

Add a workflow that dismisses stale reviews - if a reviewer approved a PR, then the PR changed, but not the CODEOWNER's file, then that CODEOWNER's approval is still effective.

Motivation

The following scenario happened a few times:

  1. We (integration-platform) have a PR for this repo.
  2. Agent-integrations (CODEOWNER) approves the PR.
  3. Some files changed in this PR.
  4. Agent-integrations is not the CODEOWNER for those files. But now the approval is staled. We have to ask for approval again.

With this change, step 4 is not needed, lowering the workload of agent-integrations and speeding up the turnaround timeframe.

Additional Notes

N/A.

Review checklist (to be filled by reviewers)