1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Tidy up sanity checks ignore lines for source_control/* modules (#1893) (#1897)

* fixed validation-modules for plugins/modules/source_control/git*

* Tidy up sanity checks ignore lines for source_control/* modules

* removed unnecessary ignore lines from 2.9 and 2.11

(cherry picked from commit cf5e9bf44c)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
Felix Fontein 2021-02-25 10:22:12 +01:00 committed by GitHub
parent 0a364b166b
commit 275b979f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 45 additions and 33 deletions

View file

@ -34,10 +34,12 @@ options:
description: description:
- The name of the setting. If no value is supplied, the value will - The name of the setting. If no value is supplied, the value will
be read from the config if it has been set. be read from the config if it has been set.
type: str
repo: repo:
description: description:
- Path to a git repository for reading and writing values from a - Path to a git repository for reading and writing values from a
specific repo. specific repo.
type: path
scope: scope:
description: description:
- Specify which scope to read/set values from. This is required - Specify which scope to read/set values from. This is required
@ -45,6 +47,7 @@ options:
also specify the repo parameter. It defaults to system only when also specify the repo parameter. It defaults to system only when
not using I(list_all)=yes. not using I(list_all)=yes.
choices: [ "local", "global", "system" ] choices: [ "local", "global", "system" ]
type: str
state: state:
description: description:
- "Indicates the setting should be set/unset. - "Indicates the setting should be set/unset.
@ -52,10 +55,12 @@ options:
when I(state)=absent and I(value) is defined, I(value) is discarded." when I(state)=absent and I(value) is defined, I(value) is discarded."
choices: [ 'present', 'absent' ] choices: [ 'present', 'absent' ]
default: 'present' default: 'present'
type: str
value: value:
description: description:
- When specifying the name of a single setting, supply a value to - When specifying the name of a single setting, supply a value to
set that setting to the given value. set that setting to the given value.
type: str
''' '''
EXAMPLES = ''' EXAMPLES = '''

View file

@ -29,20 +29,24 @@ options:
- The name of the individual account or organization that owns the GitHub repository. - The name of the individual account or organization that owns the GitHub repository.
required: true required: true
aliases: [ 'account', 'organization' ] aliases: [ 'account', 'organization' ]
type: str
repo: repo:
description: description:
- The name of the GitHub repository. - The name of the GitHub repository.
required: true required: true
aliases: [ 'repository' ] aliases: [ 'repository' ]
type: str
name: name:
description: description:
- The name for the deploy key. - The name for the deploy key.
required: true required: true
aliases: [ 'title', 'label' ] aliases: [ 'title', 'label' ]
type: str
key: key:
description: description:
- The SSH public key to add to the repository as a deploy key. - The SSH public key to add to the repository as a deploy key.
required: true required: true
type: str
read_only: read_only:
description: description:
- If C(true), the deploy key will only be able to read repository contents. Otherwise, the deploy key will be able to read and write. - If C(true), the deploy key will only be able to read repository contents. Otherwise, the deploy key will be able to read and write.
@ -53,6 +57,7 @@ options:
- The state of the deploy key. - The state of the deploy key.
default: "present" default: "present"
choices: [ "present", "absent" ] choices: [ "present", "absent" ]
type: str
force: force:
description: description:
- If C(true), forcefully adds the deploy key by deleting any existing deploy key with the same public key or title. - If C(true), forcefully adds the deploy key by deleting any existing deploy key with the same public key or title.
@ -61,16 +66,20 @@ options:
username: username:
description: description:
- The username to authenticate with. Should not be set when using personal access token - The username to authenticate with. Should not be set when using personal access token
type: str
password: password:
description: description:
- The password to authenticate with. Alternatively, a personal access token can be used instead of I(username) and I(password) combination. - The password to authenticate with. Alternatively, a personal access token can be used instead of I(username) and I(password) combination.
type: str
token: token:
description: description:
- The OAuth2 token or personal access token to authenticate with. Mutually exclusive with I(password). - The OAuth2 token or personal access token to authenticate with. Mutually exclusive with I(password).
type: str
otp: otp:
description: description:
- The 6 digit One Time Password for 2-Factor Authentication. Required together with I(username) and I(password). - The 6 digit One Time Password for 2-Factor Authentication. Required together with I(username) and I(password).
aliases: ['2fa_token'] aliases: ['2fa_token']
type: int
notes: notes:
- "Refer to GitHub's API documentation here: https://developer.github.com/v3/repos/keys/." - "Refer to GitHub's API documentation here: https://developer.github.com/v3/repos/keys/."
''' '''

View file

@ -18,20 +18,24 @@ options:
description: description:
- Name of repository from which issue needs to be retrieved. - Name of repository from which issue needs to be retrieved.
required: true required: true
type: str
organization: organization:
description: description:
- Name of the GitHub organization in which the repository is hosted. - Name of the GitHub organization in which the repository is hosted.
required: true required: true
type: str
issue: issue:
description: description:
- Issue number for which information is required. - Issue number for which information is required.
required: true required: true
type: int
action: action:
description: description:
- Get various details about issue depending upon action specified. - Get various details about issue depending upon action specified.
default: 'get_status' default: 'get_status'
choices: choices:
- 'get_status' - 'get_status'
type: str
author: author:
- Abhijeet Kasurde (@Akasurde) - Abhijeet Kasurde (@Akasurde)
''' '''

View file

@ -17,18 +17,22 @@ options:
description: description:
- GitHub Access Token with permission to list and create public keys. - GitHub Access Token with permission to list and create public keys.
required: true required: true
type: str
name: name:
description: description:
- SSH key name - SSH key name
required: true required: true
type: str
pubkey: pubkey:
description: description:
- SSH public key value. Required when C(state=present). - SSH public key value. Required when C(state=present).
type: str
state: state:
description: description:
- Whether to remove a key, ensure that it exists, or update its value. - Whether to remove a key, ensure that it exists, or update its value.
choices: ['present', 'absent'] choices: ['present', 'absent']
default: 'present' default: 'present'
type: str
force: force:
description: description:
- The default is C(yes), which will replace the existing remote key - The default is C(yes), which will replace the existing remote key

View file

@ -18,34 +18,43 @@ options:
token: token:
description: description:
- GitHub Personal Access Token for authenticating. Mutually exclusive with C(password). - GitHub Personal Access Token for authenticating. Mutually exclusive with C(password).
type: str
user: user:
description: description:
- The GitHub account that owns the repository - The GitHub account that owns the repository
type: str
required: true required: true
password: password:
description: description:
- The GitHub account password for the user. Mutually exclusive with C(token). - The GitHub account password for the user. Mutually exclusive with C(token).
type: str
repo: repo:
description: description:
- Repository name - Repository name
type: str
required: true required: true
action: action:
description: description:
- Action to perform - Action to perform
type: str
required: true required: true
choices: [ 'latest_release', 'create_release' ] choices: [ 'latest_release', 'create_release' ]
tag: tag:
description: description:
- Tag name when creating a release. Required when using action is set to C(create_release). - Tag name when creating a release. Required when using action is set to C(create_release).
type: str
target: target:
description: description:
- Target of release when creating a release - Target of release when creating a release
type: str
name: name:
description: description:
- Name of release when creating a release - Name of release when creating a release
type: str
body: body:
description: description:
- Description of the release when creating a release - Description of the release when creating a release
type: str
draft: draft:
description: description:
- Sets if the release is a draft or not. (boolean) - Sets if the release is a draft or not. (boolean)

View file

@ -18,22 +18,26 @@ options:
repository: repository:
description: description:
- Full name of the repository to configure a hook for - Full name of the repository to configure a hook for
type: str
required: true required: true
aliases: aliases:
- repo - repo
url: url:
description: description:
- URL to which payloads will be delivered - URL to which payloads will be delivered
type: str
required: true required: true
content_type: content_type:
description: description:
- The media type used to serialize the payloads - The media type used to serialize the payloads
type: str
required: false required: false
choices: [ form, json ] choices: [ form, json ]
default: form default: form
secret: secret:
description: description:
- The shared secret between GitHub and the payload URL. - The shared secret between GitHub and the payload URL.
type: str
required: false required: false
insecure_ssl: insecure_ssl:
description: description:
@ -61,24 +65,29 @@ options:
state: state:
description: description:
- Whether the hook should be present or absent - Whether the hook should be present or absent
type: str
required: false required: false
choices: [ absent, present ] choices: [ absent, present ]
default: present default: present
user: user:
description: description:
- User to authenticate to GitHub as - User to authenticate to GitHub as
type: str
required: true required: true
password: password:
description: description:
- Password to authenticate to GitHub with - Password to authenticate to GitHub with
type: str
required: false required: false
token: token:
description: description:
- Token to authenticate to GitHub with - Token to authenticate to GitHub with
type: str
required: false required: false
github_url: github_url:
description: description:
- Base URL of the GitHub API - Base URL of the GitHub API
type: str
required: false required: false
default: https://api.github.com default: https://api.github.com

View file

@ -19,24 +19,29 @@ options:
repository: repository:
description: description:
- Full name of the repository to configure a hook for - Full name of the repository to configure a hook for
type: str
required: true required: true
aliases: aliases:
- repo - repo
user: user:
description: description:
- User to authenticate to GitHub as - User to authenticate to GitHub as
type: str
required: true required: true
password: password:
description: description:
- Password to authenticate to GitHub with - Password to authenticate to GitHub with
type: str
required: false required: false
token: token:
description: description:
- Token to authenticate to GitHub with - Token to authenticate to GitHub with
type: str
required: false required: false
github_url: github_url:
description: description:
- Base URL of the github api - Base URL of the github api
type: str
required: false required: false
default: https://api.github.com default: https://api.github.com

View file

@ -381,19 +381,8 @@ plugins/modules/remote_management/stacki/stacki_host.py validate-modules:doc-def
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter
plugins/modules/source_control/git_config.py validate-modules:doc-missing-type
plugins/modules/source_control/git_config.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_deploy_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_hooks.py validate-modules:doc-missing-type plugins/modules/source_control/github/github_hooks.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_issue.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_issue.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_peer.py validate-modules:parameter-list-no-elements plugins/modules/storage/glusterfs/gluster_peer.py validate-modules:parameter-list-no-elements
plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-list-no-elements plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-list-no-elements

View file

@ -369,19 +369,8 @@ plugins/modules/remote_management/stacki/stacki_host.py validate-modules:doc-def
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter
plugins/modules/source_control/git_config.py validate-modules:doc-missing-type
plugins/modules/source_control/git_config.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_deploy_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_hooks.py validate-modules:doc-missing-type plugins/modules/source_control/github/github_hooks.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_issue.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_issue.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_peer.py validate-modules:parameter-list-no-elements plugins/modules/storage/glusterfs/gluster_peer.py validate-modules:parameter-list-no-elements
plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-list-no-elements plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-list-no-elements

View file

@ -350,21 +350,10 @@ plugins/modules/remote_management/stacki/stacki_host.py validate-modules:doc-def
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter plugins/modules/remote_management/stacki/stacki_host.py validate-modules:undocumented-parameter
plugins/modules/source_control/git_config.py validate-modules:doc-missing-type
plugins/modules/source_control/git_config.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_deploy_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-invalid
plugins/modules/source_control/github/github_deploy_key.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_hooks.py validate-modules:deprecation-mismatch plugins/modules/source_control/github/github_hooks.py validate-modules:deprecation-mismatch
plugins/modules/source_control/github/github_hooks.py validate-modules:invalid-documentation plugins/modules/source_control/github/github_hooks.py validate-modules:invalid-documentation
plugins/modules/source_control/github/github_hooks.py validate-modules:missing-main-call plugins/modules/source_control/github/github_hooks.py validate-modules:missing-main-call
plugins/modules/source_control/github/github_issue.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_issue.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_key.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:doc-missing-type
plugins/modules/source_control/github/github_release.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook.py validate-modules:parameter-type-not-in-doc
plugins/modules/source_control/github/github_webhook_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc plugins/modules/storage/glusterfs/gluster_heal_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-type-not-in-doc plugins/modules/storage/glusterfs/gluster_volume.py validate-modules:parameter-type-not-in-doc
plugins/modules/storage/netapp/na_cdot_aggregate.py validate-modules:deprecation-mismatch plugins/modules/storage/netapp/na_cdot_aggregate.py validate-modules:deprecation-mismatch