Skip to content

Commit

Permalink
ci(gha): fix pr-modifications workflow to skip dependabot and renovat…
Browse files Browse the repository at this point in the history
…e PRs (#12601)

## Motivation

Reviewers checklist comment was unnecessarily being added to dependabot
PRs

## Implementation information

Fixed `pr-modifications.yaml` where `-author:dependabot` was not
working. Updated it to skip PRs from `app/dependabot` and
`app/renovate`. Made minor improvements to the workflow script

Signed-off-by: Bart Smykla <bartek@smykla.com>
  • Loading branch information
bartsmykla authored Jan 20, 2025
1 parent 23a4698 commit b9601d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-modification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
name: Get recent PRs
run: |
echo "out<<EOF" >> $GITHUB_OUTPUT
gh pr list -R ${{ github.repository }} --json number,title,url --search "updated:>=$(date --date='${{ env.LOOK_BACK }} ago' +'%Y-%m-%dT%H:%M:%S%z') -author:dependabot" >> $GITHUB_OUTPUT
gh pr list \
--repo ${{ github.repository }} \
--json number,title,url \
--search "updated:>=$(date --date='${{ env.LOOK_BACK }} ago' +'%Y-%m-%dT%H:%M:%S%z') -author:app/dependabot -author:app/renovate" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Show outputs
env:
Expand Down

0 comments on commit b9601d2

Please sign in to comment.