Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
"contributions": [
"code"
]
},
{
"login": "mochaaP",
"name": "Zephyr Lykos",
"avatar_url": "https://avatars.githubusercontent.com/u/21154023?v=4",
"profile": "https://mochaa.ws/?utm_source=github_user",
"contributions": [
"code"
]
Comment on lines +99 to +107
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

LGTM: contributor added correctly; JSON remains valid.

Entry for mochaaP (Zephyr Lykos) looks consistent with existing records and All-Contributors expectations.

Run this quick check to ensure README and config stay in sync:


🏁 Script executed:

#!/bin/bash
set -euo pipefail
count="$(jq '.contributors | length' .all-contributorsrc)"
echo "contributors in .all-contributorsrc: $count"
badge="$(rg -nPo 'all_contributors-\K\d+' README.md | head -1)"
echo "badge count in README.md: $badge"
test "$badge" = "$count" || { echo "Mismatch between badge and contributors count"; exit 1; }
rg -n 'commits\?author=mochaaP' README.md >/dev/null || { echo "Missing mochaaP commit link in README"; exit 1; }
echo "OK"

Length of output: 438


Approve contributor addition; fix badge count extraction in verification script
JSON update is correct and mochaaP (Zephyr Lykos) is added as expected. Update the README-sync check to drop the -n flag so rg returns only the number, not line:match:

#!/bin/bash
set -euo pipefail
count="$(jq '.contributors | length' .all-contributorsrc)"
echo "contributors in .all-contributorsrc: $count"
badge="$(rg -Po 'all_contributors-\K\d+' README.md | head -1)"
echo "badge count in README.md: $badge"
test "$badge" = "$count" || { echo "Mismatch between badge and contributors count"; exit 1; }
rg -q 'commits\?author=mochaaP' README.md || { echo "Missing mochaaP commit link in README"; exit 1; }
echo "OK"
🤖 Prompt for AI Agents
In .all-contributorsrc around lines 99 to 107, the README-sync verification
script extracts the badge count with ripgrep using a flag that returns
line:match; update the command to drop the -n flag and use an output-only match
(e.g., rg -Po or rg --only-matching) and pipe to head -1 so it yields just the
numeric badge, then compare that numeric badge to the jq-derived contributors
count and keep the existing README link check for mochaaP.

}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)
[![reviewdog](https://github.com/nao1215/gup/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/nao1215/gup/actions/workflows/reviewdog.yml)
Expand Down Expand Up @@ -236,6 +236,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="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/Akimon658"><img src="https://avatars.githubusercontent.com/u/81888693?v=4?s=100" width="100px;" alt="Akimo"/><br /><sub><b>Akimo</b></sub></a><br /><a href="https://github.com/nao1215/gup/commits?author=Akimon658" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="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/rkscv"><img src="https://avatars.githubusercontent.com/u/155284493?v=4?s=100" width="100px;" alt="rkscv"/><br /><sub><b>rkscv</b></sub></a><br /><a href="https://github.com/nao1215/gup/commits?author=rkscv" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="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/scop"><img src="https://avatars.githubusercontent.com/u/109152?v=4?s=100" width="100px;" alt="Ville Skyttä"/><br /><sub><b>Ville Skyttä</b></sub></a><br /><a href="https://github.com/nao1215/gup/commits?author=scop" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://mochaa.ws/?utm_source=github_user"><img src="https://avatars.githubusercontent.com/u/21154023?v=4?s=100" width="100px;" alt="Zephyr Lykos"/><br /><sub><b>Zephyr Lykos</b></sub></a><br /><a href="https://github.com/nao1215/gup/commits?author=mochaaP" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
Loading