Commit 0a0fb233 authored by Kevin Daudt's avatar Kevin Daudt

overlay: add script that reports changed APKBUILDs

parent abd0966b
Pipeline #128 passed with stage
in 19 seconds
# TODO: change to alpinelinux/docker-cli
image: kdaudt/docker-cli:add-auxilary-scripts
image: alpinelinux/docker-cli:latest
stages:
- build
- upload
......
......@@ -14,3 +14,8 @@ Docker container with the necessary linting tools for verifying APKBUILD files
and 'uses' them so that shellcheck does not warn about them, while still
warning about other variables. It also disables some checks that are not
applicable for APKBUILDs.
## Auxilary scripts
* **changed-aports** - Returns a list of changed APKBUILD files in a certain
branch, give a base branch: `changed-aports <basebranch>`.
#!/bin/sh
basebranch=$1
if ! git rev-parse --verify --quiet $basebranch >/dev/null; then
# The base branch does not eixst, probably due to a shallow clone
git fetch origin refs/heads/$basebranch:refs/heads/$basebranch
fi
git diff --diff-filter=ACMR --name-only $baebranch...HEAD -- "*/APKBUILD"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment