Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user-id syntax #41

Closed
4 of 10 tasks
srajiang opened this issue Dec 13, 2021 · 1 comment
Closed
4 of 10 tasks

Support user-id syntax #41

srajiang opened this issue Dec 13, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@srajiang
Copy link
Contributor

srajiang commented Dec 13, 2021

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/slack-github-action@v1.16.0
  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
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion

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

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • 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 srajiang added the enhancement New feature or request label Dec 13, 2021
@zimeg zimeg added this to the 2.0 milestone Nov 15, 2024
@zimeg
Copy link
Member

zimeg commented Nov 15, 2024

🙏 Closing in favor of using chat.postMessage to send a DM, released with @2.0.0:

- name: Send a direct message
  uses: slackapi/slack-github-action@v2.0.0
  with:
    method: chat.postMessage
    token: ${{ secrets.SLACK_BOT_TOKEN }}
    payload: |
      channel: ${{ secrets.SLACK_USER_ID }}
      text: "Sending all the best"

@zimeg zimeg closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants