Push a commit to and open a pull request on pyvideo/pyvideo when new data is merged into main

オープン
#1,184 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, github, github-actions
領域
ci-cd, devops

調査の方向性

Start with the merge-to-main trigger and the linked action-pull-request and action-commit-push examples. Verify the cross-repository branch, submodule update, push, and pull request flow, including a custom GitHub secret; done means data changes create or update the expected pull request while documentation-only changes are skipped.

索引モデルが issue の本文から書いたものです。

説明

The current process for updating data in the https://github.com/pyvideo/pyvideo repository (which is where the site is built and deployed from) is a manual update of the git submodule. This almost always follows the same automatable process of create a "fastforward-data-dir" branch -> update the data submodule -> open a pull request on pyvideo/pyvideo to preview changes. While this is not a large task, it's consistent enough that it's worth automating via GitHub Actions. A suitable workflow would look like the following steps triggered by a merge to main (skipping commits where the affected filepaths do not modify any of the site data, e.g. documentation-only changes):

  1. Create a "fastforward-data-directory" branch for pyvideo/pyvideo if one does not already exist, or fetch the existing branch if it does
  2. Update the data submodule to point to the new latest commit (i.e. the merge that triggers the workflow)
  3. Push the branch to the pyvideo/pyvideo repository
  4. Open a pull request if one does not already exist

There are several approaches that can be used for this task, including GitHub actions using the GitHub CLI or off the shelf actions like action-pull-request and action-commit-push. One GitHub limitation to note: a custom GitHub token must be used in order for a commit pushed by an action to trigger another action, so the implementation should support pulling that value from a GitHub secret (there are examples of this in the linked push and pull request actions).

主要言語
Python
スター
484
フォーク
288
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyvideo/data のほかの issue

pyvideo/data の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。