Thanks to visit codestin.com
Credit goes to github.com

Skip to content

moved to a webhook#13836

Merged
sayakpaul merged 2 commits into
huggingface:mainfrom
tarekziade:tarek-webhook
Jun 1, 2026
Merged

moved to a webhook#13836
sayakpaul merged 2 commits into
huggingface:mainfrom
tarekziade:tarek-webhook

Conversation

@tarekziade

@tarekziade tarekziade commented May 29, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Moves the serge bot into using the github app deployed on our infra

@github-actions github-actions Bot added CI size/M PR with diff < 200 LOC labels May 29, 2026

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have configured the secrets.

SIG="sha256=$(openssl dgst -sha256 -hmac "${WEBHOOK_SECRET}" payload.json | awk '{print $NF}')"

- name: Strip fork-supplied reviewer/agent config
# ai-reviewer fetches its config (.ai/review-rules.md, .ai/review-tools.json,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How does it get fetched then? It's important that these files always get fetched from the upstream main.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

exactly like the github action : the repo is cloned in the githubapp server and it reads it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For review rules, we always use upstream main right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no we may use the forked / PR one. I can change that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

correction: it is the case, but we do get the context-script from the PR/fork, which is a big issue. Fixing

Comment on lines -62 to -66
llm_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
llm_api_base: https://api.anthropic.com
llm_model: claude-opus-4-6
llm_stream: 'true'
mention_trigger: '@askserge'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How do we configure these things?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

in the admin UI. the webook then picks the right now depending on what org/repo calls the service

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good to merge after the conflicts are resolved. Excited to try it out.

@tarekziade tarekziade self-assigned this Jun 1, 2026
@sayakpaul sayakpaul merged commit 07de1f6 into huggingface:main Jun 1, 2026
19 checks passed
@tarekziade tarekziade deleted the tarek-webhook branch June 1, 2026 06:43
DN6 pushed a commit that referenced this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/M PR with diff < 200 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants