Repository navigation
fix: 読み取りトークンでのマージ方式取得を修正 - #28
Merged
Merged
Conversation
Contributor
PR Reviewer Guide 🔍(Review updated until commit b239db3)Here are some key observations to aid the review process:
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Contributor
|
Persistent review updated to latest commit b239db3 |
Contributor
PR Code Suggestions ✨No code suggestions found for the PR. |
|
Merged
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.



User description
修正内容
Dependabot の tagpr 更新がテストを通過しても、
No merge method is enabledで停止していました。読み取り専用 GITHUB_TOKEN で取得した REST のリポジトリ情報ではallow_*設定が省略されるため、未取得を無効と判定していました。マージ方式を GraphQL の
mergeCommitAllowed/squashMergeAllowed/rebaseMergeAllowedで取得します。設定を取得できない場合と、すべて無効な場合を区別します。権限追加はありません。マージ処理は引き続き既存Appと検証済みSHAを使用します。検証
失敗した実行: https://github.com/monitoring-forge/github-common/actions/runs/37790685455/job/113356948389
マージ後は対象Dependabot PRのテストを再実行すると、最新の自動マージワークフローで判定されます。他リポジトリには通常のリリース・同期PR経由で反映します。
PR Type
Bug fix, Tests
Description
Query merge settings through read-only GraphQL access.
Distinguish missing settings from disabled methods.
Test merge selection and live token access.
Diagram Walkthrough
File Walkthrough
dependabot-auto-merge.yml
Select enabled merge methods using GraphQL settings.github/workflows/dependabot-auto-merge.yml
read-only tokens.
test.yml
Enable conditional live merge settings verification.github/workflows/test.yml
pushes.
dependabot-auto-merge.test.cjs
Cover GraphQL merge selection and token accesstests/dependabot-auto-merge.test.cjs
merges.