Skip to content

Add trigger patterns and working directory fields to Stack options#1305

Open
aaabdelgany wants to merge 5 commits intomainfrom
abdu/stacks_trigger_options
Open

Add trigger patterns and working directory fields to Stack options#1305
aaabdelgany wants to merge 5 commits intomainfrom
abdu/stacks_trigger_options

Conversation

@aaabdelgany
Copy link
Copy Markdown
Contributor

Description

This PR adds support for the newly released Stacks trigger patterns and working directory fields.

Testing plan

  1. Create a stack and specify a working directory or trigger pattern upon creation
  2. Trigger a stacks config via a modification to a path under the trigger pattern. Alternatively, fetch a new config and make sure that your configuration code lives under the working directory you specified.
  3. observe that the config processes successfully
  4. Modify the working directory and trigger patterns as you like and test with subsequent configs

External links

Output from tests

go test -v -run TestStackReadUpdateDelete
=== RUN   TestStackReadUpdateDelete
=== PAUSE TestStackReadUpdateDelete
=== CONT  TestStackReadUpdateDelete
--- PASS: TestStackReadUpdateDelete (5.52s)
PASS
ok  	github.com/hashicorp/go-tfe	6.018s

Rollback Plan

Changes to Security Controls

@aaabdelgany aaabdelgany marked this pull request as ready for review April 7, 2026 21:25
@aaabdelgany aaabdelgany requested a review from a team as a code owner April 7, 2026 21:25
Comment thread CHANGELOG.md Outdated

## Bug Fixes
* Improve API error handling to decode both JSON:API error objects and regular JSON errors arrays by @uk1288 [#1304](https://github.com/hashicorp/go-tfe/pull/1304)
* Add support for trigger patterns and working directories to stacks by @aaabdelgany [#1305](https://github.com/hashicorp/go-tfe/pull/1305)
Copy link
Copy Markdown
Contributor

@arunatibm arunatibm Apr 10, 2026

Choose a reason for hiding this comment

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

Should this be an enhancement? OK really either way.

arunatibm
arunatibm previously approved these changes Apr 10, 2026
@datadog-terraform-cloud-hashicorp
Copy link
Copy Markdown

datadog-terraform-cloud-hashicorp bot commented Apr 13, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8f1df77 | Docs | Was this helpful? Give us feedback!

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.

2 participants