Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False error when PR is merged before action runs #13

Open
tranhl opened this issue Apr 12, 2024 · 1 comment
Open

False error when PR is merged before action runs #13

tranhl opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@tranhl
Copy link
Collaborator

tranhl commented Apr 12, 2024

Error that occurs:

/home/runner/work/_actions/git-town/action/v1/dist/index.js:23416
          throw new NotFoundGraphError("Graph.".concat(method, ': could not find the "').concat(nodeOrEdge, '" node in the graph.'));
                ^

NotFoundGraphError2: Graph.setNodeAttribute: could not find the "<pr_head_ref>" node in the graph.

The simplest fix would be to check whether or not the current PR is merged before running the main action.

@tranhl tranhl added the bug Something isn't working label Apr 12, 2024
@tranhl
Copy link
Collaborator Author

tranhl commented May 6, 2024

One solution to this would be to fetch merged PRs within the hour so that recently merged PRs are still included in the graph.

@tranhl tranhl added this to the v1.1 milestone Jun 10, 2024
@tranhl tranhl modified the milestones: v1.1, v1.0 Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant