Skip to content

Add workflow to detect AI PRs - #1049

Merged
tomkralidis merged 2 commits into
geopython:masterfrom
doublebyte1:uncover-agent
Oct 20, 2026
Merged

tomkralidis merged 2 commits into
geopython:masterfrom
doublebyte1:uncover-agent

Conversation

@doublebyte1

Copy link
Copy Markdown
Contributor

This PR introduces a workflow, that uses a classifier to tag a PR as "human generated", or "AI generated".

The classifier is a script from the geoamish organisation; it is kept private for practical reasons, but get in touch if you would like to know more about it.

The script analyses a series of signals, to come up with a likelihood of a PR having been generated by a human (<0.6) or an agent (>0.8); if it cannot make a reasoning, it will come up with no label.

Please check this pygeoapi issue, for more context on what motivated this PR.

Important Information

  • The labels "human generated" and "AI generated" need to be pre-created in the repository.
  • Because it is cloning a private repo on codeberg, this script requires a CODEBERG_TOKEN, to be added as a GitHub Secret on the pygeoapi repository.

@tomkralidis
tomkralidis merged commit fca01d4 into geopython:master Oct 20, 2026
0 of 3 checks passed
pull_request:
branches:
- master
- uncover-agent # We can remove this later

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@doublebyte1 shouldnt this be removed?

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.

3 participants