You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: autolink allows numbers during plan, but fails during apply #3176
Plan should have failed with bad key_prefix, but passed
Actual Behavior
Plan echoed successful diff
+ resource "github_repository_autolink_reference" "all" {+ etag = (known after apply)+ id = (known after apply)+ is_alphanumeric = false+ key_prefix = "PTFY25"+ repository = "apiv2"+ target_url_template = "https://***.atlassian.net/browse/PTFY25-<num>"
But during apply
Error: POST https://api.github.com/repos/****/apiv2/autolinks: 422 Validation Failed [{Resource:KeyLink Field:key_prefix Code:custom Message:key_prefix must not end with a number} {Resource:KeyLink Field:key_prefix Code:custom Message:key_prefix must only contain letters, numbers, or .-_+=:/#}]
│
│ with github_repository_autolink_reference.all["apiv2_PTFY25"],
│ on repository.tf line 189, in resource "github_repository_autolink_reference" "all":
│ 189: resource "github_repository_autolink_reference" "all" {
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Activity
github-actions commentedon Feb 9, 2026
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with
Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀deiga commentedon Feb 9, 2026
Thanks @MarkVaughn for raising this. We weren't aware that such a rule existed on the API.
Would love to see a PR to add this validation! :)
Jwels1 commentedon Mar 1, 2026
@deiga I've got that PR to do this validation. Let me know if there's anything else I can do!
fix: add validation to key_prefix in autolink reference resource (int…
fix: add validation to key_prefix in autolink reference resource (int…
fix: add validation to key_prefix in autolink reference resource (int…
fix: add validation to key_prefix in autolink reference resource (int…
fix: add validation to key_prefix in autolink reference resource (int…
fix: add plan-time validation to key_prefix in autolink reference res…