anthropics / anthropics/claude-code-action

Proposal for Pull Request fetch method

Aperta
#663 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:installation enhancement p3
Lingua principale
TypeScript
Stelle
8.9k
Fork
2.1k
Merge medio
3g 9h
PR unite (30g)
10

Descrizione

It appears the existing branch fetch method has implementation limitations when using GitHub's Fork & Pull strategy.

Currently, the process attempts to fetch the forked branch from origin. As a result, if a PR is created from a branch that exists only on the fork (and not on origin), an error occurs because the ref cannot be found in origin.

How about we change the fetch method to use the hidden ref, to improve this so it works well with the Fork & Pull strategy?

The example is as follows:
https://github.com/kuckjwi0928/claude-code-action/commit/7a6b6a0514316a03ff643f9355e696cdb76d6200

If my understanding is incorrect, I would appreciate it if you could provide a setup guide for the Fork & Pull strategy.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.