Skip to content

TypeError: string indices must be integers #9

@Alex-ley-scrub

Description

@Alex-ley-scrub

Bug report

About me

We are trying to use your GitHub action but it doesn't work exactly as needed at the minute - we could potentially submit PRs to fix this if you are open to that

What is the current behavior?

Action throws error:

Traceback (most recent call last):
  File "/usr/local/bin/generate-pull-request-description", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/generate_pull_request_description/generate_pull_request_description.py", line 459, in main
    ).generate()
  File "/usr/local/lib/python3.10/site-packages/generate_pull_request_description/generate_pull_request_description.py", line 116, in generate
    parsed_commits, unparsed_commits = self._parse_commit_messages_from_github()
  File "/usr/local/lib/python3.10/site-packages/generate_pull_request_description/generate_pull_request_description.py", line 249, in _parse_commit_messages_from_github
    header, *body = commit["commit"]["message"].split("\n")
TypeError: string indices must be integers

What is the expected behavior?

Not to throw the error

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions