#250 Figure out badges rule to award badge automatically to pagure group members
Closed: Fixed 4 years ago by ankursinha. Opened 4 years ago by ankursinha.

The neurofedora badge should be given automatically to all users in the neuro-sig pagure group. We need to figure out a rule to do this, though.


Blocked by https://pagure.io/fedora-badges/issue/678

Needs to be looked at regularly for progress.

Metadata Update from @ankursinha:
- Issue tagged with: S: Next meeting

4 years ago

From what I've read this may be a rule similar to what we would need: https://infrastructure.fedoraproject.org/infra/badges/rules/fas-robotics-sig.yml

I tried to research here: https://badges.fedoraproject.org/about
and the section about rules pointed me to another page: https://git.fedorahosted.org/cgit/badges.git
that is now retired.

From what I read, the badges arent retroactively issued (last question on FAQs) so if we use pagure membership, people would have to leave the group and reenter to get the badge.

Do you think we could use membership in the SIG as the way one gets this badge? like this:

%YAML 1.2
---

name:           <YOUR_TEXT_HERE>
description:    You're a proud member of the Neuro-Fedora SIG
creator:        Ankursinha
discussion:     https://pagure.io/neuro-sig/NeuroFedora/issue/250
image_url:      https://badges.fedoraproject.org/pngs/<YOUR_FILE_NAME>.png
issuer_id:      fedora-project

trigger:
  all:
  - topic:  fas.group.member.sponsor
  - lambda: msg.get('msg', {}).get('group', None) == 'neuro-sig'

criteria:
  datanommer:
      filter:
        topics:
        - "%(topic)s"
        users:
        - "%(msg.user)s"
      operation: count
      condition:
        greater than or equal to: 1

recipient: "%(msg.user)s"

Metadata Update from @ankursinha:
- Issue tagged with: S: On hold

4 years ago

I pinged the badges ticket again. For the time being, I'm setting this to "future meeting". When we get a response from there, we'll move this along.

Metadata Update from @ankursinha:
- Issue untagged with: S: Next meeting
- Issue tagged with: S: Future meeting

4 years ago

The badge was approved. We can start looking into:

  • giving it out manually for a start
  • automating it (this ticket).

Any takers? :)

Metadata Update from @ankursinha:
- Issue untagged with: S: Future meeting
- Issue tagged with: S: Next meeting

4 years ago

Metadata Update from @major:
- Issue untagged with: S: Next meeting
- Issue tagged with: S: Future meeting

4 years ago

We have it now.

All members of the FAS group will automatically get it, and I think I can manually award it to people too. Will check it out later.

https://badges.fedoraproject.org/badge/neurofedora-sig-member

Metadata Update from @ankursinha:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata