Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test workflow for shared-github-danger #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
41 changes: 25 additions & 16 deletions .github/workflows/dangerjs.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
# name: DangerJS Check
# on:
# pull_request_target:
# types: [opened, edited, reopened, synchronize]
name: DangerJS Pull Request linter
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
pull_request:
types: [opened, edited, reopened, synchronize]

# permissions:
# pull-requests: write
# contents: write

# jobs:
# pull-request-style-linter:
# runs-on: ubuntu-latest
# steps:
# - name: Check out PR head
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
jobs:
pull-request-style-linter:
runs-on: ubuntu-latest
steps:
- name: Check out PR head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: DangerJS pull request linter
uses: espressif/shared-github-dangerjs@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# # max-commits-enabled: 'false'
# max-commits-info: 3
# max-commits-warn: 6
# instructions-contributions-file: 'CONTRIBUTING.md'
# instructions-cla-link: 'https://cla-assistant.io/espressif/test'
# instructions-gitlab-mirror: 'true'

# - name: DangerJS pull request linter
# uses: espressif/github-actions/danger_pr_review@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}