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

feat(aws-codebuild): add COMMIT_MESSAGE support for webhook FilterGroup #11011

Merged
merged 8 commits into from
Oct 23, 2020

Conversation

jorge-barreto
Copy link
Contributor

closes #9033

A small amount of housekeeping was done by collecting the different string constants for webhook filter types into a single enum


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Oct 21, 2020

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Thanks for a very high-quality contribution @jorge-barreto !

Some minor comments before I merge this in.

packages/@aws-cdk/aws-codebuild/lib/source.ts Outdated Show resolved Hide resolved
@@ -668,6 +702,17 @@ class GitHubEnterpriseSource extends ThirdPartyGitSource {
buildTriggers: superConfig.buildTriggers,
};
}

private hasCommitMessageFilterAndPREvent() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private hasCommitMessageFilterAndPREvent() {
private hasCommitMessageFilterAndPrEvent() {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

by the way, I had noticed that one cannot use FILE_PATH filters with GitHub Enterprise Server pull request events either. it may be out of scope for this ticket, but do we want to create a similar hasFilePathFilterAndPrEvent method to check for that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that would be awesome, thanks!

packages/@aws-cdk/aws-codebuild/lib/source.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-codebuild/test/test.codebuild.ts Outdated Show resolved Hide resolved
- fix logic on andCommitMessageIsNot
- typo hasCommitMessageFilterAndPrEvent
- change addFilter first arg's type to WebhookFilterTypes
- add PULL_REQUEST_CREATED EventAction to GitHub/BitBucket test
@mergify mergify bot dismissed skinny85’s stale review October 22, 2020 15:50

Pull request has been modified.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Thanks @jorge-barreto !

@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 7610861
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit fd8bce3 into aws:master Oct 23, 2020
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.

[aws-codebuild] Add support for COMMIT_MESSAGE on FilterGroup
3 participants