Skip to content

Conversation

davidangarita1
Copy link

automatic update of plotly.js

@ayjayt ayjayt self-requested a review August 18, 2025 18:11
Copy link
Collaborator

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

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

non-zero or zero exit, it matters:

if sys.exit(0), the action is marked as success.

if sys.exit(1), the action is marked as a failure.

When should it marked as failure? When as success?

Should be marked as failure when the user needs to be notified as something.

Careful with the prints. It would be nice if w/ action success/failure status, the subtitle was whatever link the user had to follow. This is what github pages does when a new pages is published.

Can this also automatically update the CHANGELOG is a second commit?

)
if not reteval:
print(f"The branch {branch} already exists")
sys.exit(0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

exit non-zero and print to stderr

@gvwilson gvwilson added feature something new P1 needs immediate attention labels Aug 22, 2025
@ayjayt ayjayt marked this pull request as draft August 30, 2025 02:08
Copy link
Collaborator

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

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

mayoria de acciones deben estar un action.yml en su propio repositorio para reusar

Edit: im ok for now with the current strategy but think changelogtxt-parsers should have an action.

if brc_eval:
msg = err.decode()
if "HTTP 404" not in msg:
print(msg) # unexpected errors
Copy link
Collaborator

Choose a reason for hiding this comment

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

stderr?

["gh", "api", f"repos/{REPO}/branches/{branch}", "--silent"]
)

if brc_eval:
Copy link
Collaborator

Choose a reason for hiding this comment

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

condicional un poco enredado

print(msg) # unexpected errors
sys.exit(1)
else:
print(f"The branch {branch} already exists")
Copy link
Collaborator

@ayjayt ayjayt Aug 30, 2025

Choose a reason for hiding this comment

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

stderr etc

issues = json.loads(brc.decode())
if issues:
for issue in issues:
if issue.get("state") == "OPEN":
Copy link
Collaborator

Choose a reason for hiding this comment

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

por qué solo open?

run: uv run --python 3.12 --with "$CHANGELOGTXT" changelogtxt check-tag -t "$TAG"
- name: Delete invalid tag
if: failure()
run: git push --delete origin $TAG
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prob not

run: |
git fetch origin master
git switch master
cat ./CHANGELOG.txt > target.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

git show origin/master:src/py/CHANGELOG.txt > target or something like that. Also fetch has a filter flag to specify certain files

@ayjayt
Copy link
Collaborator

ayjayt commented Oct 8, 2025

@davidangarita1 some changes were not resolved and I want to re-review the script. Please add more logging, especially intermediate values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P1 needs immediate attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants