Skip to content

Commit

Permalink
Create label.yml (#17)
Browse files Browse the repository at this point in the history
## Type
enhancement


___

## Description
This PR introduces a new GitHub Actions workflow that automatically
labels pull requests based on the paths that are modified. The key
changes include:
- A new workflow file '.github/workflows/label.yml' has been added.
- The workflow is named 'Labeler' and is triggered on
'pull_request_target' events.
- It runs on 'ubuntu-latest' and uses the 'actions/labeler@v4' action.
- The workflow has read permissions for contents and write permissions
for pull requests.
- The repository token is used as an input to the 'actions/labeler@v4'
action.


___

## PR changes walkthrough
<table><thead><tr><th></th><th>Relevant files&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </th></tr></thead><tbody><tr><td><strong>Configuration
changes</strong></td><td><details><summary>1 files</summary><table>
<tr>
  <td>
    <details>
<summary><strong>label.yml&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </strong></summary>
      <ul>
        .github/workflows/label.yml<br><br>

**The PR introduces a new GitHub Actions workflow named <br>'Labeler'.
This workflow is designed to automatically label <br>pull requests based
on the paths that are modified. It runs <br>on 'ubuntu-latest' and uses
the 'actions/labeler@v4' action <br>with the repository token.**
</ul>
    </details>
  </td>
<td><a
href="https://github.com/LangMers/LangMersSystems/pull/17/files#diff-10c0cd6a4f95e78dd4975968a27901c644f6e36a8a75147e3fb86d08e1c1831b">
+22/-0</a></td>

</tr>                    
</table></details></td></tr></tr></tbody></table>
  • Loading branch information
davidmerwin authored Dec 29, 2023
2 parents 1c78bdc + 222e50c commit 4f71aca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 4f71aca

Please sign in to comment.