-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vraccessories
- Loading branch information
Showing
11 changed files
with
2,179 additions
and
1,462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: PR Description Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
validate-pr-description: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Validate PR Description | ||
id: check_description | ||
run: | | ||
if [ -z "${{ github.event.pull_request.body }}" ]; then | ||
echo "::error::Description is missing!" | ||
exit 1 | ||
fi | ||
- name: Check for issue number or 'Fixes #NEW' | ||
id: check_issue_number | ||
run: | | ||
description="${{ github.event.pull_request.body }}" | ||
if [[ ! "$description" =~ (Fixes #[0-9]+|Fixes #NEW) ]]; then | ||
echo "::error::PR description must contain an issue number or 'Fixes #NEW'" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Auto Assign and Label PR | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-and-label: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Add Labels to PR | ||
uses: actions-ecosystem/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | ||
- gssoc-ext | ||
- hacktoberfest-accepted | ||
|
||
- name: Assign PR to Creator | ||
uses: actions-ecosystem/action-assign@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
assignees: ${{ github.actor }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,11 @@ name: Auto Label New Issues & PRs | |
|
||
on: | ||
issues: | ||
types: [opened] | ||
pull_request: | ||
types: [opened] | ||
types: [opened] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: write # Required to read repository contents | ||
|
||
|
||
jobs: | ||
label: | ||
|
@@ -20,7 +17,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Add Labels to Issues & PRs | ||
if: github.event_name == 'issues' || github.event_name == 'pull_request' | ||
if: github.event_name == 'issues' | ||
uses: actions-ecosystem/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.