Skip to content

Fix wrong format for Co-authored automerged commits + pagination #263

@smoya

Description

@smoya

Describe the bug

Commit Co-authoring allow us to merge PR's and tell Github who were the committers so it does not appear only the PR creator as the author of all the code on it. Unfortunately, it doesn't work at this moment due to a bug in our side.
The way it works is described here.
We basically make it happen in this action.

However, the final commit message contains a wrong format that makes the co-authoring feature fail.

It seems like a format problem: no new line character is being printed (each co-author should appear in new line). Instead, the new line characters appears encoded (%0A) 😞

How to Reproduce

See an example here: asyncapi/parser-js@4799f2a

Expected behavior

Each co-author line (Co-authored-by: ...) should appear in a new line as the documentation says.
Additionally, we should find an alternative to curl + jq or maybe use some bash so we can implement pagination and by pass the limitation of 100 commit results. There are PR's that have more than 100 commits, specially in long-live branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ci-cdSpecify what technical area given issue relates to. Its goal is to ease filtering good first issues.bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions