Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 7, 2024
1 parent 6c1997c commit 9a97b99
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 39 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/license.yml → .github/workflows/copyrights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
name: license
name: copyrights
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
license:
copyrights:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
header="Copyright (c) $(date +%Y) Zerocracy"
failed="false"
while IFS= read -r file; do
if ! grep -q "${header}" "${file}"; then
failed="true"
echo "⚠️ Copyright header is not found in: ${file}"
else
echo "File looks good: ${file}"
fi
done < <(find . -type f \( \
-name "Dockerfile" -o \
-name "LICENSE.txt" -o \
-name "Makefile" -o \
-name "Rakefile" -o \
-name "*.sh" -o \
-name "*.rb" -o \
-name "*.fe" -o \
-name "*.yml" \
\) -print)
if [ "${failed}" = "true" ]; then
exit 1
fi
- uses: yegor256/copyrights-action@0.0.3
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GEM
concurrent-ruby (1.2.3)
ethon (0.16.0)
ffi (>= 1.15.0)
factbase (0.0.43)
factbase (0.0.44)
json (~> 2.7)
loog (~> 0.2)
nokogiri (~> 1.10)
Expand All @@ -27,7 +27,7 @@ GEM
gli (2.21.1)
iri (0.8.0)
json (2.7.2)
judges (0.5.0)
judges (0.6.0)
backtrace (~> 0.3)
concurrent-ruby (= 1.2.3)
factbase (~> 0.0)
Expand Down
4 changes: 2 additions & 2 deletions judges/github-events/scan-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
---
category: live
options:
max_events: 1
max_events: 10
repositories: yegor256/judges
expected:
- /fb[count(f)=1]
- /fb/f[what='github-events']
- /fb/f/event_id
- /fb/f/when
- /fb/f/what
10 changes: 5 additions & 5 deletions lib/octo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def octo
o.auto_paginate = true
o.connection_options = {
request: {
open_timeout: 5,
timeout: 5
open_timeout: 15,
timeout: 15
}
}
stack = Faraday::RackBuilder.new do |builder|
builder.use Faraday::HttpCache, serializer: Marshal, shared_cache: false
builder.use Octokit::Response::RaiseError
builder.adapter Faraday.default_adapter
builder.use(Faraday::HttpCache, serializer: Marshal, shared_cache: true)
builder.use(Octokit::Response::RaiseError)
builder.adapter(Faraday.default_adapter)
end
o.middleware = stack
o = Obk.new(o, pause: 1000)
Expand Down

0 comments on commit 9a97b99

Please sign in to comment.