Skip to content

Commit

Permalink
github/actions: Approve PR before merge
Browse files Browse the repository at this point in the history
The man page converter action would fail w/o approval due to updated
branch merge policy.

Update the GH man page updater similarly even if current branch policy
is different. The policy can be changed in the future.

Signed-off-by: Jianxin Xiong <[email protected]>
  • Loading branch information
j-xiong committed Jan 30, 2025
1 parent 9c1eb38 commit e35aa02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gh-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ done

status=0
if test $i -lt $i_max; then
# approve the PR
gh pr review $pr_num --approve

# rebase the commit onto the base branch
gh pr merge $pr_num -r

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nroff-elves.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ done

status=0
if test $i -lt $i_max; then
# approve the PR
gh pr review $pr_num --approve

# rebase the commit onto the base branch
gh pr merge $pr_num -r

Expand Down

0 comments on commit e35aa02

Please sign in to comment.