Skip to content

Conversation

@NDB-7
Copy link

@NDB-7 NDB-7 commented Jan 8, 2026

For issue #16

(NOTE: In development mode, we'll assume we're currently on main)

Steps to test

  1. Ensure config.yml monitors a branch different than the one we are on in the directory. (My machine's current branch is branch-comparison.) Here is my config.yml, for example:
repos:
  - name: sce-cicd
    branch: main
    path: /Users/nathan/Desktop/Programming/SCE/sce-cicd
  1. Run python server.py
  2. Trigger a webhook event with curl (Replace WEBHOOK_URL)
curl -X POST WEBHOOK_URL \
  -H "Content-Type: application/json" \
  -H "X-GitHub-Event: push" \
  -d '{
    "ref": "refs/heads/main",
    "repository": {
      "name": "sce-cicd"
    }
  }'

Logs

Different Branch

Command line output:
image
Curl command response:
{"status":"current branch branch-comparison does not match updated branch main on repo sce-cicd"}
Discord embed output:
image

Same Branch

(NOTE: I changed main in the config and curl command to branch-comparison)
Command line output:
image
Curl command response:
{"status":"webhook received"}
Discord embed output:
image

@wesleywong-bear
Copy link

please add test logs to the PR description and verify it works, looks good tho ty

@NDB-7 NDB-7 force-pushed the branch-comparison branch from d60448b to 0a12279 Compare January 9, 2026 05:20
Copy link

@wesleywong-bear wesleywong-bear left a comment

Choose a reason for hiding this comment

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

get rid of the useless comments, lgtm

@NDB-7 NDB-7 force-pushed the branch-comparison branch from 0a12279 to e44379f Compare January 10, 2026 00:16
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.

2 participants