#
# moz.yaml file to configure updatebot to perform version bumps for
# nightly application-services builds; the version bump occurs in
# ApplicationServices.kt.
#
# Note that application-services is not really vendored here: All the
# normal vendoring steps are skipped and a custom action is used to
# do the version bump. This allows us to drive version bumps in updatebot
# and leverage updatebot's bug and patch creation.
#

# Version of this schema
schema: 1

bugzilla:
  # Bugzilla product and component for this directory and subdirectories
  product: "Firefox for Android"
  component: "General"

# Document the source of externally hosted code
origin:

  # Short name of the package/library
  name: android nightly application-services version bump

  description: android nightly application-services version bump

  # Full URL for the package's homepage/etc
  # Usually different from repository url
  url: https://github.com/mozilla/application-services

  # Human-readable identifier for this version/release
  # Generally "version NNN", "tag SSS", "bookmark SSS"
  release: 10e7ed05fbc69c3b57f2e4560c1be1abe6702520 (2026-07-09T05:02:32).

  # Revision to pull in
  # Must be a long or short commit SHA (long preferred)
  revision: 10e7ed05fbc69c3b57f2e4560c1be1abe6702520

  # The package's license, where possible using the mnemonic from
  # https://spdx.org/licenses/
  # Multiple licenses can be specified (as a YAML list)
  # A "LICENSE" file must exist containing the full license text
  license: MPL-2.0
  license-file: LICENSE

updatebot:
    maintainer-phab: "#release-managers"
    maintainer-bz: dmeehan@mozilla.com
    tasks:
      - type: vendoring
        enabled: true
        frequency: every
    try-preset: android-frontend

vendoring:
  url: https://github.com/mozilla/application-services
  source-hosting: yaml-dir
  source-host-path: appservices_version_bump.ASHost
  tracking: tag

  skip-vendoring-steps:
    - fetch
    - keep
    - include
    - exclude
    - move-contents
    - update-moz-build

  update-actions:
    - action: run-script
      script: '{yaml_dir}/appservices_version_bump.py'
      cwd: '.'
      args: ['{revision}']
