-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 942 Bytes
/
git-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
#
# .github/workflows/git-pr.yml
#
name: Git PR Checks
on: [pull_request] # yamllint disable-line rule:truthy
defaults:
run:
shell: bash
jobs:
block-fixup:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
id: checkout-repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Block Fixup Commit Merge
id: block-if-contains-fixups
uses: 13rac1/[email protected]
- name: Show Git Version
id: git-version
run: |
git --version
- name: Get File Diff
id: git-file-diff
run: |
git diff --name-only HEAD^..
- name: Get Log Diff
id: git-log-diff
run: |-
git log --color=auto --graph --pretty=format:'%Cred%<(8)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an> [%ce] %Creset%C(cyan)[gpg: %G?]%Creset' --abbrev-commit --decorate HEAD^..