INNER CODE UNIT · Python

parse_release_notes

bitwarden/android · .github/scripts/jira-get-release-notes/jira_release_notes.py:44

def parse_release_notes(response_json):
    release_notes_field_name = 'customfield_10309'
    try:
        fields = response_json.get('fields')
        if not fields:
            print(f"[{SCRIPT_NAME}] 'fields' is empty or missing in response", file=sys.stderr)
            return ''

        release_notes_field = fields.get(release_notes_field_name)
        if not release_notes_field:
            print(f"[{SCRIPT_NAME}] Release notes field is empty or missing. Field name: {release_notes_field_name}", file=sys.stderr)
            log_customfields_with_content(fields)
            return ''

        content = release_notes_field.get('content', [])
        if not content:
            print(f"[{SCRIPT_NAME}] Release notes field was found but 'content' is empty or missing in {release_notes_field_name}", file=sys.stderr)
            log_customfields_with_content(fields)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…