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: move common properties from DeploymentProtectionRuleRequestedEvent to DeploymentProtectionRuleRequestedEvent #549

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

JamieMagee
Copy link
Contributor

There is only one action, requested, for the deployment_protection_rule event. So we can't know which properties are common between different actions. Moving them all to the base, abstract, class makes the properties easier to access for now.

Resolves #546


Before the change?

  • You need to cast DeploymentProtectionRuleEvent to DeploymentProtectionRuleRequestedEvent

After the change?

  • Common properties are available without a cast

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Copy link

github-actions bot commented Aug 7, 2024

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

…ent` to `DeploymentProtectionRuleRequestedEvent`
@JamieMagee JamieMagee force-pushed the deployment-protection-rule-event-common-properties branch from 7e5e62b to 974502e Compare August 7, 2024 20:50
@nickfloyd nickfloyd merged commit 4beaac7 into main Aug 19, 2024
7 checks passed
@nickfloyd nickfloyd deleted the deployment-protection-rule-event-common-properties branch August 19, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: ProcessDeployProtectionRuleWebhookAsync seems to have the wrong argument type
3 participants