Skip to content
play

GitHub Action

get-pr-commits

v1.3.1 Latest version

get-pr-commits

play

get-pr-commits

A GitHub Action that get commits in current pull-request

Installation

Copy and paste the following snippet into your .yml file.

              

- name: get-pr-commits

uses: tim-actions/[email protected]

Learn more about this action in tim-actions/get-pr-commits

Choose a version

get-pr-commits

A GitHub Action that get commits in current pull-request

Usage

Add .github/workflows/sanity-check.yml with the following:

name: Sanity check
on: [pull_request]

jobs:
  commits_check_job:
    runs-on: ubuntu-latest
    name: Commits Check
    steps:
    - name: Get PR Commits
      id: 'get-pr-commits'
      uses: tim-actions/get-pr-commits@master
      with:
        token: ${{ secrets.GITHUB_TOKEN }}