You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: "⚠️ This PR contains API changes and requires additional approval. Please review the API changes carefully."
38
+
github-token: ${{ secrets.GITHUB_TOKEN }}
39
+
script: |
40
+
github.rest.issues.addLabels({
41
+
issue_number: context.issue.number,
42
+
owner: context.repo.owner,
43
+
repo: context.repo.repo,
44
+
labels: ['api-changes']
45
+
})
46
+
47
+
- name: Comment on PR
48
+
if: env.API_CHANGES_DETECTED == 'true'
49
+
uses: actions/github-script@v6
50
+
with:
51
+
github-token: ${{ secrets.GITHUB_TOKEN }}
52
+
script: |
53
+
github.rest.issues.createComment({
54
+
issue_number: context.issue.number,
55
+
owner: context.repo.owner,
56
+
repo: context.repo.repo,
57
+
body: '⚠️ This PR contains API changes and requires careful review. Please ensure these changes are intentional and backward compatible where possible.'
0 commit comments