Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 991 Bytes

readme.md

File metadata and controls

27 lines (20 loc) · 991 Bytes

Slack committer action

This action transforms the committer of the current commit into a slack friendly @name so the Spatie team member will be mentioned. When a non-Spatie member commits, the action will use the committers GitHub username.

Example usage

-   name: Resolve slack committer
    id: slack-committer
    uses: spatie/[email protected]

Later in your workflow:

-   name: Slack Notification
    uses: rtCamp/action-slack-notify@master
    env:
        SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
        SLACK_MESSAGE: "You should fix this: ${{ steps.slack-committer.outputs.username }}"

Adding a new team member

You can add a new team member by updating the index.js file. You'll need a Slack user id next to the name of the team member, that id can be found as such. Don't forget to commit the action with the new member and tag a new release!