klinux / klinux/gocdnext

feat(triggers): when.paths PR changed-files adapters for GitLab + Bitbucket

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Go
Stars
7
Forks
3
Avg merge
2h 12m
Merged PRs (30d)
30

Description

Motivation

when.paths on pull_request events fails open on GitLab MRs and Bitbucket PRs (no files adapter) — only GitHub fetches the changed set. Same growth pattern as #11/#12: implement when a real GitLab/BB user appears, but track it.

Design

configsync.PRFiles gains gitlab (MR changes API) + bitbucket (diffstat API) arms using the same CredentialResolver; pagination caps mirror the GitHub arm (fail open past cap). Coverage delta baselines and check-status (#23) are the sibling parity gaps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at configsync.PRFiles and compare the existing GitHub arm, then inspect CredentialResolver and the provider APIs named in the issue: GitLab MR changes and Bitbucket diffstat. Implement the two provider arms with pagination caps matching GitHub and verify that when.paths no longer fails open when changed files can be fetched; preserve fail-open behavior past the cap.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, gitlab, go
Domain
backend, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.