Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triage bug fix #2

Merged
merged 6 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/notify-triagers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Notify Triagers on .Md files change

on:
pull_request:
branches:
- master
paths:
- 'pages/*'

jobs:
auto-comment:
runs-on: ubuntu-latest

steps:
- name: Check PR Changes
id: pr-changes
run: echo "::set-output name=changes::${{ toJson(github.event.pull_request.changed_files) }}"

- name: Create Comment
if: steps.pr-changes.outputs.changes != '[]'
run: |
# Use GitHub API to create a comment on the PR
PR_NUMBER=${{ github.event.pull_request.number }}
COMMENT=" THIS IS A TEST TO CHECK WORKFLOW"
GH_TOKEN=${{ secrets.GH_TOKEN }}
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"

curl -s -H "Authorization: token ${GH_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"
1 change: 1 addition & 0 deletions pages/docs/concepts/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a test file to check workflow
Loading