diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..482f6fe --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,93 @@ +- name: "Bug: Already Fixed" + description: "Issues that report already fixed bugs." + color: "B3E88C" +- name: "Bug: Cannot Reproduce" + description: "Issues that report bugs that cannot be reproduced." + color: "f9d0c4" +- name: "Bug: Confirmed" + description: "Issues that report confirmed bugs." + color: "f9d0c4" +- name: "Bug: Fixed" + description: "Issues that report bugs and have been fixed." + color: "00fa9a" +- name: "Bug: Pending Response" + description: "Issues that report bugs and are pending of a response from the author." + color: "f9d0c4" +- name: "Bug: Unverified" + description: "Issues that report unverified bugs. Pending for inspection." + color: "f9d0c4" +- name: "Semver: Major" + description: "PRs that contain breaking changes and should be released in the next major version." + color: "c10f47" +- name: "Semver: Minor" + description: "PRs that contain new features and should be released in the next minor version." + color: "e4f486" +- name: "Semver: Patch" + description: "PRs that contain bugfixes and should be released in the next patch version." + color: "e8be8b" +- name: "Meta: Dependencies" + description: "Issues and PRs related to dependencies." + color: "ffff00" +- name: "Meta: Feature" + description: "Issues and PRs related to new features." + color: "ffff00" +- name: "Meta: BugFix" + description: "PRs that fix bugs or issues." + color: "4cce4a" +- name: "Meta: Cleanup" + description: "Issues and PRs related to code cleanup." + color: "ffff00" +- name: "Meta: Examples" + description: "Issues and PRs related to examples." + color: "ffff00" +- name: "Meta: GitHub" + description: "Issues and PRs related to GitHub." + color: "ffff00" +- name: "Meta: Refactor" + description: "Issues and PRs related to refactors." + color: "ffff00" +- name: "Priority: Critical" + description: "Issues and PRs with maximum priority." + color: "b60205" +- name: "Priority: High" + description: "Issues and PRs with high priority." + color: "d93f0b" +- name: "Priority: Medium" + description: "Issues and PRs with medium priority." + color: "fbca04" +- name: "Priority: Low" + description: "Issues and PRs with low priority." + color: "0e8a16" +- name: "Priority: Ultra-Low" + description: "Issues and PRs with such a low priority it could be finished long after creation." + color: "818181" +- name: "Status: Blocked" + description: "PRs that are blocked by other issues/PRs." + color: "d81a0d" +- name: "Status: Denied" + description: "Issues and PRs that have been denied by the team." + color: "bc1202" +- name: "Status: Duplicate" + description: "Issues and PRs that are duplicated." + color: "d93f0b" +- name: "Status: Help Wanted" + description: "Issues that need assistance from volunteers or PRs that need help to proceed." + color: "128A0C" +- name: "Status: Invalid" + description: "Issues that will not be fixed or PRs that will not merge, e.g. due to backwards compatibility." + color: "671df0" +- name: "Status: Needs Translations" + description: "PRs that need translations." + color: "b60205" +- name: "Status: Ready To Merge" + description: "PRs that are ready to merge." + color: "05F541" +- name: "Status: Review Ready" + description: "PRs that are ready for author review." + color: "05F541" +- name: "Status: Stalled" + description: "Issues and PRs that are being set aside for now for rethinking" + color: "fbca04" +- name: "Status: WIP" + description: "Issues and PRs that are still a work in progress." + color: "b60205" diff --git a/.github/workflows/labelsync.yml b/.github/workflows/labelsync.yml index 2ccd16d..fb906c6 100644 --- a/.github/workflows/labelsync.yml +++ b/.github/workflows/labelsync.yml @@ -1,9 +1,15 @@ name: Automatic Label Sync on: - schedule: - - cron: "0 0 * * *" workflow_dispatch: + push: + branches: + - "main" + paths: + - ".github/labels.yml" + pull_request: + paths: + - ".github/labels.yml" jobs: label_sync: @@ -12,10 +18,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - with: - repository: "JTTechnic/.github" - name: Run Label Sync uses: crazy-max/ghaction-github-labeler@3de87da19416edc45c90cd89e7a4ea922a3aae5a # v4 with: github-token: ${{ secrets.GITHUB_TOKEN }} - yaml-file: .github/labels-docs.yml \ No newline at end of file + yaml-file: .github/labels.yml + dry-run: ${{ github.event_name == 'pull_request' }} \ No newline at end of file