chore: linting fixes
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 19s
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 19s
ref: #6
This commit is contained in:
2
.cz.yaml
2
.cz.yaml
@ -12,7 +12,9 @@ commitizen:
|
|||||||
- fix
|
- fix
|
||||||
- test
|
- test
|
||||||
- refactor
|
- refactor
|
||||||
|
# yamllint disable rule:line-length
|
||||||
commit_parser: ^(?P<change_type>feat|fix|test|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?
|
commit_parser: ^(?P<change_type>feat|fix|test|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?
|
||||||
|
# yamllint enable rule:line-length
|
||||||
name: cz_customize
|
name: cz_customize
|
||||||
prerelease_offset: 1
|
prerelease_offset: 1
|
||||||
tag_format: $version
|
tag_format: $version
|
||||||
|
@ -27,10 +27,12 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Process Completed workflow_job
|
- name: Process Completed workflow_job
|
||||||
|
# yamllint disable rule:indentation
|
||||||
condition: >
|
condition: >
|
||||||
event.meta.headers['X-GitHub-Event'] == 'workflow_job'
|
event.meta.headers['X-GitHub-Event'] == 'workflow_job'
|
||||||
and
|
and
|
||||||
event.payload.action == 'completed'
|
event.payload.action == 'completed'
|
||||||
|
# yamllint enable rule:indentation
|
||||||
actions:
|
actions:
|
||||||
|
|
||||||
- run_playbook:
|
- run_playbook:
|
||||||
|
39
galaxy.yml
39
galaxy.yml
@ -1,79 +1,46 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
### REQUIRED
|
|
||||||
# The namespace of the collection. This can be a company/brand/organization or product namespace under which all
|
|
||||||
# content lives. May only contain alphanumeric lowercase characters and underscores. Namespaces cannot start with
|
|
||||||
# underscores or numbers and cannot contain consecutive underscores
|
|
||||||
namespace: nofusscomputing
|
namespace: nofusscomputing
|
||||||
|
|
||||||
# The name of the collection. Has the same character restrictions as 'namespace'
|
|
||||||
name: git_events
|
name: git_events
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
|
|
||||||
# @nicks:irc/im.site#channel'
|
|
||||||
authors:
|
authors:
|
||||||
- No Fuss Computing
|
- No Fuss Computing
|
||||||
|
|
||||||
### OPTIONAL but strongly recommended
|
|
||||||
# A short summary description of the collection
|
|
||||||
description: Git[ea/hub] Problem matcher parser with PR Code Review
|
description: Git[ea/hub] Problem matcher parser with PR Code Review
|
||||||
|
|
||||||
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
|
|
||||||
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
|
|
||||||
license:
|
license:
|
||||||
- MIT
|
- MIT
|
||||||
|
|
||||||
# The path to the license file for the collection. This path is relative to the root of the collection. This key is
|
|
||||||
# mutually exclusive with 'license'
|
|
||||||
license_file: LICENCE
|
license_file: LICENCE
|
||||||
|
|
||||||
# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character
|
|
||||||
# requirements as 'namespace' and 'name'
|
|
||||||
tags:
|
tags:
|
||||||
- ci
|
- ci
|
||||||
- event
|
- event
|
||||||
- rulebook
|
- rulebook
|
||||||
- tools
|
- tools
|
||||||
|
|
||||||
# Collections that this collection requires to be installed for it to be usable. The key of the dict is the
|
|
||||||
# collection label 'namespace.name'. The value is a version range
|
|
||||||
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
|
|
||||||
# range specifiers can be set and are separated by ','
|
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
|
|
||||||
# The URL of the originating SCM repository
|
|
||||||
repository: https://nofusscomputing.com/git/ansible-collections/git-events
|
repository: https://nofusscomputing.com/git/ansible-collections/git-events
|
||||||
|
|
||||||
# The URL to any online docs
|
|
||||||
documentation: https://nofusscomputing.com/git/ansible-collections/git-events
|
documentation: https://nofusscomputing.com/git/ansible-collections/git-events
|
||||||
|
|
||||||
# The URL to the homepage of the collection/project
|
|
||||||
homepage: https://nofusscomputing.com/git/ansible-collections/git-events
|
homepage: https://nofusscomputing.com/git/ansible-collections/git-events
|
||||||
|
|
||||||
# The URL to the collection issue tracker
|
|
||||||
issues: https://nofusscomputing.com/git/ansible-collections/git-events/issues
|
issues: https://nofusscomputing.com/git/ansible-collections/git-events/issues
|
||||||
|
|
||||||
# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
|
|
||||||
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
|
|
||||||
# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry',
|
|
||||||
# and '.git' are always filtered. Mutually exclusive with 'manifest'
|
|
||||||
build_ignore: [
|
build_ignore: [
|
||||||
'.ansible',
|
'.ansible',
|
||||||
artifacts/,
|
artifacts/,
|
||||||
|
'.cz.yaml',
|
||||||
|
'.dockerignore',
|
||||||
|
'dockerfile',
|
||||||
'.git',
|
'.git',
|
||||||
'galaxy.yml',
|
'galaxy.yml',
|
||||||
'*.tmp.*'
|
'*.tmp.*'
|
||||||
|
|
||||||
]
|
]
|
||||||
# A dict controlling use of manifest directives used in building the collection artifact. The key 'directives' is a
|
|
||||||
# list of MANIFEST.in style
|
|
||||||
# L(directives,https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands). The key
|
|
||||||
# 'omit_default_directives' is a boolean that controls whether the default directives are used. Mutually exclusive
|
|
||||||
# with 'build_ignore'
|
|
||||||
# manifest: null
|
|
||||||
|
@ -30,7 +30,9 @@
|
|||||||
|
|
||||||
- name: Set required Facts
|
- name: Set required Facts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
git_url_api: "{{ payload.repository.url | replace((gitea_replace_url | split('/api/'))[0], git_api_url) }}"
|
git_url_api: >-
|
||||||
|
{{ payload.repository.url |
|
||||||
|
replace((gitea_replace_url | split('/api/'))[0], git_api_url) }}
|
||||||
git_url_path_jobs: 'actions/jobs'
|
git_url_path_jobs: 'actions/jobs'
|
||||||
head_sha: "{{ payload.workflow_job.head_sha }}"
|
head_sha: "{{ payload.workflow_job.head_sha }}"
|
||||||
|
|
||||||
@ -51,7 +53,9 @@
|
|||||||
|
|
||||||
- name: Fetch job log
|
- name: Fetch job log
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "{{ git_url_api + '/' + git_url_path_jobs + '/' + payload.workflow_job.id | string + '/logs' }}"
|
url: >-
|
||||||
|
{{ git_url_api + '/' + git_url_path_jobs
|
||||||
|
+ '/' + payload.workflow_job.id | string + '/logs' }}
|
||||||
dest: /tmp/job.log
|
dest: /tmp/job.log
|
||||||
headers:
|
headers:
|
||||||
Authorization: token {{ lookup('env', 'GIT_API_TOKEN') }}
|
Authorization: token {{ lookup('env', 'GIT_API_TOKEN') }}
|
||||||
@ -119,9 +123,11 @@
|
|||||||
timeout: 10
|
timeout: 10
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
no_log: "{{ disable_logging }}"
|
no_log: "{{ disable_logging }}"
|
||||||
|
# yamllint disable rule:indentation
|
||||||
when: >
|
when: >
|
||||||
http_get_pull_request.json.state | default('-') != 'closed'
|
http_get_pull_request.json.state | default('-') != 'closed'
|
||||||
and
|
and
|
||||||
http_get_pull_request.status | default(0) == 200
|
http_get_pull_request.status | default(0) == 200
|
||||||
and
|
and
|
||||||
not http_get_pull_request.skipped | default(false) | bool
|
not http_get_pull_request.skipped | default(false) | bool
|
||||||
|
# yamllint enable rule:indentation
|
||||||
|
Reference in New Issue
Block a user