Skip to content

Commit

Permalink
#56: Add common project workflows (#62)
Browse files Browse the repository at this point in the history
* Added license_check.yml
* Added dependent_items.yml
* Renamed assign_project_to_issue.yml to assign_issue_to_project.yml
* Added codeowners
  • Loading branch information
benedeki authored Jul 26, 2023
1 parent 3751ab7 commit c0cdbfc
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/codeowners
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @benedeki @lsulak @TebaleloS @Zejnilovic @dk1844
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/AbsaOSS/projects/7
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
github-token: ${{ secrets.PAT_REPO_PROJECT_DISCUSS }}
59 changes: 59 additions & 0 deletions .github/workflows/dependent_items.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Dependent Issues

on:
issues:
types:
- opened
- edited
- closed
- reopened
pull_request:
types:
- opened
- edited
- closed
- reopened
# Makes sure we always add status check for PRs. Useful only if
# this action is required to pass before merging. Otherwise, it
# can be removed.
- synchronize

# Schedule a daily check. Useful if you reference cross-repository
# issues or pull requests. Otherwise, it can be removed.
schedule:
- cron: '0 0 * * *'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: z0al/[email protected]
env:
# (Required) The token to use to make API calls to GitHub.
GITHUB_TOKEN: ${{ secrets.PAT_REPO_PROJECT_DISCUSS }}
# (Optional) The token to use to make API calls to GitHub for remote repos.
GITHUB_READ_TOKEN: ${{ secrets.PAT_REPO_PROJECT_DISCUSS }}

with:
# (Optional) The label to use to mark dependent issues
label: dependent

# (Optional) Enable checking for dependencies in issues.
# Enable by setting the value to "on". Default "off"
check_issues: on

# (Optional) Ignore dependabot PRs.
# Enable by setting the value to "on". Default "off"
ignore_dependabot: on

# (Optional) A comma-separated list of keywords. Default
# "depends on, blocked by"
# keywords: depends on, blocked by

# (Optional) A custom comment body. It supports `{{ dependencies }}` token.
comment: >
This item depends on:
{{ dependencies }}
By **[Dependent Issues](https://github.com/z0al/dependent-issues)**.
34 changes: 34 additions & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Copyright 2021 ABSA Group Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: License Check

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]

jobs:
license-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- run: sbt headerCheck
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "4.2.4")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")


Expand Down

0 comments on commit c0cdbfc

Please sign in to comment.