Commit 40d6641d authored by Cyril Matthey-Doret's avatar Cyril Matthey-Doret
Browse files

make additional metadata fields available in send_feedback.py

parent f4afb030
Pipeline #332295 passed with stage
in 12 seconds
......@@ -106,8 +106,13 @@ def main(forks, feedback, token, template):
# Get basic fields from repo metadata in json
base, group, repo = parse_repo_url(fork["url"])
members = "\n".join([f"* {member['name']}" for member in fork["members"]])
fill_data = {"project": repo, "group": group, "members": members}
fill_data = {
"project": repo.removesuffix(".git"),
"group": group,
"members": members,
}
# add commit, url and visibility fields from fork data
fill_data |= {key: fork.get(key) for key in ["url", "commit", "visibility"]}
# If provided, get additional fields from feedback table
if feedback:
feedback_fields = (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment