Skip to content
Merged
Show file tree
Hide file tree
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 Feb 17, 2025
7b6a985
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2025
f2895f1
Merge branch 'opendatahub-io:main' into main
lugi0 Feb 19, 2025
bb7b218
feat: add PR auto-approve on '/lgtm' comment
lugi0 Feb 19, 2025
fcb7d69
fix: potential fix for label action
lugi0 Feb 19, 2025
5f94b1f
fix: add pull request number
lugi0 Feb 19, 2025
df24ecb
fix: extract PR from payload
lugi0 Feb 19, 2025
1e72fa2
fix: use bot user personal access token for pr approval
lugi0 Feb 20, 2025
a245e76
Update lgtm-approval.yml
lugi0 Mar 14, 2025
cb88b1a
Merge branch 'opendatahub-io:main' into feature/auto-approve-lgtm
lugi0 Mar 14, 2025
cd5cc1c
Update lgtm-approval.yml
lugi0 Mar 14, 2025
7c33075
Update lgtm-approval.yml
lugi0 Mar 14, 2025
1436f46
Update lgtm-approval.yml
lugi0 Mar 14, 2025
b891c0f
Update add-remove-labels.yml
lugi0 Mar 14, 2025
ff82d6a
Update lgtm-approval.yml
lugi0 Mar 14, 2025
c7e4f48
remove trailing whitespace
lugi0 Mar 14, 2025
c90635c
remove conditional on issue_comment events
lugi0 Mar 14, 2025
c4d7bbc
Try using review comment as well for labels
lugi0 Mar 14, 2025
4c97ed7
fix typo
lugi0 Mar 14, 2025
cf0d05d
change review behaviour in py script
lugi0 Mar 14, 2025
5966ef3
enable label action for review comments as well
lugi0 Mar 14, 2025
39087f7
fix line too long
lugi0 Mar 14, 2025
d4afd19
try adding +1 to review comment with gh api
lugi0 Mar 15, 2025
3fe3188
fix typo
lugi0 Mar 15, 2025
ffb2efb
use bot PAT
lugi0 Mar 15, 2025
3305881
Disable review reaction for the time being
lugi0 Mar 15, 2025
095f94f
approval from 'add-remove-labels'
lugi0 Mar 18, 2025
23c15a9
fix typo
lugi0 Mar 18, 2025
d0f6449
additional checks
lugi0 Mar 18, 2025
1895d8a
try using bot PAT
lugi0 Mar 18, 2025
a0ef243
don't fail with empty comment body
lugi0 Mar 18, 2025
47a4d90
add required arg to dismiss
lugi0 Mar 18, 2025
656472a
remove unused action
lugi0 Mar 18, 2025
e13e80c
check for allowed users
lugi0 Mar 19, 2025
d6abc7b
fix typo, more logging
lugi0 Mar 19, 2025
d467bce
workaround team membership
lugi0 Mar 19, 2025
bd872ce
fix typo, check for submitter/pr owner
lugi0 Mar 19, 2025
69e80ab
don't add lgtm label for owner of PR
lugi0 Mar 19, 2025
79fa746
implement org/team logic
lugi0 Mar 20, 2025
71586ee
fix typo
lugi0 Mar 20, 2025
e5fb8ed
reuse APPROVED constant
lugi0 Mar 25, 2025
bbbbd0c
fix type imports for github library
lugi0 Apr 1, 2025
863dcee
fix typo
lugi0 Apr 1, 2025
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
3 changes: 2 additions & 1 deletion .github/workflows/add-remove-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
pull_request_target:
types: [synchronize]

pull_request_review:
pull_request_review_comment:
types: [created]

issue_comment:
types: [created, edited, deleted]
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/lgtm-approval.yml
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]

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 }}