This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
-
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.
Merge pull request #7 from KevinDeJong-TomTom/check-pull-request-title
feat: check pull request title
- Loading branch information
Showing
4 changed files
with
84 additions
and
71 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
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 |
---|---|---|
@@ -1,53 +1,53 @@ | ||
=============================================================== | ||
Check your commits against Conventional Commits using Commisery | ||
=============================================================== | ||
|
||
Using this GitHub action, scan your commits in your Pull Request against the `Conventional Commits`_ standard | ||
using `Commisery`_ | ||
|
||
.. _`Conventional Commits`: https://www.conventionalcommits.org/en/v1.0.0/ | ||
.. _`Commisery`: https://pypi.org/project/commisery/ | ||
|
||
Usage | ||
----- | ||
|
||
The workflow, usually declared in `.github/workflows/build.yml`, looks like: | ||
|
||
.. code-block:: yaml | ||
name: Commisery | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
commit-message: | ||
name: Conventional Commit Message Checker (Commisery) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check-out the repo under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v2 | ||
with: | ||
# ensure we retrieve the full history as we need to check all commits in the provided Pull Request | ||
fetch-depth: 0 | ||
- name: Run Commisery | ||
uses: KevinDeJong-TomTom/commisery-action@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pull_request: ${{ github.event.number }} | ||
Inputs | ||
^^^^^^ | ||
|
||
- **token**: GitHub Token provided by GitHub, see `Authenticating with the GITHUB_TOKEN`_ | ||
- **pull_request**: Pull Request number, provided by the `GitHub context`_. | ||
|
||
.. _`Authenticating with the GITHUB_TOKEN`: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token | ||
.. _`GitHub context`: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context | ||
|
||
|
||
Example of Conventional Commit check results | ||
-------------------------------------------- | ||
|
||
.. image:: resources/example.png | ||
=============================================================== | ||
Check your commits against Conventional Commits using Commisery | ||
=============================================================== | ||
|
||
Using this GitHub action, scan your Pull Request title and all commits in your Pull Request against | ||
the `Conventional Commits`_ standard using `Commisery`_ | ||
|
||
.. _`Conventional Commits`: https://www.conventionalcommits.org/en/v1.0.0/ | ||
.. _`Commisery`: https://pypi.org/project/commisery/ | ||
|
||
Usage | ||
----- | ||
|
||
The workflow, usually declared in `.github/workflows/build.yml`, looks like: | ||
|
||
.. code-block:: yaml | ||
name: Commisery | ||
on: | ||
pull_request: | ||
types: [edited, opened, synchronize, reopened] | ||
jobs: | ||
commit-message: | ||
name: Conventional Commit Message Checker (Commisery) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check-out the repo under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v2 | ||
with: | ||
# ensure we retrieve the full history as we need to check all commits in the provided Pull Request | ||
fetch-depth: 0 | ||
- name: Run Commisery | ||
uses: KevinDeJong-TomTom/commisery-action@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pull_request: ${{ github.event.number }} | ||
Inputs | ||
^^^^^^ | ||
|
||
- **token**: GitHub Token provided by GitHub, see `Authenticating with the GITHUB_TOKEN`_ | ||
- **pull_request**: Pull Request number, provided by the `GitHub context`_. | ||
|
||
.. _`Authenticating with the GITHUB_TOKEN`: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token | ||
.. _`GitHub context`: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context | ||
|
||
|
||
Example of Conventional Commit check results | ||
-------------------------------------------- | ||
|
||
.. image:: resources/example.png |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.