Skip to content

PDF作成CI: PRにコンフリクトがある場合は実行をスキップする#293

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-pdf-generation-control
Draft

PDF作成CI: PRにコンフリクトがある場合は実行をスキップする#293
Copilot wants to merge 2 commits intomainfrom
copilot/fix-pdf-generation-control

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 13, 2026

コンフリクトのあるPRでもPDF生成が実行され、差分なしのPDFが作成される問題を修正。

Changes

  • check-mergeable ジョブを追加: GitHub APIでPRのマージ可否を確認し、結果を後続ジョブに渡す
    • mergeablenull(GitHub側で計算中)の場合、最大5回・10秒間隔でリトライ
    • 既存のフォーク/ラベル判定をこのジョブに移動
  • build-and-attach-pdf-on-pr ジョブを check-mergeable に依存させる: mergeable == 'true' のときのみ実行
jobs:
  check-mergeable:
    outputs:
      mergeable: ${{ steps.check.outputs.mergeable }}
    steps:
      - name: Check if PR is mergeable
        # retries up to 5x if null (GitHub still computing)

  build-and-attach-pdf-on-pr:
    needs: check-mergeable
    if: needs.check-mergeable.outputs.mergeable == 'true'
Original prompt

This section details on the original issue you should resolve

<issue_title>PDF作成CIの実行制御</issue_title>
<issue_description>## 問題点

改善

  • コンフリクトなどがあったら、実行を停止する
    </issue_description>

<agent_instructions>build-and-attach-pdf-on-pr.yml を修正して、PRでコンフリクトなど問題があるときは、このactionsの実行をスキップするようにしてください</agent_instructions>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: mitsuharu <296276+mitsuharu@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix PDF creation CI execution control on conflicts PDF作成CI: PRにコンフリクトがある場合は実行をスキップする Mar 13, 2026
Copilot AI requested a review from mitsuharu March 13, 2026 09:00
@mitsuharu mitsuharu removed their request for review March 18, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PDF作成CIの実行制御

2 participants