Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code changes #20

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
## Description

[Please include a brief description of the changes or features added]
<!--Please include a brief description of the changes or features added-->

## Related Issues

[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
<!--Cite any related issue(s) this pull request addresses. If none, simply state “None”-->
- Closes #

## Type of PR
<!-- Mention PR Type Bug fix , Feature enhancement , Documentation update according to the issue in this section -->

- [ ] Bug fix
- [ ] Feature enhancement
- [ ] Documentation update
- [ ] Other (specify): _______________

## Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
<!--Attach any relevant screenshots or videos demonstrating the changes-->


## Checklist
Expand All @@ -29,4 +26,4 @@
<!-- [X] - put a cross/X inside [] to check the box -->

## Additional context:
[Include any additional information or context that might be helpful for reviewers.]
<!--Include any additional information or context that might be helpful for reviewers.-->
12 changes: 8 additions & 4 deletions .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
const issue = context.payload.issue;
const issueBody = issue.body ? issue.body.toLowerCase() : '';
const issueTitle = issue.title.toLowerCase();

// Add gssoc label to all issues
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
labels: ['gssoc']
});
const addLabel = async (label) => {
await github.rest.issues.addLabels({
owner: context.repo.owner,
Expand All @@ -36,8 +44,4 @@ jobs:
}
if (issueBody.includes('bug') || issueBody.includes('fix') || issueTitle.includes('fix') || issueTitle.includes('resolve')) {
await addLabel('bug');
}

if (prBody.includes('gssoc')) {
await addLabel('gssoc');
}
Loading