Code Monkey home page Code Monkey logo

block-autosquash-commits-action's Introduction

Hi there 👋

Here are some of the recent projects I've been working on.

.NET

GitHub Actions

  • setup-dotnet - A wrapper around the official actions/setup-dotnet action with extra features that aren't yet implemented.
  • dotnet-sdk-updater - Update global.json files with the latest .NET SDK version.
  • actions-toolkit - Helper functions, scripts, and Typescript types for working with GitHub Actions.
  • secrets-sync - Sync secrets across multiple repositories.
  • secrets-sync-template - Template to quickly get setup using secrets-sync.

GitHub Actions Workflows

Check out my OnlyPans 🍕

block-autosquash-commits-action's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar xt0rted avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

block-autosquash-commits-action's Issues

Check suddenly started passing despite both `squash!` and `fixup!` commits

We've been using this action successfully for a while now, and as far as I know, it has always worked just fine for us, but we pretty much only use fixup! commits. Today I added two squash! commits to a PR, and to my surprise the check passed rather than failing as expected.

UPDATE: I added an empty fixup! commit, just to double check that the action would fail, but it didn't. So there may be an issue with the number of commits in the PR (currently at 42) (we don't normally have this many commits in a PR, this is an outlier). We haven't previously had to add the read permission, as outlined in the readme, but I'll try that too, just in case something changed very recently.

UPDATE 2: Nope, still fails with read-permission set explicitly.

Here's a link to the run: https://github.com/Lundalogik/lime-elements/pull/1297/checks?check_run_id=3122228255

As you can see from these screenshots, we're running v2.1.0 of the action, and the two last commits where squash! commits:

image

image

This is the section of the workflow file that concerns this job:

name: Pull Request Checks
on: [pull_request]

jobs:

# …snip…

  autosquash:
    name: Block Autosquash Commits
    runs-on: ubuntu-latest
    steps:
      - name: Block Autosquash Commits
        uses: xt0rted/[email protected]
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}

# …snip…

Feature Request: User-specific strings to block

Hey Brian,

first thank you for this action! It is a really useful feature and very easy to use without manually digging into this. ❤️

I just recognized i sometimes use commit-prefixes as 'donotmerge!' to store some dirty stuff, that i don't want to get merged, but that even is no fixup (as there is no base-commit to squash into). So i thought it would be cool, if one could configure somehow for user-specific strings, that do additionally block the PR to get merged!?

Greets! :)
Jonas

Dependabot couldn't find a <anything>.yml for this project

Dependabot couldn't find a .yml for this project.

Dependabot requires a .yml to evaluate your project's current Github_actions dependencies. It had expected to find one at the path: /.github/workflows/<anything>.yml.

If this isn't a Github_actions project, or if it is a library, you may wish to disable updates for it from within Dependabot.

You can mention @dependabot in the comments below to contact the Dependabot team.

feature request: consider all PR commits after the first an autosquash commit

We have a use case where we consider every commit of a pull request after the first one an autosquash commit, regardless if it has !fixup or !squash. The idea here is we want each pull request to only have a single associated commit, and it is difficult for us to enforce that pull requests always use --fixup or --squash correctly.

Thoughts on adding an optional parameter that changes the behavior so that if a pull request has more than one commit, regardless if it contains !fixup or !squash, that too is considered an error and they must be squashed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.