-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 16b00d7
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM registry.fedoraproject.org/fedora:36 | ||
|
||
MAINTAINER copr-team@redhat.com | ||
|
||
RUN dnf -y install dnf-plugins-core && \ | ||
dnf -y copr enable @copr/vcs-diff-lint && \ | ||
dnf install -y vcs-diff-lint git && \ | ||
dnf clean all | ||
|
||
COPY container/ / | ||
|
||
CMD /cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GitHub Action for differential code linting | ||
=========================================== | ||
|
||
This action is built on top of [VCS Diff Lint][https://github.com/fedora-copr/vcs-diff-lint] tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: VCS Diff Lint | ||
description: Differential code linting action | ||
|
||
branding: | ||
icon: check-circle | ||
color: blue | ||
|
||
runs: | ||
using: docker | ||
image: quay.io/copr/vcs-diff-lint:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/bash -ex | ||
|
||
git config --global --add safe.directory '*' | ||
git config --global advice.detachedHead false | ||
git fetch origin main:main | ||
test -n "$SUBDIR" || cd "$SUBDIR" | ||
exec vcs-diff-lint --print-fixed-errors |