Skip to content
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

Auto-approve depend-a-bot-PRs #7332

Merged
merged 5 commits into from
Feb 16, 2021
Merged

Auto-approve depend-a-bot-PRs #7332

merged 5 commits into from
Feb 16, 2021

Conversation

koppor
Copy link
Member

@koppor koppor commented Jan 11, 2021

We currently had issues that the master branch gets pushed to accidently or that failing PRs are merged. Thus, we reconfigured the master branch:

grafik

That leads that #dependabot PRs need to be approved: #7331

This is additional overhead. If we want to keep the protection (which I think, we should to prevent accidental merges causing additional effort), we need auto-approve: https://github.com/hmarr/auto-approve-action

This PR adds this.

  • Change in CHANGELOG.md described (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

Copy link
Member

@tobiasdiez tobiasdiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobiasdiez tobiasdiez added the status: changes required Pull requests that are not yet complete label Jan 12, 2021
@@ -15,6 +15,11 @@ jobs:
checkInterval: 13
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto approve
uses: hmarr/[email protected]
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' && steps.waitforstatuschecks.outputs.status == 'success'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first two checks should be for the whole job (and the first is already, see line 8).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a while to understand the comment. With some patience, I did. fixed.

@koppor koppor removed their assignment Feb 15, 2021
@koppor koppor added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed status: changes required Pull requests that are not yet complete labels Feb 15, 2021
@tobiasdiez tobiasdiez merged commit 30c1b88 into master Feb 16, 2021
@tobiasdiez tobiasdiez deleted the add-auto-approve-workflow branch February 16, 2021 08:56
Siedlerchr added a commit that referenced this pull request Feb 21, 2021
* upstream/master:
  Bump pascalgn/automerge-action from v0.13.0 to v0.13.1 (#7445)
  Auto-approve depend-a-bot-PRs (#7332)
  Clarify that changelog is user-facing
  Remove unmaintained AUTHORS file
  Fixes the issue "Non valid number as font size results in an uncaught exception." (#7438)
  Zbmath fetcher (#7440)
  Bump me.champeau.gradle.jmh from 0.5.2 to 0.5.3 (#7444)
  Bump styfle/cancel-workflow-action from 0.7.0 to 0.8.0 (#7446)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants