Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

## Check List

- [ ] Assign reviewers
- [ ] Assign assignees
- [ ] Assign labels
- [ ] Add appropriate test cases

Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ on:

jobs:
auto-assign:
name: Auto Assign
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- if: ${{ toJSON(github.event.pull_request.assignees) == '[]' }}
run: gh pr edit "${NUMBER}" --add-assignee "${ASSIGNEE}"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
ASSIGNEE: ${{ github.event.pull_request.user.login }}
run: |
gh pr --repo ${{ github.repository }} edit ${{ github.event.pull_request.number }} --add-assignee "${{ github.event.pull_request.user.login }}"
48 changes: 48 additions & 0 deletions .github/workflows/final-newline-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: final-newline-checker

on:
pull_request:

jobs:
final-newline-checker:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: hakadoriya-actions/final-newline-checker@v0.0.1
id: final-newline-checker
with:
# NOTE: If you want to fail on missing final newline, set this to true
#fail-on-missing: true
#paths: |-
# ^action.yml
# ^missing-final-newline.md
paths-ignore: |-
.*\.gif$
.*\.ico$
.*\.jpeg$
.*\.jpg$
.*\.png$
.*\.svg$
.*\.webp$
- uses: hakadoriya-actions/setup-gh-xz@v0.0.1
- name: Submit PR comment if missing final newline
if: ${{ steps.final-newline-checker.outputs.missing == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
run: |
# Create comment body
cat <<EOF | perl -pe 's/\\n/\n/g' | tee /tmp/gh-pr-comment-body.md
## 🚨 Missing final newline

The following files are missing final newline.

\`\`\`
${{ steps.final-newline-checker.outputs.missing-files }}
\`\`\`
EOF
# Submit PR comment
gh xz put-annotated-comment ${{ github.repository }} ${{ github.event.number }} annotation:final-newline-checker @/tmp/gh-pr-comment-body.md
# fail the workflow
exit 1
8 changes: 6 additions & 2 deletions .github/workflows/label-checker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: label-checker

# Dependabot
# # Dependabot
# gh label create --force "dependencies" --description "Pull requests that update a dependency file" --color 0366D6
# gh label create --force "go" --description "Pull requests that update Go code" --color 16E2E2
# gh label create --force "github_actions" --description "Pull requests that update GitHub Actions code" --color 000000
# gh label create --force "docker" --description "Pull requests that update Docker code" --color 21CEFF

# Commit prefix
# # Renovate
# gh label create --force "renovate" --description "Renovate" --color 009485

# # Commit prefix
# gh label create --force "BREAKING CHANGE" --description "BREAKING CHANGES" --color FF0303
# gh label create --force "build" --description "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)" --color 5319E7
# gh label create --force "ci" --description "Changes to our CI configuration files and scripts (examples: CircleCi, SauceLabs)" --color 53C4EE
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/task-list-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
task-list-checker:
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
pull-requests: read
steps:
- uses: hakadoriya/github-actions-task-list-checker@v0.0.0
- uses: hakadoriya-actions/task-list-checker@v0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading