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

Enable automerge on pre and post-release workflows #2010

Merged
merged 10 commits into from
Jun 7, 2022

Conversation

epassaro
Copy link
Member

@epassaro epassaro commented May 4, 2022

Description

Automerge requires important changes in the TARDIS infrastructure:

  • Add branch protection rules to enforce passing tests and docs before merging a pull request DONE
  • Make @tardis-bot a less privileged user to avoid merging pull requests with failing tests. In this moment the bot has administator rights and does not follow the principle of least privilege. All the operations made by the bot can be performed with less privileges (see this table) DONE
  • ⚠️ Remove @tardis-bot from organization OWNERS

This pull request makes minor changes to pre and post release:

  • Changes to pull request body message.

Other changes:

  • Change job name in docs workflow (required to mark this job as a required status check before automerge).

Motivation and context

How has this been tested?

  • Testing pipeline
  • Other

Examples

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • None of the above

Checklist

  • I have updated the documentation according to my changes
  • I have built the documentation by applying the build_docs label to this pull request (if you don't have enough privileges a reviewer will do it for you)
  • I have requested two reviewers for this pull request

@epassaro epassaro marked this pull request as draft May 4, 2022 20:32
@epassaro epassaro force-pushed the ci/enable-automerge branch from db7d4bf to ee89b5c Compare May 4, 2022 20:42
@codecov
Copy link

codecov bot commented May 4, 2022

Codecov Report

Merging #2010 (0234f45) into master (2b220af) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2010   +/-   ##
=======================================
  Coverage   59.87%   59.87%           
=======================================
  Files          70       70           
  Lines        8157     8157           
=======================================
  Hits         4884     4884           
  Misses       3273     3273           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@epassaro epassaro force-pushed the ci/enable-automerge branch from 6a5228f to dce47c7 Compare May 4, 2022 21:20
@epassaro epassaro force-pushed the ci/enable-automerge branch 2 times, most recently from 7290f18 to 267d441 Compare May 5, 2022 22:44
@epassaro epassaro force-pushed the ci/enable-automerge branch from 3888117 to cb9a242 Compare May 7, 2022 21:17
@tardis-bot
Copy link
Contributor

tardis-bot commented May 7, 2022

*beep* *bop*

Hi, human.

The build-docs workflow has failed

Click here to see the build log.

@epassaro epassaro force-pushed the ci/enable-automerge branch from 7c233b9 to cb9a242 Compare May 7, 2022 22:50
@epassaro epassaro changed the title Enable automerge on pre and post-release workflows Prepare automerge on pre and post-release workflows May 8, 2022
@epassaro epassaro force-pushed the ci/enable-automerge branch 3 times, most recently from 4255814 to 8228180 Compare May 8, 2022 22:39
@epassaro epassaro force-pushed the ci/enable-automerge branch 3 times, most recently from 82fd7fa to c756f32 Compare May 31, 2022 16:24
@epassaro epassaro requested a review from tardis-bot May 31, 2022 17:10
@epassaro epassaro force-pushed the ci/enable-automerge branch from 55e96c0 to 9062801 Compare May 31, 2022 18:32
@epassaro epassaro force-pushed the ci/enable-automerge branch from 653deae to b7a1a0c Compare May 31, 2022 19:10
@epassaro epassaro changed the title Prepare automerge on pre and post-release workflows Enable automerge on pre and post-release workflows May 31, 2022
@epassaro epassaro marked this pull request as ready for review May 31, 2022 19:37
@epassaro epassaro requested review from andrewfullard and wkerzendorf and removed request for tardis-bot May 31, 2022 19:39
@andrewfullard
Copy link
Contributor

Seems sensible, assuming we set the bot up correctly.

@epassaro epassaro force-pushed the ci/enable-automerge branch from 862c6ce to 4574a52 Compare June 2, 2022 18:09
@epassaro epassaro force-pushed the ci/enable-automerge branch from 4574a52 to dbf904b Compare June 5, 2022 18:40
@epassaro epassaro marked this pull request as draft June 6, 2022 14:59
@epassaro epassaro marked this pull request as ready for review June 7, 2022 17:34
@epassaro epassaro merged commit b394f46 into tardis-sn:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants