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

Update resource_context.go #585

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spacelift/resource_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
},
"labels": {
Type: schema.TypeSet,
Description: "To leverage the `autoattach` magic label, ensure your label follows the naming convention: `autoattach:<your-label-name>`"

Check failure on line 140 in spacelift/resource_context.go

View workflow job for this annotation

GitHub Actions / Check documentation

syntax error: unexpected newline in composite literal; possibly missing comma or }

Check failure on line 140 in spacelift/resource_context.go

View workflow job for this annotation

GitHub Actions / Run linter

missing ',' before newline in composite literal
Copy link
Contributor

@peterdeme peterdeme Nov 20, 2024

Choose a reason for hiding this comment

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

Suggested change
Description: "To leverage the `autoattach` magic label, ensure your label follows the naming convention: `autoattach:<your-label-name>`"
Description: "Labels of the context. To leverage the `autoattach` magic label, ensure your label follows the naming convention: `autoattach:<your-label-name>`",

Elem: &schema.Schema{
Type: schema.TypeString,
ValidateDiagFunc: validations.DisallowEmptyString,
Expand All @@ -157,8 +158,8 @@
Computed: true,
},
},
}

Check failure on line 161 in spacelift/resource_context.go

View workflow job for this annotation

GitHub Actions / Check documentation

syntax error: unexpected }, expected expression
}

Check failure on line 162 in spacelift/resource_context.go

View workflow job for this annotation

GitHub Actions / Check documentation

syntax error: non-declaration statement outside function body

func resourceContextCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
var mutation struct {
Expand Down
Loading