Skip to content

Commit

Permalink
Add count required review and branch protection checking
Browse files Browse the repository at this point in the history
  • Loading branch information
alinceDev committed Dec 19, 2022
1 parent 2ad2580 commit c79e14c
Show file tree
Hide file tree
Showing 7,631 changed files with 18,666 additions and 688,670 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 4 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"jasmine": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
}
16 changes: 0 additions & 16 deletions .github/workflows/base.yml

This file was deleted.

100 changes: 2 additions & 98 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,99 +1,3 @@
# Dependency directory
!node_modules
.idea
node_modules

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
15 changes: 3 additions & 12 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
![Linting and Unit Tests](https://github.com/leopic/gh-action-open-pr-slack-parser/workflows/Linting%20and%20Unit%20Tests/badge.svg?branch=master)

# GitHub Open PR list Slack Block Parser

A GitHub action, meant to be run on a schedule, to list all open pull requests on a GitHub repository.
# A GitHub action reporting open PR and branch protection state

## Usage

```yaml
name: Verify All Open Pull Requests
name: Github reporting

on:
schedule:
Expand All @@ -18,16 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get PR list
uses: leopic/gh-action-[email protected]
uses: alinceDev/gh-action-reporting-slack@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
slackbot-token: YOUR_SLACKBOT_TOKEN
slack-conversation-id: YOUR_CHANNEL_ID
ingore-draft: true

```

## Output example

The output is similar to:
![Usage example when integrated into Slack](https://cldup.com/_1kSIuUbXi.png)
16 changes: 5 additions & 11 deletions action.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Open Pull Requests Notifier'
description: 'Posts a message on slack with the list of open pull requests'
name: 'Github reporting notifier'
description: 'Posts a message on slack a reporting of github'
inputs:
github-token:
required: true
Expand All @@ -10,13 +10,7 @@ inputs:
slack-conversation-id:
required: true
description: 'Channel or group that the message will be delivered to'
ignore-draft:
required: false
default: 'true'
description: Ignore draft pull requests
runs:
using: 'node12'
main: 'index.js'
branding:
icon: 'calendar'
color: 'red'
using: 'node16'
main: 'dist/index.js'

Loading

0 comments on commit c79e14c

Please sign in to comment.