mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
feat: add core feature alert
This commit is contained in:
parent
3a0cddc345
commit
d64a3e98b8
28
.github/workflows/core-feature-alert.yml
vendored
Normal file
28
.github/workflows/core-feature-alert.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Core Feature Alert
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- src/features/client-feature-toggles
|
||||||
|
- src/features/frontend-api
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
notify-core-changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Fetch PR Creator's Username
|
||||||
|
id: pr-creator
|
||||||
|
run: echo "PR_CREATOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Post a notification about core feature changes
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const prCreator = process.env.PR_CREATOR;
|
||||||
|
github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.pull_request.number,
|
||||||
|
body: `@FredrikOseberg, @${prCreator}, core features have been modified in this pull request. Please review!`
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user