Skip to content

Commit

Permalink
add write permission for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Jun 28, 2023
1 parent 447c495 commit e0b119b
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ updates:
- "mimmi20"
labels:
- "dependencies"
- "patch"
versioning-strategy: "increase"
target-branch: "master"
commit-message:
Expand All @@ -38,7 +39,7 @@ updates:
- "mimmi20"
labels:
- "dependencies"
- "patch"
target-branch: "master"
commit-message:
include: "scope"
prefix: "github-actions"
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/template
#- 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

0 comments on commit e0b119b

Please sign in to comment.