The contributor page links to an org-wide PR search instead of the program's repos

クローズ 初心者向け
#101 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, typescript

調査の方向性

src/index.tsの324行目付近にあるリンクの構築を読み、そのクエリをsrc/github.tsの123~131行目付近にあるsearchMergedPrsと比較してください。test/card.test.tsのコントリビューターカードのテストを更新し、独自のreposリストを持つプログラムを対象にしてください。リンクがプログラムのリポジトリを使用し、作成者、ラベル、日付の各フィルターを維持したうえで、型チェックとテストが通れば完了です。

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

説明

bug good first issue hacktoberfest

On a contributor card page, "See 's merged pull requests on GitHub" links to a GitHub search built with org:codercops (src/index.ts, line 324). The number on the card comes from searchMergedPrs (src/github.ts, line 123), which only searches the program's repos (repo:codercops/<repo> for each one, line 131). So the link can list PRs the card didn't count. For a program with its own repos list it always does, and for the current one it would as soon as another codercops repo gets a labeled PR.

What to do

  • Build the link's query from program.repos the same way searchMergedPrs does, instead of org:.

Where to look

  • src/index.ts, line 324, and src/github.ts, lines 123 to 131
  • test/card.test.ts: the expected search string at line 317 needs updating, and a case with a program that sets its own repos would cover the fix

Acceptance criteria

  • The link searches only the program's repos, with the same author, label and dates as now
  • Tests that fail on the current code
  • npm run typecheck and npm test pass

Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off develop, and open your PR against develop with Closes #101 in the description.

主要言語
TypeScript
スター
0
フォーク
1
平均マージ
6時間 29分
マージ済み PR(30日)
76

環境構築

はじめの一歩

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

codercops/discord-bot のほかの issue

codercops/discord-bot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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