diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..aa58bbb --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +*@softservedata diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..378b862 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## Describe your changes + +## Issue ticket number and link + +## Checklist before requesting a review +- [ ] I have performed a self-review of my code +- [ ] If it is a core feature, I have added thorough tests +- [ ] Do we need to implement analytics? +- [ ] Will this be part of a product update? If yes, please write one phrase about this update diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 0000000..ae73a0d --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,19 @@ +name: Discord notification + +on: + pull_request: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + + steps: + - name: Send Discord notification + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "content":"New PR created: '${{ github.event.pull_request.html_url }}'" + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/find_bash_users.sh b/find_bash_users.sh new file mode 100644 index 0000000..181f95f --- /dev/null +++ b/find_bash_users.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +FILE=${1:-/etc/passwd} + +if [ ! -f "$FILE" ]; then + echo "Error" + exit 1 +fi + +echo "Users in file $FILE:" + +grep '/bin/bash$' "$FILE" | cut -d: -f1