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
Copy file name to clipboardexpand all lines: .github/workflows/check-repro.yml
+6-6
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ jobs:
10
10
if: ${{ github.event.label.name == 'bug' }}
11
11
runs-on: ubuntu-latest
12
12
steps:
13
-
- uses: actions/github-script@v3
13
+
- uses: actions/github-script@v7
14
14
with:
15
15
github-token: ${{ secrets.GITHUB_TOKEN }}
16
16
script: |
@@ -23,14 +23,14 @@ jobs:
23
23
'gm'
24
24
);
25
25
if (regex.test(body)) {
26
-
await github.issues.addLabels({
26
+
await github.rest.issues.addLabels({
27
27
issue_number: context.issue.number,
28
28
owner: context.repo.owner,
29
29
repo: context.repo.repo,
30
30
labels: ['repro provided'],
31
31
});
32
32
try {
33
-
await github.issues.removeLabel({
33
+
await github.rest.issues.removeLabel({
34
34
issue_number: context.issue.number,
35
35
owner: context.repo.owner,
36
36
repo: context.repo.repo,
@@ -46,21 +46,21 @@ jobs:
46
46
return;
47
47
}
48
48
const body = "Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).\n\nCan you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.";
0 commit comments