← Slack (legacy) + GitHub integrations

Create Issue Comment with GitHub API on New Direct Message (Instant) from Slack (legacy) API

Pipedream makes it easy to connect APIs for GitHub, Slack (legacy) and 3,000+ other apps remarkably fast.

Trigger workflow on
New Direct Message (Instant) from the Slack (legacy) API
Next, do this
Create Issue Comment with the GitHub API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Slack (legacy) trigger and GitHub action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Direct Message (Instant) trigger
    1. Connect your Slack (legacy) account
    2. Configure slackApphook
    3. Optional- Configure Ignore Bots
    4. Optional- Configure Ignore Messages from Yourself
  3. Configure the Create Issue Comment action
    1. Connect your GitHub account
    2. Select a Repository
    3. Select a Issue Number
    4. Configure Body
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a message was posted in a direct message channel
Version:1.0.23
Key:slack-new-direct-message

Slack (legacy) Overview

The Pipedream app for Slack enables you to build event-driven workflows that interact with the Slack API. Once you authorize the app's access to your workspace, you can use Pipedream workflows to perform common Slack actions or write your own code against the Slack API.

The Pipedream app for Slack is not a typical app. You don't interact with it directly as a bot, and it doesn't add custom functionality to your workspace out of the box. It makes it easier to automate anything you'd typically use the Slack API for, using Pipedream workflows.

  • Automate posting updates to your team channels
  • Create a bot to answer common questions
  • Integrate with your existing tools and services
  • And much more!

Trigger Code

import common from "../common/base.mjs"; import sampleEmit from "./test-event.mjs"; export default { ...common, key: "slack-new-direct-message", name: "New Direct Message (Instant)", version: "1.0.23", description: "Emit new event when a message was posted in a direct message channel", type: "source", dedupe: "unique", props: { ...common.props, // eslint-disable-next-line pipedream/props-description,pipedream/props-label slackApphook: { type: "$.interface.apphook", appProp: "slack", async eventNames() { return [ "message.im", ]; }, }, ignoreBot: { propDefinition: [ common.props.slack, "ignoreBot", ], }, ignoreSelf: { type: "boolean", label: "Ignore Messages from Yourself", description: "Ignores messages sent to yourself", default: false, optional: true, }, }, methods: { ...common.methods, getSummary() { return "New direct message received"; }, processEvent(event) { if ((this.ignoreSelf && event.user == this.slack.mySlackId()) || ((this.ignoreBot) && (event.subtype === "bot_message" || event.bot_id)) || (event.subtype === "message_changed")) { return; } return event; }, }, sampleEmit, }; 

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Slack (legacy)slackappThis component uses the Slack (legacy) app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
slackApphook$.interface.apphook
Ignore BotsignoreBotboolean

Ignore messages from bots

Ignore Messages from YourselfignoreSelfboolean

Ignores messages sent to yourself

Trigger Authentication

Slack (legacy) uses OAuth authentication. When you connect your Slack (legacy) account, Pipedream will open a popup window where you can sign into Slack (legacy) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Slack (legacy) API.

Pipedream requests the following authorization scopes when you connect your account:

channels:historychannels:readchannels:writeemoji:readgroups:historygroups:readgroups:writeim:historyim:readim:writelinks:readlinks:writempim:historympim:readmpim:writereactions:readreactions:writereminders:readreminders:writestars:readteam:readusergroups:readusergroups:writeusers:readusers:read.emailusers:writechat:write:botchat:write:userfiles:write:userfiles:readcommandsusers.profile:writeusers.profile:readsearch:read

About Slack (legacy)

Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.

Action

Description:Create a new comment in a issue. [See the documentation](https://docs.github.com/en/rest/issues/comments#create-an-issue-comment)
Version:0.0.23
Key:github-create-issue-comment

GitHub Overview

The GitHub API is a powerful gateway to interaction with GitHub's vast web of data and services, offering a suite of endpoints to manipulate and retrieve information on repositories, pull requests, issues, and more. Harnessing this API on Pipedream, you can orchestrate automated workflows that respond to events in real-time, manage repository data, streamline collaborative processes, and connect GitHub with other services for a more integrated development lifecycle.

Action Code

import github from "../../github.app.mjs"; export default { key: "github-create-issue-comment", name: "Create Issue Comment", description: "Create a new comment in a issue. [See the documentation](https://docs.github.com/en/rest/issues/comments#create-an-issue-comment)", version: "0.0.23", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props: { github, repoFullname: { propDefinition: [ github, "repoFullname", ], }, issueNumber: { label: "Issue Number", description: "The number that identifies the issue.", type: "integer", propDefinition: [ github, "issueNumber", (c) => ({ repoFullname: c.repoFullname, }), ], }, body: { label: "Body", description: "The contents of the comment", type: "string", }, }, async run({ $ }) { const response = await this.github.createIssueComment({ repoFullname: this.repoFullname, issueNumber: this.issueNumber, data: { body: this.body, }, }); $.export("$summary", "Successfully commented in the issue."); return response; }, }; 

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
GitHubgithubappThis component uses the GitHub app.
RepositoryrepoFullnamestringSelect a value from the drop down menu.
Issue NumberissueNumberintegerSelect a value from the drop down menu.
Bodybodystring

The contents of the comment

Action Authentication

GitHub uses OAuth authentication. When you connect your GitHub account, Pipedream will open a popup window where you can sign into GitHub and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any GitHub API.

Pipedream requests the following authorization scopes when you connect your account:

reporead:orgadmin:org_hookgistprojectnotificationsread:userwrite:discussionadmin:repo_hook

About GitHub

Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.

More Ways to Connect GitHub + Slack (legacy)

Create Issue with GitHub API on New Message In Channels (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Search Issues and Pull Requests with GitHub API on New Message In Channels (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Create Issue Comment with GitHub API on New Message In Channels (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Get Repository Info with GitHub API on New Message In Channels (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Update Issue with GitHub API on New Message In Channels (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Create Issue with GitHub API on New Direct Message (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Get Repository Info with GitHub API on New Direct Message (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Search Issues and Pull Requests with GitHub API on New Direct Message (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Update Issue with GitHub API on New Direct Message (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Create Issue Comment with GitHub API on New Mention (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
Create Issue with GitHub API on New Mention (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
Get Repository with GitHub API on New Mention (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
Search Issues and Pull Requests with GitHub API on New Mention (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
Update Issue with GitHub API on New Mention (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
Create Issue Comment with GitHub API on New Reaction Added (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Create Issue with GitHub API on New Reaction Added (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Get Repository Info with GitHub API on New Reaction Added (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Search Issues and Pull Requests with GitHub API on New Reaction Added (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Update Issue with GitHub API on New Reaction Added (Instant) from Slack (legacy) API
Slack (legacy) + GitHub
 
Try it
Create Issue Comment with GitHub API on New Star Added (Instant) from Slack API
Slack (legacy) + GitHub
 
Try it
New Message In Channels (Instant) from the Slack (legacy) API

Emit new event when a new message is posted to one or more channels

 
Try it
New Channel Created (Instant) from the Slack (legacy) API

Emit new event when a new channel is created.

 
Try it
New Direct Message (Instant) from the Slack (legacy) API

Emit new event when a message was posted in a direct message channel

 
Try it
New Interaction Events (Instant) from the Slack (legacy) API

Emit new events on new Slack interactivity events sourced from Block Kit interactive elements, Slash commands, or Shortcuts

 
Try it
New Keyword Mention (Instant) from the Slack (legacy) API

Emit new event when a specific keyword is mentioned in a channel

 
Try it
New Reaction Added (Instant) from the Slack (legacy) API

Emit new event when a member has added an emoji reaction to a message

 
Try it
New Saved Message (Instant) from the Slack (legacy) API

Emit new event when a message is saved. Note: The endpoint is marked as deprecated, and Slack might shut this off at some point down the line.

 
Try it
New User Added (Instant) from the Slack (legacy) API

Emit new event when a new member joins a workspace.

 
Try it
New User Mention (Instant) from the Slack (legacy) API

Emit new event when a username or specific keyword is mentioned in a channel

 
Try it
New Branch Created from the GitHub API

Emit new event when a branch is created.

 
Try it
New Card in Column (Classic Projects) from the GitHub API

Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status trigger. More information here

 
Try it
New Collaborator from the GitHub API

Emit new event when a collaborator is added

 
Try it
New Commit from the GitHub API

Emit new event when commits are pushed to a branch

 
Try it
New Commit Comment from the GitHub API

Emit new event when a commit comment is created

 
Try it
New Discussion from the GitHub API

Emit new event when a discussion is created

 
Try it
New Fork from the GitHub API

Emit new event when a repository is forked

 
Try it
New Gist from the GitHub API

Emit new events when new gists are created by the authenticated user. See the documentatoion

 
Try it
New Issue Comment from the GitHub API

Emit new event when a new comment is added to an issue or pull request

 
Try it
New Label from the GitHub API

Emit new event when a new label is created

 
Try it
New Mention from the GitHub API

Emit new event when you are @mentioned in a new commit, comment, issue or pull request. See the documentation

 
Try it
New Notification from the GitHub API

Emit new event when the authenticated user receives a new notification. See the documentation

 
Try it
New or Updated Issue from the GitHub API

Emit new events when an issue is created or updated

 
Try it
New or Updated Milestone from the GitHub API

Emit new event when a milestone is created or updated

 
Try it
New or Updated Pull Request from the GitHub API

Emit new event when a pull request is opened or updated

 
Try it
New Organization from the GitHub API

Emit new event when the authenticated user is added to a new organization. See the documentation

 
Try it
New release from the GitHub API

Emit new event when a new release is created

 
Try it
New Repository from the GitHub API

Emit new event when a new repository is created or when the authenticated user receives access. See the documentation

 
Try it
New Review Request from the GitHub API

Emit new event for new review request notifications. See the documentation

 
Try it
New Security Alert from the GitHub API

Emit new event for security alert notifications. See the documentation

 
Try it
New Star By User from the GitHub API

Emit new events when the specified user stars a repository. See the documentation

 
Try it
New Stars from the GitHub API

Emit new event when a repository is starred

 
Try it
New Team from the GitHub API

Emit new event when the authenticated user is added to a new team. See the documentation

 
Try it
New Webhook Event (Instant) from the GitHub API

Emit new event for each selected event type

 
Try it
New Workflow Job Completed (Instant) from the GitHub API

Emit new event when a job in a workflow is completed, regardless of whether the job was successful or unsuccessful.

 
Try it
New Workflow Run Completed (Instant) from the GitHub API

Emit new event when a Github Actions workflow run completes

 
Try it
Project Item Status Changed from the GitHub API

Emit new event when a project item is tagged with a specific status. Currently supports Organization Projects only. More information here

 
Try it
Send Message to Channel with the Slack (legacy) API

Send a message to a public or private channel. See the documentation

 
Try it
Send Message with the Slack (legacy) API

Send a message to a user, group, private channel or public channel. See the documentation

 
Try it
Build and Send a Block Kit Message with the Slack (legacy) API

Configure custom blocks and send to a channel, group, or user. See the documentation

 
Try it
Reply to a Message Thread with the Slack (legacy) API

Send a message as a threaded reply. See postMessage or scheduleMessage docs here

 
Try it
Send Message to User or Group with the Slack (legacy) API

Send a message to a user or group. See the documentation

 
Try it
Add Emoji Reaction with the Slack (legacy) API

Add an emoji reaction to a message. See the documentation

 
Try it
Approve Workflow with the Slack (legacy) API

Suspend the workflow until approved by a Slack message. See the documentation

 
Try it
Archive Channel with the Slack (legacy) API

Archive a channel. See the documentation

 
Try it
Create a Channel with the Slack (legacy) API

Create a new channel. See the documentation

 
Try it
Create Reminder with the Slack (legacy) API

Create a reminder. See the documentation

 
Try it
Delete File with the Slack (legacy) API

Delete a file. See the documentation

 
Try it
Delete Message with the Slack (legacy) API

Delete a message. See the documentation

 
Try it
Find Message with the Slack (legacy) API

Find a Slack message. See the documentation

 
Try it
Find User by Email with the Slack (legacy) API

Find a user by matching against their email. See the documentation

 
Try it
Get Current User with the Slack (legacy) API

Retrieve comprehensive context about the authenticated Slack member, combining auth.test, users.info, users.profile.get, and team.info payloads. Returns the user’s profile (name variants, email, locale, timezone, status, admin flags), raw auth test data, and workspace metadata (domain, enterprise info, icons). Ideal when you need to confirm which user token is active, tailor messages to their locale/timezone, or ground an LLM in the member’s role and workspace before executing other Slack actions. See Slack API docs

 
Try it
Get File with the Slack (legacy) API

Return information about a file. See the documentation

 
Try it
Invite User to Channel with the Slack (legacy) API

Invite a user to an existing channel. See the documentation

 
Try it
Kick User with the Slack (legacy) API

Remove a user from a conversation. See the documentation

 
Try it
List Channels with the Slack (legacy) API

Return a list of all channels in a workspace. See the documentation

 
Try it
List Files with the Slack (legacy) API

Return a list of files within a team. See the documentation

 
Try it
List Group Members with the Slack (legacy) API

List all users in a User Group. See the documentation

 
Try it
List Members in Channel with the Slack (legacy) API

Retrieve members of a channel. See the documentation

 
Try it
List Replies with the Slack (legacy) API

Retrieve a thread of messages posted to a conversation. See the documentation

 
Try it
List Users with the Slack (legacy) API

Return a list of all users in a workspace. See the documentation

 
Try it
Send a Large Message (3000+ characters) with the Slack (legacy) API

Send a large message (more than 3000 characters) to a channel, group or user. See postMessage or scheduleMessage docs here

 
Try it
Send Message (Advanced) with the Slack (legacy) API

Customize advanced setttings and send a message to a channel, group or user. See postMessage or scheduleMessage docs here

 
Try it
Set Channel Description with the Slack (legacy) API

Change the description or purpose of a channel. See the documentation

 
Try it
Set Channel Topic with the Slack (legacy) API

Set the topic on a selected channel. See the documentation

 
Try it
Set Status with the Slack (legacy) API

Set the current status for a user. See the documentation

 
Try it
Update Groups Members with the Slack (legacy) API

Update the list of users for a User Group. See the documentation

 
Try it
Update Message with the Slack (legacy) API

Update a message. See the documentation

 
Try it
Update Profile with the Slack (legacy) API

Update basic profile field such as name or title. See the documentation

 
Try it
Upload File with the Slack (legacy) API

Upload a file. See the documentation

 
Try it
Verify Slack Signature with the Slack (legacy) API

Verifying requests from Slack, slack signs its requests using a secret that's unique to your app. See the documentation

 
Try it
Create Issue with the GitHub API

Create a new issue in a Gihub repo. See the documentation

 
Try it
Search Issues and Pull Requests with the GitHub API

Find issues and pull requests by state and keyword. See the documentation

 
Try it
Create Branch with the GitHub API

Create a new branch in a Github repo. See the documentation

 
Try it
Create Gist with the GitHub API

Allows you to add a new gist with one or more files. See the documentation

 
Try it
Create Issue Comment with the GitHub API

Create a new comment in a issue. See the documentation

 
Try it
Create or Update File Contents with the GitHub API

Create or update a file in a repository. See the documentation

 
Try it
Create Pull Request with the GitHub API

Creates a new pull request for a specified repository. See the documentation

 
Try it
Create Repository with the GitHub API

Creates a new repository for the authenticated user. See the documentation

 
Try it
Create Workflow Dispatch with the GitHub API

Creates a new workflow dispatch event. See the documentation

 
Try it
Disable Workflow with the GitHub API

Disables a workflow and sets the state of the workflow to disabled_manually. See the documentation

 
Try it
Enable Workflow with the GitHub API

Enables a workflow and sets the state of the workflow to active. See the documentation

 
Try it
Get Commit with the GitHub API

Get a commit in a Github repo. See the documentation

 
Try it
Get Current User with the GitHub API

Gather a full snapshot of the authenticated GitHub actor, combining /user, /user/orgs, and /user/teams. Returns profile metadata (login, name, email, company, plan, creation timestamps) and trimmed lists of organizations and teams for quick role awareness. Helpful when you need to validate which user is calling the API, adapt behavior based on their org/team memberships, or provide LLMs with grounding before repository operations. See the documentation

 
Try it
Get Issue Assignees with the GitHub API

Get assignees for an issue in a Gihub repo. See the documentation

 
Try it
Get Repository Content with the GitHub API

Get the content of a file or directory in a specific repository. See the documentation

 
Try it
Get Repository Info with the GitHub API

Get information for a specific repository. See the documentation

 
Try it
Get Reviewers with the GitHub API

Get reviewers for a PR (see documentation) or Commit SHA (see documentation).

 
Try it
Get Workflow Run with the GitHub API

Gets a specific workflow run. See the documentation

 
Try it
List Commits with the GitHub API

List commits in a Github repo. See the documentation

 
Try it
List Gists for a User with the GitHub API

Lists public gists for the specified user. See the documentation

 
Try it
List Releases with the GitHub API

List releases for a repository See the documentation

 
Try it
List Workflow Runs with the GitHub API

List workflowRuns for a repository See the documentation

 
Try it
Star Repo with the GitHub API

Star a repository. See the docs for more info.

 
Try it
Update Gist with the GitHub API

Allows you to update a gist's description and to update, delete, or rename gist files. See the documentation

 
Try it
Update Issue with the GitHub API

Update a new issue in a Gihub repo. See the documentation

 
Try it
Update Project (V2) Item Status with the GitHub API

Update the status of an item in the selected Project (V2). See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.