Skip to content

fix: remove @json double-encoding in contributors workflow#7

Merged
adrianomargarin merged 1 commit intomainfrom
feat/auto-update-contributors
Apr 1, 2026
Merged

fix: remove @json double-encoding in contributors workflow#7
adrianomargarin merged 1 commit intomainfrom
feat/auto-update-contributors

Conversation

@adrianomargarin
Copy link
Copy Markdown
Owner

Summary

  • @json in jq encodes a value as a JSON string, causing double-encoding
  • CONTRIBUTORS was stored as "[\"login1\"]" instead of ["login1"], breaking the jq -r '.[]' iteration
  • AUTHORS was stored as "[{\"name\":\"...\"}]", so Python's json.loads('$AUTHORS') parsed [{ as a string and hit name as extra data — matching the reported error at char 4

Test plan

  • Trigger the workflow manually via workflow_dispatch
  • Confirm pyproject.toml authors are updated correctly
  • Confirm no JSONDecodeError in the Python step

Co-Authored-By: adrianomargarin <adrianomargarin@users.noreply.github.com>
@adrianomargarin adrianomargarin merged commit 2e93e9e into main Apr 1, 2026
9 checks passed
@adrianomargarin adrianomargarin deleted the feat/auto-update-contributors branch April 1, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant