Skip to content

Get the slack username of a Blue Ocean Ideas committer

Notifications You must be signed in to change notification settings

blueoceanideas/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/[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!

About

Get the slack username of a Blue Ocean Ideas committer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%