Skip to content

Releases: CasperWA/push-protected

v2.6.0

08 Dec 08:56
Compare
Choose a tag to compare

Automation, more dev tools & better console printing

Automation for dependency inclusion and more have been improved with several workflows.
Pylint, Mypy, bandit and safety have been added as CI developer tools for an improved Python code base.
When printing to the console from Python, the buffer is immediately flushed, having the effect that the GitHub Actions console immediately receives the printed statements (configuration overview and status updates) as they happen, instead of printing everything when the Python code exits.

Changelog

v2.6.0 (2021-12-08)

Full Changelog

Implemented enhancements:

Fixed bugs:

  • Correct target branch for dependabot #71
  • actions/checkout@v1 still checking out wrong commit SHA #67
  • Not properly reset to HEAD commit of remote branch #63
  • unprotect_reviews not doing its job #54

Closed issues:

  • Not able to use your action due to a fatal error #59
  • Update README - user admin rights #55

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

v2.5.0

13 Oct 22:09
Compare
Choose a tag to compare

Updates:

  • Respect local CI changes and push directly instead of going through a merge sequence (#53)

Developer updates:

  • Improve CI run stability by avoiding parallel jobs (#53)
  • Properly use actions/checkout@v1 for "v1" CI jobs (#53)
  • Use vMAJOR version for all applicable GitHub Actions (#53)
  • Test new "push directly"-workflow with extra CI job (#53)
  • Fix minor print statement errors (#53)

v2.4.1

04 Oct 12:40
Compare
Choose a tag to compare

Updates:

  • Prefix local action bash variable names with PUSH_PROTECTED_ to avoid clashing with workflow bash variables (#51)
  • Update action.yml default values to explicitly be variables (#51)

Developer updates:

  • Update dependencies (#49)
    • pre-commit~=2.15
  • Update pre-commit hook black to v21.9b0.
  • Silence HTML code linting in README.md.

v2.4.0

04 Aug 12:46
Compare
Choose a tag to compare

Updates:

  • Do not remove locally created tags before pushing (#45, @THuppke).
  • Update requests dependency to ~=2.26 (#44).

Developer updates:

  • Test tags option in CI (#46).
  • Update dependencies (#37, #41, #43):
    • pre-commit~=2.13
    • invoke~=1.6
  • Update pre-commit hooks (#40, #41):
    • black: 21.5b2
    • pre-commit-hooks: v4.0.1
  • Update GitHub Actions versions according to new @dependabot policy of using full version tags (#40).

v2.3.0

01 Mar 17:32
Compare
Choose a tag to compare

Updates:

  • Be more free when determining whether a branch is protected or not (#35).
  • Don't rely on the flaky branch query parameter for the GitHub REST API (#35).
  • Use latest requests version (2.25) (#29).

Developer updates:

  • Updated development dependencies and pre-commit hook versions (#32, #33).

v2.2.0

05 Nov 23:10
Compare
Choose a tag to compare

Updates:

  • If there are no changes in the local branch compared to the target branch (on the remote origin) the action will not push to the repository and go through a lot of unnecessary steps (#28).
  • Using python:alpine Docker image instead of python:3.8 (#28).
    This is a much slimmer image, leading to a speed up in action build time.

Developer updates:

  • Remove use of sleep parameter in CI (#28).
  • Minor fixes, sanity upgrades and comments (#28).

v2.1.1

04 Nov 01:25
Compare
Choose a tag to compare

Fixes:

  • Include space in git option line (#25)

Developer changes:

  • Update pre-commit dependency (#23)

v2.1.0

29 Oct 18:25
Compare
Choose a tag to compare

Changes:

  • Remove use of global cache variable (#22)

Fixes:

  • Perform pushing tags in a separate git push command (#19)

Developer changes:

  • Use action in new release workflow for updating tags and Python package version (#20)
  • Update job names for CI tests of different actions/checkout versions (#21)

v2.0.0

29 Oct 01:36
b8e23c7
Compare
Choose a tag to compare

The inputs have had a makeover. The action is now mirroring ´ad-m/github-push-action` in terms of inputs (see the new "Usage" section in the README).

The recommended way to use the action is now:

  1. Use actions/checkout.
  2. Perform changes, commit, update/create tags.
  3. Push to a protected branch with this action.

Now, when pushing to a non-protected branch it will skip a lot of steps needed to push to protected branches making it faster. It will also ignore inputs related only to protected branches (like unprotect_reviews).

v1.0.1

15 Sep 23:32
v1.0.1
239aa97
Compare
Choose a tag to compare

The main point of this patch update is the fix of unprotect_reviews (see #9).

In other news:

  • Split pip dependencies out of setup.py to requirements*.txt files in order to add dependabot.
  • Update README with mention of adding push-action/ to workflows, which is not needed if the workflow is run unconditionally for any and all push events.