-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/boilerplate updates and fixes (#8)
# Added - add review assignment to mex-template itself # Changes - improve prompt for project name # Fixed - fix finding of rejected cruft files - fix dependabot pr review assignment --------- Signed-off-by: Nicolas Drebenstedt <[email protected]>
- Loading branch information
1 parent
cb3e3d3
commit 5007775
Showing
7 changed files
with
35 additions
and
9 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
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,27 @@ | ||
name: Reviewing | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
assignee: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Add assignee | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | ||
run: | | ||
user_name="${{ github.event.pull_request.user.login }}" | ||
user_type=$(gh api "users/${user_name}" --jq ".type") | ||
echo $user_name is a $user_type | ||
if [[ "$user_type" != "User" ]]; then | ||
user_name="${{ vars.MEX_BOT_USER }}" | ||
echo using $user_name instead | ||
fi | ||
if [[ -z "${{ github.event.pull_request.assignee.login }}" ]]; then | ||
gh pr edit ${{ github.event.pull_request.html_url }} --add-assignee "${user_name}" | ||
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"project_name": "project", | ||
"project_name": "Choose a project name. Should be a single word. Must be written in snake_case.", | ||
"short_summary": "Write a short tagline for your project.", | ||
"long_summary": "Explain your project in a bit more detail, 50-100 words would be ideal. Line-breaks are not needed as the text will be auto-wrapped." | ||
} |
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cruft==2.15.0 | ||
poetry==1.8.2 | ||
pre-commit==3.6.2 | ||
wheel==0.42.0 | ||
wheel==0.43.0 |