Skip to content

Conversation

@Cj-Malone
Copy link
Collaborator

@Cj-Malone Cj-Malone commented Dec 29, 2025

@bhousel
Copy link
Member

bhousel commented Dec 29, 2025

Hey cool, it looks like this worked!
Maybe the errors I saw were just because they were older PR branches.

@Cj-Malone
Copy link
Collaborator Author

I'm not that optimistic, I see 2 errors on the previous actions, checkout and push.

https://github.com/osmlab/name-suggestion-index/actions/runs/20575891067/job/59092694308
https://github.com/osmlab/name-suggestion-index/actions/runs/20577248563/job/59096946324

I wonder if the push is because was on forks, not a branch within the repo. Checkout, IDK.

@Cj-Malone
Copy link
Collaborator Author

@Cj-Malone Cj-Malone changed the title GitHub Action test GitHub Action comment on PR Dec 30, 2025
@Cj-Malone
Copy link
Collaborator Author

So checkout of forks is fixed, but it's basically impossible to commit to them (without secrets everywhere). We could:

  1. Switch to a comment on the PR :/
  2. Delete it

I'm not in love with comments, especially because main will still end up in an unbuilt state, and the comments will be too noisy.


on:
pull_request:
pull_request_target:
Copy link
Collaborator Author

@Cj-Malone Cj-Malone Dec 30, 2025

Choose a reason for hiding this comment

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

This is naughty if NSI has secrets in GitHub, they can be leaked by PRs

with:
add_options: '-A'
message: |
```diff
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some words would be good

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
```diff
The following changes will be applied before NSI is released, your changes may have unintended consequences.
```diff

@Cj-Malone Cj-Malone marked this pull request as ready for review December 30, 2025 15:03
@Cj-Malone
Copy link
Collaborator Author

Spending the "morning" on this has demotivated me a bit, but I would still like to see main be constantly clean, or close to it.

Having another action build main and open a PR for review (or commit straight to main) every day/week/hour should be significantly easier, I've done similar before, it's possible. It shouldn’t get in the way of rapidly merging PRs occasionally, and if the existing action is changed to comment, the comments would stay relevant.

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.

3 participants