Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RolfMoleman authored Nov 10, 2023
0 parents commit f1ee05a
Show file tree
Hide file tree
Showing 22 changed files with 920 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
38 changes: 38 additions & 0 deletions .github/label-commenter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
labels:
- name: invalid
labeled:
issue:
body: Please follow the issue templates.
action: close
pr:
body: Please follow the pull request templates.
action: close
unlabeled:
issue:
body: Thank you for following the template. The repository owner will reply.
action: open
- name: forum
labeled:
issue:
body: |
Please ask questions about GitHub Actions at the following forum.
https://github.community/t5/GitHub-Actions/bd-p/actions
action: close
- name: wontfix
labeled:
issue:
body: This will not be worked on but we appreciate your contribution.
action: close
unlabeled:
issue:
body: This has become active again.
action: open
- name: duplicate
labeled:
issue:
body: This issue already exists.
action: close
- name: good first issue
labeled:
issue:
body: This issue is easy for contributing. Everyone can work on this.
119 changes: 119 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
# See https://developer.github.com/v3/repos/#edit for all available settings.

# The name of the repository. Changing this will rename the repository
name: awesome-actions

# A short description of the repository that will show up on GitHub
description: This description was created by another fabulous GitHub Action

# A URL with more information about the repository
homepage: https://github.com/features/actions

# A comma-separated list of topics to set on the repository
topics: github, probot, actions

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: true

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false

# Either `true` to enable downloads for this repository, `false` to disable them.
has_downloads: true

# Updates the default branch for this repository.
default_branch: master

# Either `true` to allow squash-merging pull requests, or `false` to prevent
# squash-merging.
allow_squash_merge: true

# Either `true` to allow merging pull requests with a merge commit, or `false`
# to prevent merging pull requests with merge commits.
allow_merge_commit: true

# Either `true` to allow rebase-merging pull requests, or `false` to prevent
# rebase-merging.
allow_rebase_merge: true

# Labels: define labels for Issues and Pull Requests
labels:
- name: bug
color: CC0000
description: An issue with the system 🐛.

- name: feature
color: 336699
description: New functionality.

- name: first-timers-only
# include the old name to rename an existing label
oldname: Help Wanted

# Milestones: define milestones for Issues and Pull Requests
milestones:
- title: alpha version
description: release of the alpha version to the public
# The state of the milestone. Either `open` or `closed`
state: open

- title: beta version
description: release of the beta version to the public
# The state of the milestone. Either `open` or `closed`
state: open

- title: GA
description: release of the final version to the public
# The state of the milestone. Either `open` or `closed`
state: open

# Collaborators: give specific users access to this repository.
collaborators:

- username: hubot
permission: pull

# NOTE: The APIs needed for teams are not supported yet by GitHub Apps
# https://developer.github.com/v3/apps/available-endpoints/
teams:
- name: core
permission: admin
- name: docs
permission: push

branches:
- name: master
# https://developer.github.com/v3/repos/branches/#update-branch-protection
# Branch Protection settings. Set to null to disable
protection:
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
required_pull_request_reviews:
# The number of approvals required. (1-6)
required_approving_review_count: 1
# Dismiss approved reviews automatically when a new commit is pushed.
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
dismissal_restrictions:
users: []
teams: []
# Required. Require status checks to pass before merging. Set to null to disable
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts: []
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
enforce_admins: false
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
restrictions:
users: []
teams: []
21 changes: 21 additions & 0 deletions .github/workflows/add-stars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Add Stars

on: [watch]

jobs:
addstars:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: add watcher to readme
run: |
echo -e "\nWe got a :star: from [@${{github.actor}}](https://github.com/${{github.actor}})" >> README.md
- name: Commit changes
uses: elstudio/actions-js-build/commit@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUSH_BRANCH: 'master'



27 changes: 27 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bootstrap Repository
on: [push]

jobs:
bootstrap:
if: endsWith(github.ref, '/master') && github.repository != 'octodemo/awesome-actions' && !startsWith(github.repository,'jonico/')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Create Issue From File
uses: peter-evans/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_TITLE: Welcome ${{github.actor}}
ISSUE_CONTENT_FILEPATH: ./new-issue.md
ISSUE_LABELS: report, automated issue

- name: Add a project board
run: ./create-board.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Remove bootstrap workflow file from master branch
run: ./scripts/remove-bootstrap-workflow.sh
env:
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/cats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Cats

on: [pull_request]

jobs:
cats:
runs-on: ubuntu-latest
steps:
- name: Action Cats
uses: ruairidhwm/action-cats@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/comment-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Comment run"
on:
issue_comment:
types: [created, edited]

jobs:
comment-run:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
# 0 indicates all history
fetch-depth: 0
- uses: nwtgck/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
allowed-associations: '["OWNER", "COLLABORATOR"]'
20 changes: 20 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Greetings

on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
# Welcome ${{github.actor}} :tada:
Congrats to your first issue!
![](https://camo.githubusercontent.com/f08021a3c40652e932c61ab2b4a004f3a57b8ff7/687474703a2f2f7261636b2e322e6d736863646e2e636f6d2f6d656469612f5a676b794d44457a4c7a41344c7a41314c7a59794c32467559326876636d3168626934324e6a4a6b5953356e6157594b63416c306148567459676b344e5442344f4455775067706c435770775a772f65333664313462642f3163302f616e63686f726d616e2e6a7067)
pr-message: |
# Welcome ${{github.actor}} :tada:
Congrats to your first PR!
![giphy 2](https://cloud.githubusercontent.com/assets/395397/14451851/3abad496-003f-11e6-9a35-1ba112d981d7.gif)
25 changes: 25 additions & 0 deletions .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Label Commenter

on:
issues:
types:
- labeled
- unlabeled
pull_request:
types:
- labeled
- unlabeled

jobs:
comment:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: master

- name: Label Commenter
uses: peaceiris/actions-label-commenter@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/label-commenter-config.yml
17 changes: 17 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
issue_comment:
types: [created]
name: Automatic Rebase
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 1 day with no activity. Remove stale label or comment or this will be closed in 2 days'
stale-pr-message: 'This pr is stale because it has been open 1 day with no activity. Remove stale label or comment or this will be closed in 2 days'
stale-issue-label: 'stale-issue'
exempt-issue-label: 'awaiting-approval'
stale-pr-label: 'stale-pr'
exempt-pr-label: 'awaiting-approval'
days-before-stale: 1
days-before-close: 2
17 changes: 17 additions & 0 deletions .github/workflows/turn-code-todos-into-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "TODO Code to Issue"
on: ["push"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@master"
with:
REPO: ${{ github.repository }}
BEFORE: ${{ github.event.before }}
SHA: ${{ github.sha }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: "# TODO"
COMMENT_MARKER: "#"
id: "todo"
Loading

0 comments on commit f1ee05a

Please sign in to comment.