[Dev] restriction on PR title is too tight

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
ci-cd

調査の方向性

失敗しているチェックは、トレースバックに表示されている Python スクリプト check_pull_request.py です。まずリポジトリを grep して、エラー文字列 Missing backticks around command と Missing backticks around parameter を探してください。任意の az ... 部分文字列をコマンドとして、任意の --... トークンをパラメータとして扱う検出ロジックを読み、その後、issue の 2 つのタイトルで再現してください。完了とは、両方のタイトルが通り、本当にバッククォートで囲まれていないコマンドは引き続きフラグ付けされることを意味します。なお、issue にはスクリプトのパスもそのテストも記載されていません。

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

説明

bug
Affected surface

Not sure

Describe the bug
Case 1

When I submit a PR whose title contains the keyword "az", the check fails with confusing errors:

PR: {Docs} Improve switch-az output readability- #1287
Pipeline: https://dev.azure.com/azclitools/public/_build/results?buildId=370670&view=logs&jobId=dd6bd82c-8cac-553f-9b79-abbf83f407fa&j=dd6bd82c-8cac-553f-9b79-abbf83f407fa&t=902e66f9-945c-5b2c-c893-47d3561d6897

ERROR: Missing backticks around command 'az output readability' in: {Docs} Improve switch-az output readability
ERROR: Missing closing backtick around command 'az output readability' in: {Docs} Improve switch-az output readability
Start pull request title and history note validation.
Check pull request title and history notes: #1287
{Docs} Improve switch-az output readability
Traceback (most recent call last):
  File "<stdin>", line 164, in <module>
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['python3', '/mnt/vss/_work/_temp/check_pull_request.py', '{Docs} Improve switch-az output readability']' returned non-zero exit status 1.


Case 2

PR https://github.com/Azure/azclips/pull/1340 has this in history notes section of PR description

[Auth] BREAKING CHANGE: `az login --identity` / `Connect-AzAccount -Identity`: Require a subscription ID supplied explicitly or inherited from the current profile

and got the following error

ERROR: Missing backticks around parameter '--identity`' in: [Auth] BREAKING CHANGE: `az login --identity` / `Connect-AzAccount -Identity`: Require a subscription ID supplied explicitly or inherited from the current profile
Related command
N/A
Steps to reproduce

N/A

Errors & debug output
N/A
Expected behavior

Check passes

Environment
N/A
Additional context

No response

主要言語
C#
スター
18
フォーク
10
平均マージ
1日 20時間
マージ済み PR(30日)
157

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

Azure/azclips のほかの issue

Azure/azclips の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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