Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Oct 24, 2022
0 parents commit 16b00d7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
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
4 changes: 4 additions & 0 deletions README.md
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.
11 changes: 11 additions & 0 deletions action.yml
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
7 changes: 7 additions & 0 deletions container/cmd
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

0 comments on commit 16b00d7

Please sign in to comment.