Added repository level hook data and resources

This commit is contained in:
Gavin Bunney
2019-10-15 12:00:51 -07:00
parent 51f1146d1d
commit 041e008176
11 changed files with 582 additions and 3 deletions

View File

@@ -76,8 +76,8 @@ func resourceProjectHookRead(d *schema.ResourceData, m interface{}) error {
if id != "" {
parts := strings.Split(id, "/")
if len(parts) == 2 {
d.Set("project", parts[0])
d.Set("hook", parts[1])
_ = d.Set("project", parts[0])
_ = d.Set("hook", parts[1])
} else {
return fmt.Errorf("incorrect ID format, should match `project/hook`")
}