diff --git a/.github/Require PRs to main.json b/.github/Require PRs to main.json new file mode 100644 index 0000000..4c0b26e --- /dev/null +++ b/.github/Require PRs to main.json @@ -0,0 +1,38 @@ +{ + "id": 8498520, + "name": "Require PRs to main", + "target": "branch", + "source_type": "Repository", + "source": "RalphHightower/blog", + "enforcement": "active", + "conditions": { + "ref_name": { + "exclude": [], + "include": [ + "~DEFAULT_BRANCH" + ] + } + }, + "rules": [ + { + "type": "pull_request", + "parameters": { + "required_approving_review_count": 0, + "dismiss_stale_reviews_on_push": false, + "require_code_owner_review": false, + "require_last_push_approval": false, + "required_review_thread_resolution": true, + "automatic_copilot_code_review_enabled": false, + "allowed_merge_methods": [ + "merge", + "squash", + "rebase" + ] + } + }, + { + "type": "required_signatures" + } + ], + "bypass_actors": [] +} \ No newline at end of file diff --git a/.github/license-reminder.md b/.github/license-reminder.md new file mode 100644 index 0000000..6fb1c3a --- /dev/null +++ b/.github/license-reminder.md @@ -0,0 +1,3 @@ +It's a new year! 🎉 🎆 +Please update the LICENSE file to include the current year (e.g., 2025). +This helps keep the copyright notice accurate. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..43a3703 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,58 @@ + + +## Pull request type + + + +Please check the type of change your PR introduces: + +- [ ] New blog post +- [ ] Bugfix +- [ ] Jekyll change(s) +- [ ] Liquid change(s) +- [ ] Markdown change(s) +- [ ] YAML change(s) +- [ ] Build error(s) +- [ ] Feature +- [ ] Code style update (formatting, renaming) +- [ ] Refactoring (no functional changes, no api changes) +- [ ] Build related changes +- [ ] Documentation content changes +- [ ] Other (please describe): + +## Language + +- [ ] awk +- [ ] C/C++/C# +- [ ] Ruby +- [ ] Python + +## Files added + +- + +## Files modified + +- + +## Files deleted + +- + +## What is the current behavior? + + + +Issue Number: N/A + +## What is the new behavior? + + + +- +- +- + +## Other information + + \ No newline at end of file diff --git a/.github/workflows/NewYearUpdateCopyright.yml b/.github/workflows/NewYearUpdateCopyright.yml deleted file mode 100644 index a43edf7..0000000 --- a/.github/workflows/NewYearUpdateCopyright.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Create Issue to Update Year In Relevant Files -# developer: @RalphHightower -on: - schedule: - - cron: "0 5 1 1 *" # America/New_York (UTC-5:00) - -permissions: - actions: none - checks: none - contents: none - deployments: none - issues: none - packages: none - pull-requests: none - repository-projects: none - security-events: none - statuses: none - -jobs: - create_issue: - name: Create issue to update copyright year - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Harden the runner (Audit all outbound calls) - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 - with: - egress-policy: audit - - - name: Happy New Year! - run: | - new_issue_url=$(gh issue create \ - --title "$TITLE" \ - --assignee "$ASSIGNEES" \ - --label "$LABELS" \ - --body "$BODY") - if [[ $PINNED == true ]]; then - gh issue pin "$new_issue_url" - fi - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - TITLE: Happy New Year – Update License Year - ASSIGNEES: RalphHightower - LABELS: documentation - BODY: | - ### New Year's Maintenance - - - [ ] Update LICENSE. Add new year to year's span. - - PINNED: false - CLOSE_PREVIOUS: false diff --git a/.github/workflows/issueQuarterlyRelease.yml b/.github/workflows/issueQuarterlyRelease.yml new file mode 100644 index 0000000..8516132 --- /dev/null +++ b/.github/workflows/issueQuarterlyRelease.yml @@ -0,0 +1,31 @@ +name: issueQuarterlyRelease.yml – Create Quarterly Release + +on: + schedule: + - cron: 30 4 31 3 * + - cron: 30 4 30 6,9 * + - cron: 30 5 31 12 * + #workflow_dispatch: + +permissions: read-all + +jobs: + create-issue: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + + - name: Create Quarterly Release + uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0 + with: + title: "Issue Quarterly Release" + content-filepath: .github/quarterlyRelease.md + assignees: RalphHightower + labels: | + maintenance + license \ No newline at end of file diff --git a/.github/workflows/newYearUpdateCopyright.yml b/.github/workflows/newYearUpdateCopyright.yml new file mode 100644 index 0000000..06bc0e2 --- /dev/null +++ b/.github/workflows/newYearUpdateCopyright.yml @@ -0,0 +1,29 @@ +name: newYearUpdateCopyright.yml – New Year LICENSE Reminder + +on: + schedule: + - cron: '0 5 1 1 *' # Midnight EST on Jan 1 America/New_York + #workflow_dispatch: + +permissions: read-all + +jobs: + create-issue: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + + - name: Create LICENSE update issue + uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0 + with: + title: "Update LICENSE for the new year" + content-filepath: .github/license-reminder.md + assignees: RalphHightower + labels: | + maintenance + license \ No newline at end of file diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml index 792cfb9..94f51b2 100644 --- a/.github/workflows/stale-branches.yml +++ b/.github/workflows/stale-branches.yml @@ -5,13 +5,13 @@ on: schedule: - cron: '0 6 * * 0' -permissions: - issues: write - contents: write +permissions: read-all jobs: stale_branches: runs-on: ubuntu-latest + permissions: + issues: write steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 @@ -35,4 +35,4 @@ jobs: # include-protected-branches: false # include-ruleset-branches: false # ignore-commit-messages: '' - # ignore-committers: '' + # ignore-committers: '' \ No newline at end of file