git-town / action

Visualizes your stacked changes when proposing pull requests on GitHub
https://www.git-town.com
MIT License
10 stars 2 forks source link

False error when PR is merged before action runs #13

Closed tranhl closed 2 weeks ago

tranhl commented 7 months ago

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 commented 6 months ago

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