Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing labeler #6

Closed
wants to merge 2 commits 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
16 changes: 14 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 10 additions & 8 deletions .github/labeler.yml.j2
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autolabel.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Anaconda
Anaconda Testing Labeler
========

Anaconda is the OS installer used by Fedora, RHEL, CentOS and other Linux distributions.
Expand Down
Loading