Repository navigation
ci(ci): GitHub Actions からのプルリクエスト作成を許可する - #243
Merged
Merged
Conversation
Allow PAT_TOKEN to create and auto-merge PRs when GITHUB_TOKEN is blocked. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply the same PAT_TOKEN fallback to sync-devices and refresh-devices. Co-authored-by: Cursor <cursoragent@cursor.com>
Explain the repo setting and optional PAT_TOKEN required to create sync PRs. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sync-example-upstreamsが Create Pull Request ステップでGitHub Actions is not permitted to create or approve pull requestsにより失敗していた問題を修正します。workflow の YAML 権限は既に足りていたため、任意のPAT_TOKENフォールバックを追加し、自動 PR 作成に必要なリポジトリ設定を文書化しました。Type of change
Related issues
What changed?
sync-example-upstreams/sync-devices/refresh-devicesの PR 作成・auto-merge にtoken: ${{ secrets.PAT_TOKEN || github.token }}を追加PAT_TOKENを文書化API / Compatibility
How to test
repoスコープの PAT をシークレットPAT_TOKENとして登録する。未設定でもGITHUB_TOKENにフォールバックするSync example upstreamsをworkflow_dispatchで再実行し、Create Pull Request ステップが成功することを確認するEnvironment (if relevant)
pnpm/action-setup@v4Checklist
Made with Cursor