slack-github-action icon indicating copy to clipboard operation
slack-github-action copied to clipboard

Support user-id syntax

Open srajiang opened this issue 4 years ago • 0 comments

Description

As suggested in #41, this action could support the following syntax of user-id for improved clarity. Currently channel-id accepts either a Slack CHANNEL_ID or USER_ID.

- name: Post to a Slack channel
  id: slack
  uses: slackapi/[email protected]
  with:
    user-id: 'USER_ID' # currently channel-id field accepts either CHANNEL_ID or USER_ID
    slack-message: 'posting from a github action!'
  env:
    SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

Related to

What type of issue is this? (place an x in one of the [ ])

  • [ ] bug
  • [x] enhancement (feature request)
  • [ ] question
  • [ ] documentation related
  • [ ] example code related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version:

node version:

OS version(s):

Steps to reproduce:

Expected result:

What you expected to happen

Actual result:

What actually happened

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

srajiang avatar Dec 13 '21 21:12 srajiang