-
Notifications
You must be signed in to change notification settings - Fork 61
Approve a PR by leaving "/lgtm" comment #153
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
b7bc659
Add Code Owners file
lugi0 7b6a985
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f2895f1
Merge branch 'opendatahub-io:main' into main
lugi0 bb7b218
feat: add PR auto-approve on '/lgtm' comment
lugi0 fcb7d69
fix: potential fix for label action
lugi0 5f94b1f
fix: add pull request number
lugi0 df24ecb
fix: extract PR from payload
lugi0 1e72fa2
fix: use bot user personal access token for pr approval
lugi0 a245e76
Update lgtm-approval.yml
lugi0 cb88b1a
Merge branch 'opendatahub-io:main' into feature/auto-approve-lgtm
lugi0 cd5cc1c
Update lgtm-approval.yml
lugi0 7c33075
Update lgtm-approval.yml
lugi0 1436f46
Update lgtm-approval.yml
lugi0 b891c0f
Update add-remove-labels.yml
lugi0 ff82d6a
Update lgtm-approval.yml
lugi0 c7e4f48
remove trailing whitespace
lugi0 c90635c
remove conditional on issue_comment events
lugi0 c4d7bbc
Try using review comment as well for labels
lugi0 4c97ed7
fix typo
lugi0 cf0d05d
change review behaviour in py script
lugi0 5966ef3
enable label action for review comments as well
lugi0 39087f7
fix line too long
lugi0 d4afd19
try adding +1 to review comment with gh api
lugi0 3fe3188
fix typo
lugi0 ffb2efb
use bot PAT
lugi0 3305881
Disable review reaction for the time being
lugi0 095f94f
approval from 'add-remove-labels'
lugi0 23c15a9
fix typo
lugi0 d0f6449
additional checks
lugi0 1895d8a
try using bot PAT
lugi0 a0ef243
don't fail with empty comment body
lugi0 47a4d90
add required arg to dismiss
lugi0 656472a
remove unused action
lugi0 e13e80c
check for allowed users
lugi0 d6abc7b
fix typo, more logging
lugi0 d467bce
workaround team membership
lugi0 bd872ce
fix typo, check for submitter/pr owner
lugi0 69e80ab
don't add lgtm label for owner of PR
lugi0 79fa746
implement org/team logic
lugi0 71586ee
fix typo
lugi0 e5fb8ed
reuse APPROVED constant
lugi0 bbbbd0c
fix type imports for github library
lugi0 863dcee
fix typo
lugi0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,15 @@ | ||
| name: Approve PR on /lgtm comment | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
lugi0 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| approve-pr: | ||
| runs-on: ubuntu-latest | ||
| if: github.event.issue.pull_request && contains(github.event.comment.body, '/lgtm') | ||
| steps: | ||
| - name: approve the PR | ||
| uses: hmarr/auto-approve-action@v4 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
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.
Uh oh!
There was an error while loading. Please reload this page.