Skip to content

Commit

Permalink
i160 - set up label requirement for PRs and set first release version (
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore authored Mar 7, 2023
1 parent ed740bc commit 275089b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Verify
on:
pull_request:
branches:
- '**'
push:
branches:
- master

jobs:
branches:
runs-on: ubuntu-latest
name: Disallow "master" branch name
steps:
- uses: actions/checkout@v2

- name: Check branch names
run: |
git fetch --all --quiet --prune --prune-tags
if [[ -n "$(git branch --all --list master */master)" ]]; then
echo "A branch named 'master' was found. Please remove it."
echo "$(git branch --all --list master */master)"
fi
[[ -z "$(git branch --all --list master */master)" ]]
25 changes: 25 additions & 0 deletions .github/workflows/release_labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Verify
on:
pull_request:
branches:
- '**'
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled

jobs:
check_pr_labels:
runs-on: ubuntu-latest
name: PR has required labels
steps:
- uses: actions/checkout@v2

# https://github.com/marketplace/actions/label-checker-for-pull-requests
- name: Check PR for Release Notes labels
uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: patch-ver,minor-ver,major-ver,ignore-for-release
repo_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion lib/iiif_print/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IiifPrint
VERSION = '0.0.1'.freeze
VERSION = '1.0.0'.freeze
end

0 comments on commit 275089b

Please sign in to comment.