Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add markdown check action #4907
Add markdown check action #4907
Changes from 5 commits
41dfa78
6887a94
55703a0
db9b741
138b2f5
b4e13e9
62b038d
c25f3ad
4376469
a491e08
ddac31f
ee194e1
b1ee184
5f8a0a3
9413c3a
9b7ac77
71d1bf1
4a66b98
947d71c
3fd9ce0
3ec857a
cba73cd
f403335
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull_request_target
->pull_request
to checkout the "refs/pull/:prNumber/merge"otherwise the
- uses: actions/checkout@master
will check out the BASE ref here (branch-22.04)
FYI we use pull_request_target in signoff-check is only because that the check is based on BASE branch instead of relying on developer's feature branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks and good to know that, one question is that do we need a GITHUB_TOKEN when we use
pull_request
?If we don't add a GITHUB_TOKEN, will we hit
Error: Parameter token or opts.auth is required
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GITHUB_TOKEN is the default token of repo and is maintained by github action itself as ENV.
For actions/checkout, no.
I am not sure where you did get this error, if the some specific action require adding specific arg, then you can try add
above was just an example, this really arg naming depends on the action provider, if they require extra tokens (or access), they should have documented somewhere in their repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after changing to pull_request, you can see result in this PR's check status