diff --git a/.github/labeler.yml b/.github/labeler.yml index a4515da097e..017f98eaa04 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -8,11 +8,23 @@ # File to automatically label pull requests # See https://github.com/actions/labeler -# Always apply target fedora version to any changes -f41: +rawhide: - any: - changed-files: - any-glob-to-any-file: ['**'] +- target_branch: master + +rhel-9: +- any: + - changed-files: + - any-glob-to-any-file: ['**'] +- target_branch: 'rhel-9' + +rhel-10: +- any: + - changed-files: + - any-glob-to-any-file: ['**'] +- target_branch: 'rhel-10' documentation: - any: diff --git a/.github/labeler.yml.j2 b/.github/labeler.yml.j2 index 4ece65592d2..a264a6b8829 100644 --- a/.github/labeler.yml.j2 +++ b/.github/labeler.yml.j2 @@ -1,17 +1,19 @@ # File to automatically label pull requests # See https://github.com/actions/labeler -# Always apply target fedora version to any changes -{% if distro_name == "fedora" and distro_release == "rawhide" %} -f{$ rawhide_fedora_version $}: -{% elif distro_name == "fedora" %} -f{$ distro_release $}: -{% elif distro_name == "rhel" %} -rhel-{$ distro_release $}: -{% endif %} +rawhide: - any: - changed-files: - any-glob-to-any-file: ['**'] +- target_branch: master +{% for branch in supported_branches %} + +{$ branch|first $}: +- any: + - changed-files: + - any-glob-to-any-file: ['**'] +- target_branch: '{$ branch|first $}' +{% endfor %} documentation: - any: diff --git a/.github/workflows/autolabel.yml b/.github/workflows/autolabel.yml index 7461632ba4e..3a36d5cc515 100644 --- a/.github/workflows/autolabel.yml +++ b/.github/workflows/autolabel.yml @@ -1,6 +1,6 @@ name: Add PR labels automatically on: - pull_request_target: + pull_request: types: [opened] # Without the check permission we are getting error - see more info Here diff --git a/README.rst b/README.rst index aac2906b805..60892ca5f35 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -Anaconda +Anaconda Testing Labeler ======== Anaconda is the OS installer used by Fedora, RHEL, CentOS and other Linux distributions.