Blob Blame History Raw
upstream_project_url: https://github.com/matiasb/python-unidiff
upstream_tag_template: v{version}

downstream_package_name: python-unidiff
issue_repository: https://github.com/mfocko/python-unidiff
specfile_path: python-unidiff.spec

srpm_build_deps: []

actions:
  commit-message:
  - bash -c 'echo -e "[packit] New upstream release ${PACKIT_PROJECT_VERSION}\n"'
  - bash -c 'BZ_ID=$(curl -s https://bugzilla.redhat.com/rest/bug\?component\="${PACKIT_DOWNSTREAM_PACKAGE_NAME}"\&status\="NEW"\&status\="ASSIGNED"\&reporter\="upstream-release-monitoring@fedoraproject.org"\&summary\="${PACKIT_PROJECT_VERSION}" | jq ".bugs[0].id"); echo Resolves rhbz#$BZ_ID'

  changelog-entry:
  # Reference the package explicitly until https://github.com/packit/packit/issues/2076 is resolved
  - bash -c 'BZ_ID=$(curl -s https://bugzilla.redhat.com/rest/bug\?component\="python-unidiff"\&status\="NEW"\&status\="ASSIGNED"\&reporter\="upstream-release-monitoring@fedoraproject.org"\&summary\="${PACKIT_PROJECT_VERSION}" | jq ".bugs[0].id"); echo "- New upstream release ${PACKIT_PROJECT_VERSION} (rhbz#$BZ_ID)"'

jobs:
- job: pull_from_upstream
  trigger: release
  dist_git_branches:
  - epel-9
  - fedora-latest-stable
  - fedora-latest
  - fedora-development

- job: koji_build
  trigger: commit
  dist_git_branches:
  - fedora-all
  - epel-all

- job: bodhi_update
  trigger: commit
  dist_git_branches:
  - fedora-branched
  - epel-all

- job: copr_build
  trigger: commit
  branch: rawhide
  targets:
  - fedora-all
  - epel-all
  owner: mfocko
  project: python-unidiff
  preserve_project: True