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

Feature CodeCommit Trigger #8751

Merged
merged 2 commits into from
Sep 12, 2016

Conversation

sharmaansh21
Copy link
Contributor

Fixes #6973
I deleted my original repo so based on discussion #6980

/cc @stack72

Type: schema.TypeString,
ForceNew: true,
Required: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As this is just a reference to a repository, should we validate here? Isn't the validation in the aws_code_commit resource? :)

@stack72
Copy link
Contributor

stack72 commented Sep 9, 2016

Hi @optimisticanshul

This is looking good - i have left a few comments inline - nothing bad at all

This will also need some doumentation as well please :)

Paul

@stack72 stack72 added the waiting-response An issue/pull request is waiting for a response from the community label Sep 9, 2016
@sharmaansh21 sharmaansh21 force-pushed the 6973-codecommit-trigger branch 2 times, most recently from 9b8894d to d7e47e2 Compare September 9, 2016 13:54
@sharmaansh21 sharmaansh21 force-pushed the 6973-codecommit-trigger branch from d7e47e2 to 01285a6 Compare September 12, 2016 03:05
@sharmaansh21 sharmaansh21 force-pushed the 6973-codecommit-trigger branch from 01285a6 to 497063a Compare September 12, 2016 04:47
@sharmaansh21
Copy link
Contributor Author

@stack72 Hi i think i took care of most of your comments, so i thinks it's ready for another review :)

@radeksimko
Copy link
Member

@optimisticanshul there's a forgotten import which is why Travis is reporting 🔴 :

builtin/providers/aws/resource_aws_codecommit_trigger_test.go:5: imported and not used: "log"

@radeksimko radeksimko removed the waiting-response An issue/pull request is waiting for a response from the community label Sep 12, 2016
@sharmaansh21
Copy link
Contributor Author

@radeksimko Updated thanks.

@stack72
Copy link
Contributor

stack72 commented Sep 12, 2016

Hi @optimisticanshul

This LGTM! I made 1 change - I removed the test for changes. All it does is just force a new resource so it's fine to be covered by the basic

% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSCodeCommitTrigger_'                                                                                                                  ✹
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/12 10:52:39 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSCodeCommitTrigger_ -timeout 120m
=== RUN   TestAccAWSCodeCommitTrigger_basic
--- PASS: TestAccAWSCodeCommitTrigger_basic (22.56s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    22.578s

Thanks for all the work here :)

Paul

@stack72 stack72 merged commit 2d57e71 into hashicorp:master Sep 12, 2016
@ghost
Copy link

ghost commented Apr 22, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS: aws_codecommit_repository triggers
3 participants