Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add write permission for issues #289

Merged
merged 4 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
- color: 0075ca
name: "documentation"
description: "Improvements or additions to documentation"
- color: 84175d
name: "major"
description: "Major change"
- color: d86c28
name: "minor"
description: "Minor change"
- color: 0a9b47
name: "patch"
description: "Patch"

# other Labels to mimmi20/laminas-router-hostname
#- color: 5319e7
Expand Down
6 changes: 6 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ template: |
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&#@`' # You can add # and @ to disable mentions, and add ` to disable code blocks.
no-changes-template: "- No changes"
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
version-template: "$MAJOR.$MINOR.$PATCH"

exclude-labels:
- "duplicate"
Expand All @@ -22,17 +25,20 @@ version-resolver:
labels:
- "bc break"
- "removed"
- "major"
minor:
labels:
- "deprecated"
- "security"
- "minor"
patch:
labels:
- "bug"
- "dependencies"
- "enhancement"
- "maintenance"
- "documentation"
- "patch"
default: patch

autolabeler:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cleanup caches by a branch
on:
pull_request:
types:
- closed
- "closed"
workflow_dispatch:

jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ name: "CodeQL"
on:
push:
branches:
- master
- "master"
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- "master"
schedule:
- cron: '28 0 * * 0'
- cron: "28 0 * * 0"

jobs:
analyze:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ name: "Sync labels in the declarative way"
on:
push:
branches:
- master
- "master"
paths:
- ".github/labels.yml"
- ".github/workflows/labels.yml"

permissions:
contents: read

jobs:
build:
name: "Sync labels"

permissions:
issues: write

runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lock closed issue
on:
issues:
types:
- closed
- "closed"

jobs:
lock:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/reactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: 'Reaction Comments'
on:
issue_comment:
types:
- created
- edited
- "created"
- "edited"
pull_request_review_comment:
types:
- created
- edited
- "created"
- "edited"

permissions:
actions: write
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- "master"
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
types:
- "opened"
- "reopened"
- "synchronize"
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
# pull_request_target:

permissions:
contents: read

jobs:
update-release-draft:
permissions:
# write permission is required to create a github release
# write permission is required to create a GitHub release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
Expand Down