Skip to content

spatie/slack-committer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/slack-committer@1.1.0

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!