Skip to content

Commit

Permalink
Updated GitHub actions to the latest scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 12, 2024
1 parent 78f6c6f commit 80b2b6c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .drevops/tests/bats/_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ assert_files_present_common() {

assert_files_present_drupal "${dir}" "${suffix}" "${suffix_abbreviated}" "${suffix_abbreviated_camel_cased}" "${suffix_camel_cased}" "${webroot}"

# Assert that PR template was processed
assert_file_contains ".github/PULL_REQUEST_TEMPLATE.md" "[${suffix_abbreviated_uppercase}-123] Verb in past tense with dot at the end."

popd >/dev/null || exit 1
}

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Checklist before requesting a review

- [ ] I have formatted the subject to include ticket number as `[YSCODE-123] Verb in past tense with dot at the end.`
- [ ] I have formatted the subject to include ticket number as `[#123] Verb in past tense with dot at the end.`
- [ ] I have added a link to the issue tracker
- [ ] I have provided information in `Changed` section about WHY something was done if this was not a normal implementation
- [ ] I have performed a self-review of my code
Expand Down
8 changes: 5 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name-template: '$NEXT_MINOR_VERSION'
tag-template: '$NEXT_MINOR_VERSION'
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
default: minor
template: |
## What's new since $PREVIOUS_TAG
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
$CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: 'Auto Author Assign'

on:
pull_request_target:
types: [opened, reopened]
types:
- opened
- reopened

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest

steps:
- uses: toshimaru/[email protected]
- name: Assign author
uses: toshimaru/[email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Draft release notes

on:
push:
Expand All @@ -15,8 +15,11 @@ jobs:
permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest

steps:
- uses: release-drafter/release-drafter@v5
- name: Draft release notes
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: "Auto-label a PR with a conflict"

on:
push:
pull_request_target:
types: [synchronize]
types:
- synchronize

jobs:
main:
Expand Down

0 comments on commit 80b2b6c

Please sign in to comment.