Skip to content

Commit 05d8280

Browse files
authored
Merge pull request #48 from utopia-php/refactor/mirror-workflow
Reuse mirror redirect workflow
1 parent d6a27f2 commit 05d8280

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ name: Mirror
33
on:
44
pull_request_target:
55
types: [opened]
6+
issues:
7+
types: [opened]
68

79
permissions:
10+
issues: write
811
pull-requests: write
912

1013
jobs:
1114
redirect:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Redirect pull request to the monorepo
15-
env:
16-
GH_TOKEN: ${{ github.token }}
17-
PR: ${{ github.event.pull_request.html_url }}
18-
run: |
19-
gh pr comment "$PR" --body "Thanks for contributing! This repository is a read-only mirror — development for this library happens in [\`packages/cli\`](https://github.com/utopia-php/monorepo/tree/main/packages/cli) in the [utopia-php monorepo](https://github.com/utopia-php/monorepo). Please open this pull request there instead."
20-
gh pr close "$PR"
15+
uses: utopia-php/monorepo/.github/workflows/mirror-redirect.yml@main
16+
with:
17+
package: cli

0 commit comments

Comments
 (0)