App recipes
Post new GitHub issues to a Feishu group with Duaer
In Duaer, every new issue in a repository posts its title, author, and link to a Feishu group robot.
Build the issue alert in Duaer
- Create a GitHub credential in Duaer. The account needs admin rights on the repository so the trigger can register a webhook.
- Add Github Trigger with Repository Owner, Repository Name, and Events Issues.
- Add If: {{ $json.body.action }} is equal to opened, to keep new issues only (closing and editing also fire).
- Add HTTP Request: Method POST, URL the Feishu robot webhook, Send Body JSON, body {"msg_type":"text","content":{"text":{{ JSON.stringify("New issue: " + $json.body.issue.title + "\n" + $json.body.issue.user.login + "\n" + $json.body.issue.html_url) }}}}.
- Publish the digital organization.
Common issues
- Feishu returns a non-zero code: refer to Fix group bot failures in Duaer.
- Bug label only: add {{ $json.body.issue.labels.map(l => l.name).includes("bug") }} is true to If.
- Self-hosted Duaer must be reachable from the internet for GitHub webhooks to arrive.
Questions
Can the Duaer Github Trigger watch pull requests?
Yes. Pick Pull Request under Events in the Duaer Github Trigger. The posting steps stay the same.
Where is the issue data in Duaer?
The Duaer Github Trigger puts the GitHub payload under body, such as body.issue.title and body.action.
In this section
Start a Duaer digital organization with Github Trigger
In Duaer, Github Trigger starts a digital organization when Github sends an event. It can listen for 42 events, such as Check Run, Check Suite, Commit Comment, and 39 more.
NodesCreate a GitHub issue in Duaer
In Duaer, GitHub defaults to Authentication Access Token, Resource Issue, and Operation Create. You need a githubApi credential.
NodesCall an API with HTTP Request in Duaer
In Duaer, HTTP Request sends the method and URL you enter. Put the account in a credential, not in the node parameters.
ErrorsFix WeCom and Feishu group bot webhook failures in Duaer
When a Duaer message to a WeCom or Feishu group bot never arrives, read errcode or code in the response. Common codes and fixes.