Skip to content

Commit

Permalink
Update repo and org names
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Sep 12, 2023
1 parent 3ac6df1 commit baa15d9
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# IssueOps Labeler

[![Check dist/](https://github.com/ncalteen/issueops-labeler/actions/workflows/check-dist.yml/badge.svg)](https://github.com/ncalteen/issueops-labeler/actions/workflows/check-dist.yml)
[![CodeQL](https://github.com/ncalteen/issueops-labeler/actions/workflows/codeql.yml/badge.svg)](https://github.com/ncalteen/issueops-labeler/actions/workflows/codeql.yml)
[![Continuous Integration](https://github.com/ncalteen/issueops-labeler/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/ncalteen/issueops-labeler/actions/workflows/continuous-integration.yml)
[![Super Linter](https://github.com/ncalteen/issueops-labeler/actions/workflows/super-linter.yml/badge.svg)](https://github.com/ncalteen/issueops-labeler/actions/workflows/super-linter.yml)
[![Check dist/](https://github.com/issue-ops/labeler/actions/workflows/check-dist.yml/badge.svg)](https://github.com/issue-ops/labeler/actions/workflows/check-dist.yml)
[![CodeQL](https://github.com/issue-ops/labeler/actions/workflows/codeql.yml/badge.svg)](https://github.com/issue-ops/labeler/actions/workflows/codeql.yml)
[![Continuous Integration](https://github.com/issue-ops/labeler/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/issue-ops/labeler/actions/workflows/continuous-integration.yml)
[![Super Linter](https://github.com/issue-ops/labeler/actions/workflows/super-linter.yml/badge.svg)](https://github.com/issue-ops/labeler/actions/workflows/super-linter.yml)
[![Code Coverage](./badges/coverage.svg)](./badges/coverage.svg)

Manage labels for issues and pull requests
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
# Add labels to an issue in this repository
- name: Add Labels
id: add-labels
uses: ncalteen/issueops-[email protected]
uses: issue-ops/[email protected]
with:
action: add
issue_number: 1
Expand All @@ -42,7 +42,7 @@ jobs:
# Remove labels from an issue in this repository
- name: Remove Labels
id: remove-labels
uses: ncalteen/issueops-[email protected]
uses: issue-ops/[email protected]
with:
action: remove
issue_number: 1
Expand Down
22 changes: 11 additions & 11 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Add Labels', () => {
})
expect(core.getInput).toHaveReturnedWith('1')
expect(core.getInput).toHaveBeenCalledWith('repository', { required: true })
expect(core.getInput).toHaveReturnedWith('ncalteen/issueops-labeler')
expect(core.getInput).toHaveReturnedWith('issue-ops/labeler')
})

it('Fails on GitHub API error', async () => {
Expand Down Expand Up @@ -124,22 +124,22 @@ describe('Add Labels', () => {
expect(mocktokit.rest.issues.createLabel).toHaveBeenCalledWith({
color: '7fffff',
name: 'bug',
owner: 'ncalteen',
repo: 'issueops-labeler'
owner: 'issue-ops',
repo: 'labeler'
})
expect(core.info).toHaveBeenCalledWith('Created label: bug')
expect(mocktokit.rest.issues.createLabel).toHaveBeenCalledWith({
color: '7fffff',
name: 'enhancement',
owner: 'ncalteen',
repo: 'issueops-labeler'
owner: 'issue-ops',
repo: 'labeler'
})
expect(core.info).toHaveBeenCalledWith('Created label: enhancement')
expect(mocktokit.rest.issues.addLabels).toHaveBeenCalledWith({
issue_number: 1,
labels: ['bug', 'enhancement'],
owner: 'ncalteen',
repo: 'issueops-labeler'
owner: 'issue-ops',
repo: 'labeler'
})
expect(core.info).toHaveBeenCalledWith(
'Added labels to #1: bug, enhancement'
Expand Down Expand Up @@ -174,14 +174,14 @@ describe('Remove Labels', () => {
expect(mocktokit.rest.issues.removeLabel).toHaveBeenCalledWith({
issue_number: 1,
name: 'bug',
owner: 'ncalteen',
repo: 'issueops-labeler'
owner: 'issue-ops',
repo: 'labeler'
})
expect(mocktokit.rest.issues.removeLabel).toHaveBeenCalledWith({
issue_number: 1,
name: 'enhancement',
owner: 'ncalteen',
repo: 'issueops-labeler'
owner: 'issue-ops',
repo: 'labeler'
})
expect(core.info).toHaveBeenCalledWith(
'Removed labels from #1: bug, enhancement'
Expand Down
6 changes: 3 additions & 3 deletions __tests__/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function addLabelValidInput(
case 'issue_number':
return '1'
case 'repository':
return 'ncalteen/issueops-labeler'
return 'issue-ops/labeler'
default:
return ''
}
Expand All @@ -46,7 +46,7 @@ export function addLabelInvalidInput(
case 'issue_number':
return 'MyAwesomeIssue'
case 'repository':
return 'ncalteen/invalid-repo'
return 'issue-ops/invalid-repo'
default:
return ''
}
Expand All @@ -72,7 +72,7 @@ export function removeLabelValidInput(
case 'issue_number':
return '1'
case 'repository':
return 'ncalteen/issueops-labeler'
return 'issue-ops/labeler'
default:
return ''
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "issueops-labeler",
"name": "labeler",
"description": "Manage labels for issues and pull requests",
"version": "1.1.0",
"author": "Nick Alteen <[email protected]>",
"homepage": "https://github.com/ncalteen/issueops-labeler#readme",
"homepage": "https://github.com/issue-ops/labeler#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/ncalteen/issueops-labeler.git"
"url": "git+https://github.com/issue-ops/labeler.git"
},
"bugs": {
"url": "https://github.com/ncalteen/issueops-labeler/issues"
"url": "https://github.com/issue-ops/labeler/issues"
},
"keywords": [
"github",
Expand Down

0 comments on commit baa15d9

Please sign in to comment.