Skip to content

fix: remove broken agent - #137

Merged
cremich merged 2 commits into
cremich:mainfrom
ryancormack:remove-tf-agent
Nov 6, 2025
Merged

fix: remove broken agent#137
cremich merged 2 commits into
cremich:mainfrom
ryancormack:remove-tf-agent

Conversation

@ryancormack

@ryancormack ryancormack commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

What type of change does this PR contain?

Remove a broken agent

Please select the appropriate template for your pull request:

Click on the link above that matches your change type to use the appropriate template.

@ryancormack
ryancormack requested a review from cremich as a code owner November 5, 2025 11:06
@cremich cremich self-assigned this Nov 6, 2025
@cremich

cremich commented Nov 6, 2025

Copy link
Copy Markdown
Owner

@ryancormack unfortunately I had an error in the github actions workflow resulting in env variables not properly set for PRs from forked repos. Can you please rebase the changes? That also applies for PR #138

- If files are deleted, they won't exist on disk and then there are no authors to check in the markdown files
@cremich cremich added the bug Something isn't working label Nov 6, 2025
@cremich

cremich commented Nov 6, 2025

Copy link
Copy Markdown
Owner

Thanks. I created an issue to fix the false assumptions in the content validation script. Will merge this PR and send you another round of "huuuuge thank you" 🤩

@cremich
cremich merged commit dbbf13f into cremich:main Nov 6, 2025
1 of 2 checks passed
with:
script: |
const authors = JSON.parse('${{ steps.author-check.outputs.result }}');
const authors = JSON.parse('${{ steps.author-check.outputs.result }}' || '[]');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous step, https://github.com/cremich/promptz/blob/main/.github/workflows/content-validation.yml#L64 returns false if files have only been deleted (not changed or added), https://github.com/tj-actions/changed-files?tab=readme-ov-file#output_any_changed

So there is no JSON object to parse. This guards against that by always having an array to check against. Then count the numbers before posting to github

@ryancormack

Copy link
Copy Markdown
Contributor Author

Started writing why I made those changes, but see you've merged. Ta very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants