Skip to content

__builtin_cheri_cap_build is not polymorphic on the return type #21

__builtin_cheri_cap_build is not polymorphic on the return type

__builtin_cheri_cap_build is not polymorphic on the return type #21

Workflow file for this run

name: LLVM Bugs notifier
on:
issues:
types:
- opened
jobs:
auto-subscribe:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install mailgun.js form-data
- name: Send notification
uses: actions/github-script@v5
env:
MAILGUN_API_KEY: ${{ secrets.LLVM_BUGS_KEY }}
with:
script: |
const Mailgun = require("mailgun.js");
const formData = require('form-data');
const mailgun = new Mailgun(formData);
const DOMAIN = "email.llvm.org";
const mg = mailgun.client({username: 'api', key: process.env.MAILGUN_API_KEY});
github.rest.issues.get({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
})
.then(function(issue) {
const payload = {
author : issue.data.user.login,
issue : issue.data.number,
title : issue.data.title,
url : issue.data.html_url,
labels : issue.data.labels.map(label => { return label.name }),
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
body : issue.data.body
};
const data = {
from: "LLVM Bugs <[email protected]>",
to: "[email protected]",
subject: `[Bug ${issue.data.number}] ${issue.data.title}`,
template: "new-github-issue",
'h:X-Mailgun-Variables': JSON.stringify(payload)
};
return mg.messages.create(DOMAIN, data)
})
.then(msg => console.log(msg));