Skip to content

Commit 33e328e

Browse files
committed
add requestor's affiliation
1 parent fe4f0ae commit 33e328e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
[![CircleCI](https://circleci.com/gh/OperationCode/operationcode-pybot.svg?style=svg)](https://circleci.com/gh/OperationCode/operationcode-pybot)
77
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=OperationCode/operationcode-pybot)](https://dependabot.com)
8-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://contributor-covenant.org/)
98

109
# [OperationCode-Pybot](https://github.com/OperationCode/operationcode-pybot)
1110

pybot/endpoints/airtable/message_templates/messages.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from typing import List
22

33

4-
def mentor_request_text(user_id, service, skillsets, requested_mentor_message=None):
4+
def mentor_request_text(user_id, service, skillsets, affiliation, requested_mentor_message=None):
55
if not skillsets:
66
skillsets = "None provided"
77
text = (
88
f"User <@{user_id}> has requested a mentor for {service}\n\n"
9-
f"Requested Skillset(s): {skillsets.replace(',', ', ')}"
9+
f"Requested Skillset(s): {skillsets.replace(',', ', ')}\n\n"
10+
f"Requestor Affiliation: {affiliation}"
1011
)
1112

1213
if requested_mentor_message:

pybot/endpoints/airtable/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def _create_messages(
6565
slack_id,
6666
service_translation,
6767
request.get("skillsets", None),
68+
request.get('affiliation', 'None Provided'),
6869
requested_mentor_message,
6970
),
7071
"attachments": claim_mentee_attachment(request["record"]),

0 commit comments

Comments
 (0)