Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Email Addresses in Comments Monitor

v8

Email Addresses in Comments Monitor

play

Email Addresses in Comments Monitor

Check for emails in Github issues and comments

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Email Addresses in Comments Monitor

uses: seisvelas/comment-email-address-alerts@v8

Learn more about this action in seisvelas/comment-email-address-alerts

Choose a version

This GitHub Action monitors all new issues and comments for email addresses. If it detects one, it leaves a comment in the same issue noting the email addresses.

To use it, just add this code to the file .github/workflows/main.yml:

on:
  issue_comment:
    types: [created, edited]
  issues:
    types: [opened, edited]
jobs:
  find_emails:
    runs-on: ubuntu-latest
    name: Check for emails in issue comments
    steps:
    - name: Checkout
      uses: actions/checkout@v3
    - name: Scan comment
      id: scan
      uses: actions/comment-email-address-alerts@v7 # Uses an action in the root directory
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

That's it!

With that in place, any email addresses mentioned in comments will be monitored by the Action:


Screen Shot 2021-05-12 at 3 55 33 p m