Connect GitHub to install the Atwork app on a GitHub account or organization, on all of its repositories or only the ones you choose. Workflows can then start when a pull request, issue or push happens, and Dana and your workflows can read pull requests, issues and files, comment, review, label and open issues. Owners and admins connect GitHub for the whole organization. GitHub comes with the Pro plan and up, and workflows that start on a GitHub event need the Business plan and up (see pricing).
Before you start
You need to be an owner or admin in Atwork. A GitHub connection is always shared with the whole organization, so a member can connect it only when Members can share their connections with the organization is on in Settings → Shared connections.
On GitHub, you install the app on your own account or on an organization you own. If you don't own the organization, you can ask its owners to approve it (see below).
Your organization is on the Pro plan or up.
Connect GitHub
Open Settings → Connections.
Find GitHub in the Developer category and choose Connect.
Choose Connect to GitHub. GitHub opens in a new window.
On GitHub, pick the account or organization to install the Atwork app on.
Choose All repositories, or Only select repositories and pick the ones Atwork may use.
Confirm the install on GitHub.
The window closes and the account shows under Accounts as Connected, with its Repositories and Who can use: Everyone in the organization. With All repositories, repositories you add on GitHub later are included.
A connected GitHub account in Connections, with its repositories and the card to link your own GitHub account
Ask the GitHub owner to approve it
If you don't own the GitHub organization, GitHub sends a request to its owners in step 6 instead of installing the app. Back in Atwork:
The account shows Requested — waiting for the GitHub owner, with your GitHub login and the date you asked.
When an owner of the GitHub organization approves it, the connection turns Connected on its own, with the repositories they approved. You don't need to come back to Atwork.
Until then, workflows and Dana can't use it.
Start a workflow on a GitHub event
In a workflow, open the Node library and find GitHub under Triggers. Each trigger has a Repositories setting to run for some repositories only; left empty, it runs for every repository the app can see. Workflows that start on a GitHub event need the Business plan and up.
Trigger
Runs when
New pull request
A pull request is opened.
Pull request closed or merged
A pull request is merged or closed. Outcome narrows it to Merged or Closed without merging.
New push
Commits are pushed to a branch. Branch narrows it to one branch.
New issue
An issue is opened.
New comment
Someone comments on an issue or pull request, comments on a line of a pull request, or submits a review with text.
New review
A pull request review is submitted. Review states narrows it to Approved, Changes requested or Commented.
Any GitHub event
GitHub sends any event for the installation. Event types narrows it.
Act on GitHub from a workflow
GitHub's actions are in the Node library under Actions:
Pull requests:Review a pull request (comment, approve or request changes), Request reviewers, Merge pull request, Close pull request.
Issues and comments:Create an issue, Comment on an issue or pull request, Add labels, Remove labels, Assign people, Close issue.
Branches, files and releases:Create a branch, Delete a branch, Create a file, Update file, Create a release, Re-run an Actions run.
Reading:List pull requests, Get a pull request, List pull request files, List issues, Get a file, Search issues and pull requests, and more.
Anything else:GitHub API request (read), GitHub API request (write) and GitHub API request (delete) call the GitHub REST API directly.
A workflow acts on GitHub as the Atwork app, so its comments, labels and reviews show under the app's name.
Ask Dana to work on GitHub
Once GitHub is connected, Dana can use it in chat. Ask, for example, "Which pull requests in client-portal are still open?" or "Comment on issue 42 that the fix ships on Friday."
Dana reads pull requests, issues, files, commits, releases and Actions runs without asking.
Before any change on GitHub, Dana shows an Approval required card with Approve and Deny.
Merging or closing a pull request, closing an issue, updating a file, deleting a branch and API requests that write or delete ask every time, even after Always allow in this conversation.
Each member can link their own GitHub account, so what Dana and agents do on GitHub in their chats carries their name. Until you link it, those changes show as the Atwork app. Workflows always act as the Atwork app.
Open Settings → Connections.
Find GitHub and choose Manage.
On the Accounts tab, under Your GitHub account, choose Link GitHub account.
Approve the access on GitHub.
The card shows Linked as with your GitHub login, and Only you can see and use this link. Linking also lets Dana find the pull requests waiting on your review. To undo it, choose Unlink.
Change repositories or disconnect
Owners and admins manage the connection on the GitHub account in Settings → Connections:
Change repositories: choose Manage on GitHub and add or remove repositories there. Atwork updates the list.
Disconnect: choose Remove. Workflows and agents that use it stop working until GitHub is connected again. The Atwork app stays installed on GitHub until you uninstall it there.
Cancel a request:Remove works on a requested connection too. It cancels it in Atwork, not on GitHub.