Skip to content

Commit ebca0f6

Browse files
authored
Hotfix for automation workflows
Merge pull request #11 from iamwatchdogs/hotfix
2 parents 5bc3f94 + 73bae23 commit ebca0f6

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/auto-assigner.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: Auto Assign
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, ready_for_review]
66
issues:
77
types: [opened]
88

9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
913
jobs:
1014
auto-assign:
1115
runs-on: ubuntu-latest
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Auto-commenter
22

33
on:
4-
pull_request:
5-
branches: [main]
6-
types: [closed]
4+
pull_request_target:
5+
types: [opened, closed]
76

87
permissions:
98
id-token: write
@@ -17,14 +16,13 @@ jobs:
1716
- uses: wow-actions/auto-comment@v1
1817
with:
1918
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
2119
pullRequestOpened: |
2220
👋 @{{ author }}
2321
Thank you for raising your pull request.
2422
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
2523
26-
pullRequestClosed: >
27-
👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact with the maintainer @iamwatchdogs.
24+
pullRequestClosed: |
25+
👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact the maintainer @iamwatchdogs.
2826
2927
pullRequestMerged: |
30-
Thank you for contributing @{{ author }}, Make sure to check your contribution on [GitHub Pages](grow-with-open-source.github.io/Notebook/ "view contributions").
28+
Thank you for contributing @{{ author }}. Make sure to check your contribution on [GitHub Pages](https://grow-with-open-source.github.io/Notebook/ "view contributions").

.github/workflows/auto-labeler.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: hacktoberfest-labeler
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened, closed]
66

7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
712
jobs:
813
auto-labeler:
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)