You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/28 12:09:26 UTC

[airflow-pre-commit-action] 11/20: Deployed to github pages

This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to tag v2.0.0
in repository https://gitbox.apache.org/repos/asf/airflow-pre-commit-action.git

commit 0c6039fa09bf2036a38c9f780bb2750c1f0f053e
Author: Github Actions <us...@example.com>
AuthorDate: Fri May 15 15:17:20 2020 +0000

    Deployed to github pages
---
 README.md     | 14 ++++++++++++++
 action.yml    |  4 ++++
 dist/index.js |  4 ++--
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 92bbe9b..27bb546 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,20 @@ This does a few things:
 
 Hopefully in the future when `actions` matures the yaml can be simplified.
 
+### using this action with custom invocations
+
+By default, this action runs all the hooks against all the files.  `extra_args`
+lets users specify a single hook id and/or options to pass to `pre-commit run`.
+
+Here's a sample step configuration that only runs the `flake8` hook against all
+the files (use the template above except for the `pre-commit` action):
+
+```yaml
+    - uses: pre-commit/action@v1.0.1
+      with:
+        extra_args: flake8 --all-files
+```
+
 ### using this action in private repositories
 
 this action also provides an additional behaviour when used in private
diff --git a/action.yml b/action.yml
index 941ec1d..9906815 100644
--- a/action.yml
+++ b/action.yml
@@ -1,6 +1,10 @@
 name: pre-commit
 description: run pre-commit and optionally commit back to the pull request
 inputs:
+  extra_args:
+    description: options to pass to pre-commit run
+    required: false
+    default: '--all-files'
   token:
     description: github token to clone / push with
     required: false
diff --git a/dist/index.js b/dist/index.js
index 71961be..b185e90 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,4 +1,4 @@
-!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typ [...]
+!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typ [...]
 /*!
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  *
@@ -12,4 +12,4 @@ function i(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))
  * Copyright (c) 2014-2017, Jon Schlinkert.
  * Released under the MIT License.
  */
-var t}function n(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}function s(e,t,r){if("string"==typeof t){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const s=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(s=>{n(r[s])?s in t?i[s]=e(t[s],r [...]
\ No newline at end of file
+var t}function n(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}function s(e,t,r){if("string"==typeof t){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const s=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(s=>{n(r[s])?s in t?i[s]=e(t[s],r [...]
\ No newline at end of file