From fc4758d9e069ea3982e651e199fee9e89a2c2bf2 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Thu, 3 Sep 2020 11:20:34 +0100 Subject: [PATCH] Add changelogs --- .github/workflow-config/release.yml | 10 ++++++++ .github/workflows/galaxy-release.yml | 6 +++-- CHANGELOG.rst | 32 +++++++++++++++++++++++++ changelogs/.plugin-cache.yaml | 15 ++++++++++++ changelogs/changelog.yaml | 26 ++++++++++++++++++++ changelogs/config.yaml | 32 +++++++++++++++++++++++++ changelogs/fragments/.gitkeep | 0 changelogs/fragments/72-defaults.yaml | 2 ++ changelogs/fragments/73-readmes.yaml | 2 ++ changelogs/fragments/77-pre-commit.yaml | 2 ++ 10 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.rst create mode 100644 changelogs/.plugin-cache.yaml create mode 100644 changelogs/changelog.yaml create mode 100644 changelogs/config.yaml create mode 100644 changelogs/fragments/.gitkeep create mode 100644 changelogs/fragments/72-defaults.yaml create mode 100644 changelogs/fragments/73-readmes.yaml create mode 100644 changelogs/fragments/77-pre-commit.yaml diff --git a/.github/workflow-config/release.yml b/.github/workflow-config/release.yml index b52506e29..0a5c685a4 100644 --- a/.github/workflow-config/release.yml +++ b/.github/workflow-config/release.yml @@ -17,6 +17,11 @@ src: "{{ repo_base_dir }}/galaxy.yml.j2" dest: "{{ repo_base_dir }}/galaxy.yml" + - name: Update changelog + command: + cmd: antsibull-changelog release --version {{ collection_version }} + chdir: "{{ repo_base_dir }}" + - name: build collection command: cmd: ansible-galaxy collection build @@ -36,6 +41,11 @@ chdir: "{{ repo_base_dir }}" tags: publish + - name: push changelogs to devel + command: + cmd: "git checkout devel && git add changelogs CHANGELOG.rst && git commit -m 'add changelog {{ collection_version }}' && git push" + chdir: "{{ repo_base_dir }}" + - name: git cleanup command: cmd: git reset --hard diff --git a/.github/workflows/galaxy-release.yml b/.github/workflows/galaxy-release.yml index 4a4b6d386..8d8099f29 100644 --- a/.github/workflows/galaxy-release.yml +++ b/.github/workflows/galaxy-release.yml @@ -13,14 +13,16 @@ jobs: steps: - name: Check out code uses: actions/checkout@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python 3.8 uses: actions/setup-python@v1 with: python-version: 3.8 - - name: Install ansible-base - run: pip install ansible + - name: Install ansible-base and changelog + run: pip install ansible antsibull-changelog - name: Publish to galaxy run: ansible-playbook .github/workflow-config/release.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 000000000..d35f15075 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,32 @@ +============================================================= +redhat_cop.tower_configuration Release Notes +============================================================= + +.. contents:: Topics + + +v0.1.0 +====== + +Major Changes +------------- + +- Groups role - Added groups role to the collection +- Labels role - Added labels role to the collection +- Notifications role - Added many options to notifications role +- Workflow Job Templates role - Added many options to WJT role + +Minor Changes +------------- + +- GitHub Workflows - Added workflows to run automated linting and integration tests against the codebase +- Hosts role - Added new_name and enabled options to hosts role +- Housekeeping - Added CONTRIBUTING guide and pull request template +- Inventory Sources role - Added notification_templates_started, success, and error options. Also added verbosity and source_regions options. +- Teams role - Added new_name option to teams role +- Test Configs - Added full range of test objects for integration testing + +Bugfixes +-------- + +- Fixed an issue where tower_validate_certs and validate_certs were both used as vars. Now changed to tower_validate_certs diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml new file mode 100644 index 000000000..627176a51 --- /dev/null +++ b/changelogs/.plugin-cache.yaml @@ -0,0 +1,15 @@ +plugins: + become: {} + cache: {} + callback: {} + cliconf: {} + connection: {} + httpapi: {} + inventory: {} + lookup: {} + module: {} + netconf: {} + shell: {} + strategy: {} + vars: {} +version: 0.1.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml new file mode 100644 index 000000000..c9466bea4 --- /dev/null +++ b/changelogs/changelog.yaml @@ -0,0 +1,26 @@ +ancestor: null +releases: + 0.1.0: + changes: + bugfixes: + - Fixed an issue where tower_validate_certs and validate_certs were both used + as vars. Now changed to tower_validate_certs + major_changes: + - Groups role - Added groups role to the collection + - Labels role - Added labels role to the collection + - Notifications role - Added many options to notifications role + - Workflow Job Templates role - Added many options to WJT role + minor_changes: + - GitHub Workflows - Added workflows to run automated linting and integration + tests against the codebase + - Hosts role - Added new_name and enabled options to hosts role + - Housekeeping - Added CONTRIBUTING guide and pull request template + - Inventory Sources role - Added notification_templates_started, success, and + error options. Also added verbosity and source_regions options. + - Teams role - Added new_name option to teams role + - Test Configs - Added full range of test objects for integration testing + fragments: + - housekeeping.yaml + - new_roles.yaml + - workflows.yaml + release_date: '2020-08-04' diff --git a/changelogs/config.yaml b/changelogs/config.yaml new file mode 100644 index 000000000..d03d8577b --- /dev/null +++ b/changelogs/config.yaml @@ -0,0 +1,32 @@ +changelog_filename_template: ../CHANGELOG.rst +changelog_filename_version_depth: 0 +changes_file: changelog.yaml +changes_format: combined +ignore_other_fragment_extensions: true +keep_fragments: false +mention_ancestor: true +new_plugins_after_name: removed_features +notesdir: fragments +prelude_section_name: release_summary +prelude_section_title: Release Summary +sanitize_changelog: true +sections: +- - major_changes + - Major Changes +- - minor_changes + - Minor Changes +- - breaking_changes + - Breaking Changes / Porting Guide +- - deprecated_features + - Deprecated Features +- - removed_features + - Removed Features (previously deprecated) +- - security_fixes + - Security Fixes +- - bugfixes + - Bugfixes +- - known_issues + - Known Issues +title: Redhat_Cop.Tower_Configuration +trivial_section_name: trivial +use_fqcn: true diff --git a/changelogs/fragments/.gitkeep b/changelogs/fragments/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/changelogs/fragments/72-defaults.yaml b/changelogs/fragments/72-defaults.yaml new file mode 100644 index 000000000..fae01f302 --- /dev/null +++ b/changelogs/fragments/72-defaults.yaml @@ -0,0 +1,2 @@ +bugfixes: + - Removed defaulted objects for all roles so that they were not always run if using a conditional against the variable. (see https://github.com/redhat-cop/tower_configuration/issues/68) diff --git a/changelogs/fragments/73-readmes.yaml b/changelogs/fragments/73-readmes.yaml new file mode 100644 index 000000000..7eda499f3 --- /dev/null +++ b/changelogs/fragments/73-readmes.yaml @@ -0,0 +1,2 @@ +minor_changes: + - Standardised and corrected all READMEs diff --git a/changelogs/fragments/77-pre-commit.yaml b/changelogs/fragments/77-pre-commit.yaml new file mode 100644 index 000000000..1cac90fef --- /dev/null +++ b/changelogs/fragments/77-pre-commit.yaml @@ -0,0 +1,2 @@ +minor_changes: + - Added pre-commit hook for local development and automated testing purposes