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

fix: PR logic was not working with draft PRs #3020

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

rahalan
Copy link
Contributor

@rahalan rahalan commented Aug 9, 2024

PR label logic only kicked in, when PR was openend. If it was a draft PR, then the workflow failed (not taking into account, that no team was assigned) and also if the PR was later ready for review, the logic never was triggered again.

Two changes:

  1. logic will not only be triggered when PR is openend, but also if a PR is moved into ready for review state
  2. if PR is in draft state, the code will not fail, but simply no action will be taken

@rahalan rahalan added Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working labels Aug 9, 2024
@rahalan rahalan self-assigned this Aug 9, 2024
@rahalan rahalan requested review from a team as code owners August 9, 2024 14:56
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 Maintainers need to triage still label Aug 9, 2024

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Triage 🔍 Maintainers need to triage still label Aug 9, 2024

Important

If this is a module-related PR, being submitted by the sole owner of the module, the AVM core team must review and approve it (as module owners can't approve their own PRs).

To indicate this PR needs the core team''s attention, apply the "Needs: Core Team 🧞" label!

The core team will only review and approve PRs that have this label applied!

Copy link
Contributor

@eriqua eriqua left a comment

Choose a reason for hiding this comment

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

🆗

@rahalan rahalan merged commit e006349 into Azure:main Aug 9, 2024
15 of 16 checks passed
@rahalan rahalan deleted the users/rahalan/FixDuplicateWorkflows branch August 28, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants