forked from OpenCilk/opencilk-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github] Make workflows consistent with workflows in mainline LLVM.
- Loading branch information
Showing
15 changed files
with
302 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ jobs: | |
steps: | ||
- uses: andymckay/[email protected] | ||
with: | ||
remove-labels: "awaiting-review" | ||
remove-labels: 'awaiting-review' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
jobs: | ||
auto-subscribe: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'llvm/llvm-project' | ||
if: github.repository_owner == 'llvm' | ||
steps: | ||
- uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -20,38 +20,39 @@ jobs: | |
MAILGUN_API_KEY: ${{ secrets.LLVM_BUGS_KEY }} | ||
with: | ||
script: | | ||
const Mailgun = require("mailgun.js"); | ||
const Mailgun = require('mailgun.js'); | ||
const formData = require('form-data'); | ||
const mailgun = new Mailgun(formData); | ||
const DOMAIN = "email.llvm.org"; | ||
const mailgun = new Mailgun(formData); | ||
const DOMAIN = 'email.llvm.org'; | ||
const mg = mailgun.client({username: 'api', key: process.env.MAILGUN_API_KEY}); | ||
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, | ||
repo: context.repo.repo | ||
}) | ||
.then(function(issue) { | ||
.then((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 }), | ||
labels : issue.data.labels.map((label) => label.name), | ||
assignee : issue.data.assignees.map((assignee) => assignee.login), | ||
body : issue.data.body | ||
}; | ||
const data = { | ||
from: "LLVM Bugs <[email protected]>", | ||
to: "[email protected]", | ||
from: 'LLVM Bugs <[email protected]>', | ||
to: '[email protected]', | ||
subject: `[Bug ${issue.data.number}] ${issue.data.title}`, | ||
template: "new-github-issue", | ||
template: 'new-github-issue', | ||
'o:tracking-clicks': 'no', | ||
'h:X-Mailgun-Variables': JSON.stringify(payload) | ||
}; | ||
return mg.messages.create(DOMAIN, data) | ||
return mg.messages.create(DOMAIN, data); | ||
}) | ||
.then(msg => console.log(msg)); | ||
.then((msg) => console.log(msg)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.