Skip to content

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

Merged
aaabdelgany merged 6 commits intomainfrom
abdu/stacks_trigger_options
Apr 20, 2026
Merged

Add trigger patterns and working directory fields to Stack options#1305
aaabdelgany merged 6 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: cd6cd5a | Docs | Give us feedback!

arunatibm
arunatibm previously approved these changes Apr 16, 2026
Maed223
Maed223 previously approved these changes Apr 20, 2026
Copy link
Copy Markdown
Contributor

@Maed223 Maed223 left a comment

Choose a reason for hiding this comment

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

Feel free to ping me for a new approve after the changelog conflict is fixed

@aaabdelgany aaabdelgany dismissed stale reviews from Maed223 and arunatibm via cd6cd5a April 20, 2026 17:42
@aaabdelgany aaabdelgany merged commit 9c68ba3 into main Apr 20, 2026
15 checks passed
@aaabdelgany aaabdelgany deleted the abdu/stacks_trigger_options branch April 20, 2026 18:05
@github-actions
Copy link
Copy Markdown

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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.

3 participants