Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

reverse PR 772 #800

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions playbooks/ansible-changelog-fragment/run.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
- hosts: localhost
gather_facts: false
vars:
check_changelog_fragment__git_directory: "{{ zuul.executor.src_root }}/{{ zuul.project.canonical_name }}"
check_changelog_fragment__target_branch: "{{ zuul.project.default-branch }}"
tasks:
- name: Run check_changelog_fragment role
include_role:
name: check_changelog_fragment
- name: Check for changelog fragments
args:
chdir: "{{ zuul.executor.src_root }}/{{ zuul.project.canonical_name }}"
shell: git show --name-status --exit-code --oneline --diff-filter=A | grep changelogs/fragments/
register: r
failed_when: r.rc > 1

- name: Changelog fragment failed
fail:
msg: "Your pull-request is missing a changelog fragment, please add one. It should explain to end users the reason for your change."
when: r.rc
14 changes: 0 additions & 14 deletions roles/check_changelog_fragment/defaults/main.yml

This file was deleted.

73 changes: 0 additions & 73 deletions roles/check_changelog_fragment/tasks/main.yml

This file was deleted.