@@ -917,10 +917,10 @@ type IssueFieldCreateOrUpdateInput struct {
917917 Rationale * githubv4.String `json:"rationale,omitempty"`
918918 Confidence * string `json:"confidence,omitempty"`
919919 Suggest * githubv4.Boolean `json:"suggest,omitempty"`
920- // UpdateIntent bundles rationale and confidence into a single object. It is
920+ // Intent bundles rationale and confidence into a single object. It is
921921 // the successor to the flat Rationale/Confidence fields above and is only
922- // sent when the FeatureFlagIssueFieldsUseUpdateIntent feature flag is enabled.
923- UpdateIntent * IssueUpdateIntentInput `json:"intent,omitempty"`
922+ // sent when the FeatureFlagIssueFieldsUseIntent feature flag is enabled.
923+ Intent * IssueUpdateIntentInput `json:"intent,omitempty"`
924924}
925925
926926// IssueUpdateIntentInput is the nested input object that carries the rationale
@@ -1062,7 +1062,7 @@ func GranularSetIssueFields(t translations.TranslationHelperFunc) inventory.Serv
10621062 // `intent` object (IssueUpdateIntent). While that migration is in
10631063 // flight, gate the payload shape behind a feature flag so we can
10641064 // switch over without breaking the un-migrated schema.
1065- useIntentInput := deps .IsFeatureEnabled (ctx , FeatureFlagIssueFieldsUseUpdateIntent )
1065+ useIntentInput := deps .IsFeatureEnabled (ctx , FeatureFlagIssueFieldsUseIntent )
10661066 for _ , fieldMap := range fieldMaps {
10671067 fieldID , err := RequiredParam [string ](fieldMap , "field_id" )
10681068 if err != nil {
@@ -1145,7 +1145,7 @@ func GranularSetIssueFields(t translations.TranslationHelperFunc) inventory.Serv
11451145 // on the feature flag.
11461146 if useIntentInput {
11471147 if rationalePtr != nil || confidencePtr != nil {
1148- input .UpdateIntent = & IssueUpdateIntentInput {
1148+ input .Intent = & IssueUpdateIntentInput {
11491149 Rationale : rationalePtr ,
11501150 Confidence : confidencePtr ,
11511151 }
0 commit comments