Skip to content

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

Merged
tobiasdiez merged 5 commits into
masterfrom
add-auto-approve-workflow
Feb 16, 2021
Merged

Auto-approve depend-a-bot-PRs#7332
tobiasdiez merged 5 commits into
masterfrom
add-auto-approve-workflow

Conversation

@koppor

@koppor koppor commented Jan 11, 2021

Copy link
Copy Markdown
Member

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.

@tobiasdiez tobiasdiez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please add this to the auto-merge workflow: https://github.com/JabRef/jabref/blob/master/.github/workflows/automerge.yml

@tobiasdiez tobiasdiez added the status: changes-required Pull requests that are not yet complete label Jan 12, 2021
Comment thread .github/workflows/automerge.yml Outdated
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto approve
uses: hmarr/auto-approve-action@v2.0.0
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' && steps.waitforstatuschecks.outputs.status == 'success'

Copy link
Copy Markdown
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
Copy Markdown
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