From 13b4d63ddf90b28ad14767e6e8ea1cb25610cb9e Mon Sep 17 00:00:00 2001 From: Matthieu Baerts Date: Tue, 2 Feb 2021 06:18:28 +0000 Subject: [PATCH] DO-NOT-MERGE: mptcp: add GitHub Actions Currently supported: - irc: send notifications to the IRC channel Signed-off-by: Matthieu Baerts --- .github/workflows/irc.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/irc.yml diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml new file mode 100644 index 0000000000000..62d2a43a57146 --- /dev/null +++ b/.github/workflows/irc.yml @@ -0,0 +1,29 @@ +name: "IRC Notifications" +on: + create: + issues: + types: [opened, reopened, closed, assigned, unassigned] + +jobs: + irc: + runs-on: ubuntu-latest + steps: + - name: irc tag + uses: rectalogic/notify-irc@v1 + if: github.repository_owner == 'multipath-tcp' && github.event_name == 'create' && github.event.ref_type == 'tag' + with: + channel: "#MPTCPUpstream" + nickname: gh-tag-bot + message: "New tag available: ${{ github.event.ref }} (by ${{ github.actor }})" + - name: irc issues + uses: rectalogic/notify-irc@v1 + if: github.repository_owner == 'multipath-tcp' && github.event_name == 'issues' + with: + channel: "#MPTCPUpstream" + nickname: gh-issues-bot + message: | + Issue #${{ github.event.issue.number }} has been ${{ github.event.action }} by ${{ github.actor }}. + Issue title: "${{ github.event.issue.title }}" + Issue opened by: ${{ github.event.issue.user.login }} + Assignee (if any): ${{ github.event.assignee.login }} + URL: ${{ github.event.issue.html_url }}