Skip to content

Commit

Permalink
allow missing docs arg
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Feb 4, 2025
1 parent e6ee999 commit 29da1f7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions provider-ci/internal/pkg/config.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package pkg

import (
_ "embed" // For embedding action versions.

"bytes"
_ "embed"
"fmt"
"os"
"path/filepath"
"time"

// For embedding action versions.

"gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -312,6 +313,10 @@ type Config struct {

// AutoMergeProviderUpgrades controls whether we automatically merge upstream provider upgrades.
AutoMergeProviderUpgrades bool `yaml:"autoMergeProviderUpgrades"`

// AllowMissingDocs controls whether we allow missing docs in the provider.
// Defaults to false.
AllowMissingDocs bool `yaml:"allowMissingDocs"`
}

// LoadLocalConfig loads the provider configuration at the given path with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
username: pulumi-bot
automerge: #{{ .Config.AutoMergeProviderUpgrades }}#
target-version: ${{ steps.target_version.outputs.version }}
allow-missing-docs: #{{ .Config.AllowMissingDocs }}#
#{{- if .Config.JavaGenVersion }}#
target-java-version: #{{ .Config.JavaGenVersion }}#
#{{- end }}#
Expand Down
3 changes: 3 additions & 0 deletions provider-ci/internal/pkg/templates/defaults.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,6 @@ clean-github-workflows: true

# Whether we automatically merge upstream provider upgrades.
autoMergeProviderUpgrades: false

# Whether we allow missing docs in the provider.
allowMissingDocs: false
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
username: pulumi-bot
automerge: false
target-version: ${{ steps.target_version.outputs.version }}
allow-missing-docs: false
- name: Comment on upgrade issue if automated PR failed
if: steps.upgrade_provider.outcome == 'failure'
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
username: pulumi-bot
automerge: false
target-version: ${{ steps.target_version.outputs.version }}
allow-missing-docs: false
- name: Comment on upgrade issue if automated PR failed
if: steps.upgrade_provider.outcome == 'failure'
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
username: pulumi-bot
automerge: false
target-version: ${{ steps.target_version.outputs.version }}
allow-missing-docs: false
- name: Comment on upgrade issue if automated PR failed
if: steps.upgrade_provider.outcome == 'failure'
shell: bash
Expand Down

0 comments on commit 29da1f7

Please sign in to comment.