Skip to content

test(agent): probar las reglas que deciden qué bounty reclama un PR (Closes #17) - #18

Open
bradwue313 wants to merge 1 commit into
odiseo159-beep:mainfrom
bradwue313:test/reglas-bounties-17
Open

bradwue313 wants to merge 1 commit into
odiseo159-beep:mainfrom
bradwue313:test/reglas-bounties-17

Conversation

@bradwue313

@bradwue313 bradwue313 commented Nov 6, 2026 •

Copy link
Copy Markdown

Closes #17

Añade agent/test/bounties.test.js usando node:test sin acceso a red (simulando fetch donde hace falta):

  • pointsAtRepo: acepta el mismo repositorio, rechaza prefijos como mergit-demo, rechaza otros dominios con la misma ruta y rechaza texto libre.
  • pointsAtIssue: no confunde #1 con #10 y trata el punto en el nombre del propietario o repositorio como carácter literal.
  • LINEA_BOUNTY: funciona con saltos de línea de Windows (\r\n), no salta a la línea siguiente e ignora menciones en mitad de una frase.
  • closedIssues: cubre todas las variantes de close, fix y resolve.
  • bountyForIssue: devuelve el único candidato vivo, explica cuando no hay ninguno, devuelve la ambigüedad cuando hay dos sin elegir el primero, y estrecha con funders.
  • logsOf: sigue next_page_params entre páginas y lanza cuando una página responde con error.

Wallet: 0x38e0f40371be8b30f0909f890a1f701a25cd30cd

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Not payable yet

A machine checked the two things that decide whether you can be paid. This is not a review of your code.

  • ❌ This pull request does not point at any bounty. This pull request closes Test the rules that decide which bounty a pull request claims #17, but no open bounty points at it. The surest way is a line saying Closes #N with the issue number: that one never changes, even when a bounty is refunded and funded again under a new number.
  • ✅ The agent can pay @bradwue313 at 0x38e0f40371be8b30f0909f890a1f701a25cd30cd, read from the README of bradwue313/bradwue313.

On a first pull request the CI waits for a maintainer to approve the workflow run, so a missing check here is not something you did wrong.

Read from GIWA Sepolia just now. The full record lives at https://www.mergit.xyz/p/bradwue313

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.

Test the rules that decide which bounty a pull request claims

1 participant