mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Implement new changelog generator.
This commit is contained in:
parent
cef4d862bc
commit
70c475da6c
7 changed files with 853 additions and 10 deletions
6
test/sanity/code-smell/changelog.json
Normal file
6
test/sanity/code-smell/changelog.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"prefixes": [
|
||||
"changelogs/fragments/"
|
||||
],
|
||||
"output": "path-line-column-message"
|
||||
}
|
14
test/sanity/code-smell/changelog.py
Executable file
14
test/sanity/code-smell/changelog.py
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
|
||||
def main():
|
||||
paths = sys.argv[1:] or sys.stdin.read().splitlines()
|
||||
cmd = ['packaging/release/changelogs/changelog.py', 'lint'] + paths
|
||||
subprocess.check_call(cmd)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue