2023-05-20 23:10:03 -07:00
2023-05-20 23:10:03 -07:00
2023-05-20 23:10:03 -07:00
2023-05-20 23:10:03 -07:00
2024-01-20 22:27:51 -08:00
2023-05-20 23:10:03 -07:00
2023-05-20 23:10:03 -07:00
2023-05-20 23:10:03 -07:00
2023-05-20 23:40:15 -07:00
2023-07-09 00:07:22 -07:00
2023-05-20 23:10:03 -07:00

typescript-action status

CodeMention

CodeMention is a GitHub Action that mentions users and teams who subscribe to certain file changes on pull requests. See in pull requests in the codemention-test repo for examples of how this looks like.

This is similar to Codenotify, but this retrieves the diff via GitHub's REST API instead of using actions/checkout to clone the repo.

Usage

To use this GitHub Action, add a .github/codemention.yml file to your repo that contains mentions/notifications rules. An example looks like:

rules:
  - patterns: ['config/**']
    mentions: ['sysadmin']
  - patterns: ['db/migrate/**']
    mentions: ['cto', 'dba']
  - patterns: ['.github/**', 'spec/*.rb']
    mentions: ['ci']

Add a .github/workflows/codemention.yml file to your repo with the following:

name: codemention

on:
  pull_request_target:
    types: [opened, synchronize, ready_for_review]

jobs:
  codemention:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: tobyhs/codemention@v1
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}
S
Description
GitHub Action to notify/mention people on pull requests
Readme MIT
294 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.2%
JavaScript 0.8%